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 » How to Parse Including Processing Instrucitons in Broker??

Post new topic  Reply to topic
 How to Parse Including Processing Instrucitons in Broker?? « View previous topic :: View next topic » 
Author Message
phani
PostPosted: Thu Dec 11, 2008 12:05 pm    Post subject: How to Parse Including Processing Instrucitons in Broker?? Reply with quote

Newbie

Joined: 11 Dec 2008
Posts: 2

Hi,

I am new to MB, i created a small flow where it just swaping the first & last names in compute node.

Nodes: MQInput, MQOutput & Compute
Message Domain: XMLNS

Code:


ESQL Code:

 SET OutputRoot.XMLNS.PERSON.FIRSTNAME = InputRoot.XMLNS.PERSON.LASTNAME;
 SET OutputRoot.XMLNS.PERSON.LASTNAME = InputRoot.XMLNS.PERSON.FIRSTNAME;


InputMsg:

<PERSON>

<?sg-name ABCDEF?>

<FIRSTNAME>JAMES</FIRSTNAME>
<LASTNAME>SMITH</LASTNAME>
</PERSON>

Output:
<PERSON>
<FIRSTNAME>SMITH</FIRSTNAME>
<LASTNAME>JAMES</LASTNAME>
</PERSON>

How can i get PI in the output too???

Thanks
Back to top
View user's profile Send private message
kimbert
PostPosted: Thu Dec 11, 2008 12:43 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

If you are new to WMB, then you need to know the following facts:
- You should be using XMLNSC for new message flows
- You should diagnose parser problems using a Trace node and User Trace
- If you want to know how to access a field, you look at your Trace node output, and build a path from InputRoot ( or OutputRoot or Environment etc ) to the tree element that you want. For each segment in the path you may need to specify a field type to ensure that the correct child is matched.

So...please read these topics for XMLNSC: http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r1m0/topic/com.ibm.etools.mft.doc/ac67196_.htm
http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r1m0/topic/com.ibm.etools.mft.doc/ac67192_.htm

or if you decide to stick with XMLNS: http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r1m0/topic/com.ibm.etools.mft.doc/ac67249_.htm

...and post again if you are still stuck.
Back to top
View user's profile Send private message
phani
PostPosted: Thu Dec 11, 2008 12:59 pm    Post subject: Reply with quote

Newbie

Joined: 11 Dec 2008
Posts: 2

thanQ so much 4 guiding me in the correct path.... it was really informative...
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 » How to Parse Including Processing Instrucitons in Broker??
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.