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 » Accessing XML message in MRM domain

Post new topic  Reply to topic
 Accessing XML message in MRM domain « View previous topic :: View next topic » 
Author Message
Mensch
PostPosted: Mon Oct 30, 2006 11:50 pm    Post subject: Accessing XML message in MRM domain Reply with quote

Disciple

Joined: 17 Jul 2005
Posts: 166

hi

My input message is
<emp><details><companyname>cts</companyname></details><</emp>
I created input message set with physical format as XML as follows
Message Set name: employeedetails
Created one complex type t_employee
Added locl complex element details, inside details added simple local element companyname
then created message emp of type t_employee
runtime parser in messageSet.mset is MRM

In MQinput node Message Domain is MRM

Now I access input elements

InputRoot.MRM.emp.details.companyname
But getting null value

But when I configure MQinput node with messagedomain as XML and access input element as

InputRoot.XML.emp.details.companyname I am able to access it
A bit confused between when to use MRM and when to use XML message domain

please help
_________________
Thanks and Regards ,
Mensch
Back to top
View user's profile Send private message
kimbert
PostPosted: Tue Oct 31, 2006 2:24 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
A bit confused between when to use MRM and when to use XML message domain
You're not the only one.
If on v6. use XMLNSC
Otherwise use XMLNS
Never use XML for new message flows
Only use MRM XML if you want to validate your message, or if there is some other MRM feature which your XML processing requires ( like base64 encoding ).

The answer to your problem is:
Code:
InputRoot.MRM.details.companyname

( The MRM XML parser does not include the root tag in the message tree )
Back to top
View user's profile Send private message
Bill.Matthews
PostPosted: Tue Oct 31, 2006 4:46 am    Post subject: Re: Accessing XML message in MRM domain Reply with quote

Master

Joined: 23 Sep 2003
Posts: 232
Location: IBM (Retired)

You asked:
Mensch wrote:

......

In MQinput node Message Domain is MRM

Now I access input elements

InputRoot.MRM.emp.details.companyname
But getting null value

But when I configure MQinput node with messagedomain as XML and access input element as

InputRoot.XML.emp.details.companyname I am able to access it
A bit confused between when to use MRM and when to use XML message domain

please help


When you build a message set and use the MRM parser - then you do NOT make a reference to the highest level name. What you need to do is:

InputRoot.MRM.details.companyname

Cheers
Bill
_________________
Bill Matthews
Back to top
View user's profile Send private message
Mensch
PostPosted: Wed Nov 01, 2006 10:09 pm    Post subject: Reply with quote

Disciple

Joined: 17 Jul 2005
Posts: 166

OK ..
Thanks a lot
Correct me if I am wrong
whenever I use XML parser I have to use
InputRoot.XML.emp.details.
and whenever I use MRM parser I have to use
InputRoot.MRM.details.companyname
_________________
Thanks and Regards ,
Mensch
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 » Accessing XML message in MRM domain
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.