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 » Broker Basic Question

Post new topic  Reply to topic
 Broker Basic Question « View previous topic :: View next topic » 
Author Message
broker_new
PostPosted: Sun Aug 17, 2008 11:00 am    Post subject: Broker Basic Question Reply with quote

Yatiri

Joined: 30 Nov 2006
Posts: 614
Location: Washington DC

I get a XML message..from the XML message we lookup the table and it returns an XML message string looks like
<Message><Name>broker_new</Name><city>bentonville</city><State>AR</State></Message>.....
Remember it looks like
Environment.Variables.result = <Message><Name>broker_new</Name><city>bentonville</city><State>AR</State></Message>.

How would i transform the string into an XML message and assign it to OutputRoot.
i know that i can do it by creating a message defnition file and parse it according to defined MRM...is there any other way of doing that.
Back to top
View user's profile Send private message
kimbert
PostPosted: Sun Aug 17, 2008 2:27 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Something like this:
Code:
CREATE OutputRoot.XMLNSC.myField DOMAIN XMLNSC PARSE myString CodedCharSetId xxx Encoding xxx
Back to top
View user's profile Send private message
vaibhav_vy
PostPosted: Sun Aug 17, 2008 9:23 pm    Post subject: Reply with quote

Apprentice

Joined: 04 Aug 2008
Posts: 28

You can also do something like this,

SET Environment.Variables.result = CAST(ASBITSTREAM (InputBody Options FolderBitStream) AS CHARACTER ENCODING xxx CCSID xxx);

where you can use either ENCODING or CCSID as per your requirement.
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 » Broker Basic Question
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.