ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General Discussion » Blob to XML

Post new topic  Reply to topic
 Blob to XML « View previous topic :: View next topic » 
Author Message
nuevo
PostPosted: Tue Jun 07, 2005 8:44 am    Post subject: Blob to XML Reply with quote

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
View user's profile Send private message
JT
PostPosted: Tue Jun 07, 2005 11:43 am    Post subject: Reply with quote

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
View user's profile Send private message
nuevo
PostPosted: Tue Jun 07, 2005 11:56 am    Post subject: BLOB to XML Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Tue Jun 07, 2005 12:39 pm    Post subject: Re: BLOB to XML Reply with quote

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
View user's profile Send private message
bower5932
PostPosted: Tue Jun 07, 2005 1:18 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
nuevo
PostPosted: Tue Jun 07, 2005 1:36 pm    Post subject: BLOB to XML Reply with quote

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
View user's profile Send private message
nuevo
PostPosted: Wed Jun 08, 2005 5:22 am    Post subject: BLOB to XML Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General Discussion » Blob to XML
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.