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 » Need help XML to XML!!!

Post new topic  Reply to topic
 Need help XML to XML!!! « View previous topic :: View next topic » 
Author Message
MQTORTOISE
PostPosted: Tue Dec 24, 2002 12:45 pm    Post subject: Need help XML to XML!!! Reply with quote

Novice

Joined: 24 Dec 2002
Posts: 15

Hi,Pls can anybody help me out in XML inbound to XML outbound msgflows sample code...
Thanks,
MQTortoise..
Back to top
View user's profile Send private message
kirani
PostPosted: Thu Dec 26, 2002 10:05 am    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

Let's say you are getting following input message on the queue:
<Data>
<FirstName>ABC</FirstName>
<LastName>XYZ</LastName>
<SSN>000-00-0000</SSN>
</Data>
and you want to transform it into following format:
<Student>
<Name>XYZ,ABC</Name>
<SSN>000-00-0000</SSN>
</Student>

First read your input message as XML using your MQInput node. In a Compute node select "Copy Message Headers[/b] and write following ESQL code, which will transofmr the message:
Code:

SET OutputRoot.Student.Name = InputRoot.XML.Data.LastName || ', ' || InputRoot.XML.Data.FirstName;
SET OutputRoot.Student.SSN = InputRoot.XML.Data.SSN;


Please go thru following redbooks:
SG246509 - WebSphere MQ IntegratorDeployment and Migration - http://www.redbooks.ibm.com/pubs/pdfs/redbooks/sg246509.pdf
SG246579 - Developing Solutions in WebSphere MQ Integrator -
http://www.redbooks.ibm.com/pubs/pdfs/redbooks/sg246579.pdf
_________________
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
MQTORTOISE
PostPosted: Thu Dec 26, 2002 1:45 pm    Post subject: Reply with quote

Novice

Joined: 24 Dec 2002
Posts: 15

Thanks alot KIRAN and I implemented the same code it works fine...
Thanks for your time..
MQTortoise...
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 » Need help XML 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.