Posted: Fri Apr 16, 2004 2:41 pm Post subject: XML to CWF conversion
Newbie
Joined: 16 Apr 2004 Posts: 1
I have a java applicaiton that makes use of JMS to put an XML message in an MQSeries queue.
The message is run through an MQSI flow and then converted to CWF(Code wire format). I can see that the conversion went fine but the MainFrame application on the other end is not able to read the message.
error 2110 is what comes. which I found to be MQRC_FORMAT_ERROR.
To go more into it.
The string is created from the value in an XML message. The string is stored in a char variable MSGTEXT
SET OutputRoot."BLOB"."BLOB" = CAST (MSGTEXT as BLOB CCSID InputRoot.MQMD.CodedCharSetId);
The same code works if the message was put directly using another API of MQSeries rather than JMS.
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
What are you using CWF for? It seems in your message flow you are transforming the message to BLOB format, so you are not making use of your message set at all.
what is the format of the message (MQMD.Format) set to when the message comes to the Broker's input queue?
Is your M/F application using MQGMO_CONVERT option when getting the message off the queue?
prashkpankaj wrote:
...and then converted to CWF(Code wire format).
CWF, means Custom Wire Format.
[/quote] _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
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