|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
CWF-MRM to XML |
« View previous topic :: View next topic » |
Author |
Message
|
superstar |
Posted: Fri May 14, 2004 3:31 pm Post subject: CWF-MRM to XML |
|
|
Apprentice
Joined: 12 May 2004 Posts: 31
|
Hello all,
I have to convert an incoming CWF-MRM message to a XML message.
The incoming message represents / follows a copy book structure which contains characaters ( PIC (X) ) and packed decimals ( PIC S9(3) V99 ).
We imported the copy book into our message set and are using the incoming message created from that.
Do we need to do any type casting here? Because, whatever may be the incoming types, they are represented as strings in XML right?
So I assume that we just need to map the data in the following manner.
SET OutputRoot.XML.Elm1.Elm2 = InputBody.Elm1.Elm2;
We have CSD 5 on our WMQI 2.1 ( Broker on Solaris).
Thanks in advance,
Star. |
|
Back to top |
|
 |
jefflowrey |
Posted: Sat May 15, 2004 3:24 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
You could go through the extra work you mention of building the XML message in the XML domain by populating the fields individually.
Or you could add an XML wire format to your CWF message set, and then tweak it to match your XML format and allow WMQI to convert it for you. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
kirani |
Posted: Sun May 16, 2004 10:49 pm Post subject: Re: CWF-MRM to XML |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
superstar wrote: |
Do we need to do any type casting here? Because, whatever may be the incoming types, they are represented as strings in XML right?
|
That's correct if your fields conain plain CHAR data. I saw data into "Exponential" foramt when assigning float data type to an XML field in WMQI. To be of safer side, I'd cast COMP-3 field to DECIMAL. _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
superstar |
Posted: Mon May 17, 2004 11:40 am Post subject: |
|
|
Apprentice
Joined: 12 May 2004 Posts: 31
|
Hello Kiran,
Your solution works.
Thanks,
Star. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|