Author |
Message
|
kimbert |
Posted: Sat Sep 02, 2006 3:43 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Quote: |
my message is like "s48739284f d 12345 ffff" |
OK - now I know what the input bitstream looks like. I still have no idea how to interpret it. Now tell us what the data means ( where are the field boundaries, what logical structure does the data have? )
By the way, that's not BLOB data - it looks a bit like text to me ( well it contains spaces, anyway ).
Jeff said
Quote: |
you barely understand the product at all and should get some training. |
I agree. If you cannot afford to get training, start working through the documentation and the samples gallery. |
|
Back to top |
|
 |
angka |
Posted: Sat Sep 02, 2006 9:55 pm Post subject: |
|
|
Chevalier
Joined: 20 Sep 2005 Posts: 406
|
thanks I looking through the documentation. from the input data i need to convert to XML output. the field is delimiter by the space. from the input message i will like to convert it to sth like
<IC>48739284f</IC>
<FLAG>d</FLAG>
<S/N>12345</S/N>
<DATA>ffff</DATA>
Thanks |
|
Back to top |
|
 |
jefflowrey |
Posted: Sun Sep 03, 2006 4:57 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
You need to start learning on your own.
Read things, try things, think about things.
I'd be surprised if anyone here really wants to provide you with free training. This is a basic use of the product - to build a Message Set that describes your data, and then write a Message Flow to transform the logical message tree into another logical message tree, and the output the results. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
angka |
Posted: Mon Sep 04, 2006 2:05 am Post subject: |
|
|
Chevalier
Joined: 20 Sep 2005 Posts: 406
|
Hi,
I have the following setting for my MQInput node.
Default:
Message Domain= MRM
Message Set = Mapping_simple_message_set(fjg0004930)
Message Type= myMsg
Message Format = CWF1
i have 2 .mxsd file one is for the incoming message in text and the other for the outgoing message in XML. but how do i set the element in the .mxsd to read the 1st 10 btyes for the 1st element and the next 5 bytes for the 2nd element and etc... i tested out and the 2nd element did not read the next 5 btyes and i encountered this error "ImbRecoverableException caught from worker -> parseNext". btw both the .mxsd file is in the same message set project.
Thanks all |
|
Back to top |
|
 |
YATAWAL |
Posted: Mon Sep 04, 2006 3:32 am Post subject: |
|
|
Apprentice
Joined: 26 Feb 2004 Posts: 25
|
In the Broker, an RCD node (ResetContentDescriptor) should be able to transform a BLOB to XML. Drag a RCD node to the point where you want the BLOB converted to XML, right click to open the node property and in the Basic section, use the pull down to set the Message Domain to XML (or XMLNS) and tick the 'ResetMessageDomain' checkbox.
If you need to work with XML from the start (i.e., after MQ Input Node), you just need to set the MQ Input node property (Default section) Message Domain to XML. In this case, an RCD node is not required. |
|
Back to top |
|
 |
kimbert |
Posted: Mon Sep 04, 2006 11:55 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
angka: I'm with Jeff on this one. You don't know enough to understand the answers yet. Stop experimenting and read the manuals, or else get some good training.
YATAWAL: Your suggestion is incorrect. angka's input data is not XML, it is formatted text. |
|
Back to top |
|
 |
angka |
Posted: Mon Sep 04, 2006 10:50 pm Post subject: |
|
|
Chevalier
Joined: 20 Sep 2005 Posts: 406
|
Hi kimbert,
Is there any good documentation on this? Thanks |
|
Back to top |
|
 |
kimbert |
Posted: Tue Sep 05, 2006 12:25 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
|
Back to top |
|
 |
ak |
Posted: Tue Sep 05, 2006 7:40 am Post subject: |
|
|
Apprentice
Joined: 07 Aug 2006 Posts: 48 Location: England
|
Assuming your data was initially well formated XML message or data and appears as a BLOB in the broker. You can convert it back to an XML document using
DECLARE InputMessage CHAR CAST(InputRoot."BLOB"."BLOB" AS CHAR CCSID InputRoot.MQMD.CodedCharSetId); |
|
Back to top |
|
 |
Vitor |
Posted: Tue Sep 05, 2006 7:46 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
ak wrote: |
Assuming your data was initially well formated XML message |
It wasn't - angka described it as
angka wrote: |
my message is like "s48739284f d 12345 ffff" sth like this. Thanks |
Read the whole thread before you post eh?  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
angka |
Posted: Tue Sep 05, 2006 6:23 pm Post subject: |
|
|
Chevalier
Joined: 20 Sep 2005 Posts: 406
|
Hi all,
Thanks for the help. Think I will have to figure out myself =)
Cheers |
|
Back to top |
|
 |
angka |
Posted: Wed Sep 06, 2006 12:36 am Post subject: |
|
|
Chevalier
Joined: 20 Sep 2005 Posts: 406
|
Hi all,
I try out a sample and it is working... but if my input messages is of different CWF then wat can i do?? cos i need to input the "Message Type" field in the input node. is there a way tt i can dynamically set it?
my data format may be like this "12345678 d 210705 S253647F"
or like this "1234 dd 2109344555 sha1234m 12" totally different format. And all incoming messages land into the same local queue.
Thanks.. |
|
Back to top |
|
 |
|