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 » WebSphere Message Broker (ACE) Support » CWF-MRM to XML

Post new topic  Reply to topic
 CWF-MRM to XML « View previous topic :: View next topic » 
Author Message
superstar
PostPosted: Fri May 14, 2004 3:31 pm    Post subject: CWF-MRM to XML Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Sat May 15, 2004 3:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
kirani
PostPosted: Sun May 16, 2004 10:49 pm    Post subject: Re: CWF-MRM to XML Reply with quote

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
View user's profile Send private message Visit poster's website
superstar
PostPosted: Mon May 17, 2004 11:40 am    Post subject: Reply with quote

Apprentice

Joined: 12 May 2004
Posts: 31

Hello Kiran,
Your solution works.
Thanks,
Star.
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 » WebSphere Message Broker (ACE) Support » CWF-MRM 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.