Author |
Message
|
nuevo |
Posted: Tue Jun 07, 2005 8:44 am Post subject: Blob to XML |
|
|
Newbie
Joined: 07 Jun 2005 Posts: 4
|
Hi, I am new on WBI and I am trying to convert a BLOB message to XML using just the RCD node. I was able to do this from CWF1 to XML so I thought I could do this.
My problem is that when I use the RCD node I get an exception and even though the flow continues I dont get anything in the output (which is ok I wish it complained with something).
When I do BLOB to CWF1 everything is ok but I need to do XML. Maybe this is not possible maybe I just need to use ESQL.
Please let me know if you have any recommendations.
Thanks. |
|
Back to top |
|
 |
JT |
Posted: Tue Jun 07, 2005 11:43 am Post subject: |
|
|
Padawan
Joined: 27 Mar 2003 Posts: 1564 Location: Hartford, CT.
|
Is the BLOB a binary representation of a valid XML-structured message, i.e. includes the XML tag names? |
|
Back to top |
|
 |
nuevo |
Posted: Tue Jun 07, 2005 11:56 am Post subject: BLOB to XML |
|
|
Newbie
Joined: 07 Jun 2005 Posts: 4
|
No It is not. It is a string coming from a cobol program from the mainframe |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Jun 07, 2005 12:39 pm Post subject: Re: BLOB to XML |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
nuevo wrote: |
No It is not. |
Then why would it parse as valid XML?
You seem to be expecting magic from WBIMB. The training class you should have taken should have told you not to expect magic.
You should strongly consider attending training.
You should spend significantly more time reading the documentation and redbooks before you do much more with this product. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
bower5932 |
Posted: Tue Jun 07, 2005 1:18 pm Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
For what it is worth, the WBI MB help has the following to offer on the RCD node:
Quote: |
The ResetContentDescriptor node does not:
- Change the message content. It changes message properties to specify the way in which the bit stream is parsed next time that the parser is invoked.
- Convert the message from one format to another. For example, if the incoming message has a Message Format of XML and the outgoing Message Format is CWF, the ResetContentDescriptor node does not do any reformatting. It invokes the parser to recreate the bit stream of the incoming XML message, which retains the XML tags in the message. When the message is reparsed by a subsequent node, the XML tags are invalid and the reparse fails.
|
The actual help has quite a bit of detail on how the node works and what it does. You might want to check it out. |
|
Back to top |
|
 |
nuevo |
Posted: Tue Jun 07, 2005 1:36 pm Post subject: BLOB to XML |
|
|
Newbie
Joined: 07 Jun 2005 Posts: 4
|
I dont expect magic from WBI. I found the answer I was looking for in this forum. Sorry to bother.
Thank you all |
|
Back to top |
|
 |
nuevo |
Posted: Wed Jun 08, 2005 5:22 am Post subject: BLOB to XML |
|
|
Newbie
Joined: 07 Jun 2005 Posts: 4
|
I got it to work.
I receive a blob message and then I have a compute node to determine what to do using labels and then after the label I have an RCD node to change parser to CWF1 using a messageset that has only MRM physical property then I put a mapping node that has the source from this message set and then I have as target a message that has been defined in a different message set with XML physical properties and that's it, magic from WBI I have my output message formated in XML.
Thank you guys. |
|
Back to top |
|
 |
|