Posted: Mon Oct 30, 2006 11:50 pm Post subject: Accessing XML message in MRM domain
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
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 )
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
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