|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
namespace violation in USR |
« View previous topic :: View next topic » |
Author |
Message
|
saumya.guota |
Posted: Thu Jul 21, 2011 3:41 am Post subject: namespace violation in USR |
|
|
Newbie
Joined: 21 Jul 2011 Posts: 2
|
Hi,
I am storing entire XMLNSC of the input message in MQRFH2.usr. This message has a XML format which has namespace and my namespaces are stored as tags in usr which is problematic. So when i am retrieving the message stored in as outputroot the namespace format changes. Is there a way to store namespace in usr?
Input XML:
<?xml version="1.0" encoding="UTF-8"?>
<cm:CancelSubscriberRequest xmlns:cm="namespace url" xmlns:bons1="namespace url" xmlns:xsi="namespace url">
<MetaInfo>
<Tag1>0017</Tag1>
<Tag2>cancelsub</Tag2>
<Tag3>adf</Tag3>
<Tag4>abc</Tag4>
<Tag5>1126082,B,0</Tag5>
<Tag6>N</Tag6>
</MetaInfo>
Output XML:
<NS1:CancelSubscriberRequest xmlns:NS1="namespace url">
<xmlns:cm>namespace url</xmlns:cm>
<xmlns:bons1>namespace url</xmlns:bons1>
<xmlns:xsi>namespace url</xmlns:xsi>
<MetaInfo>
<Tag1>0017</Tag1>
<Tag2>cancelsub</Tag2>
<Tag3>adf</Tag3>
<Tag4>abc</Tag4>
<Tag5>1126082,B,0</Tag5>
<Tag6>N</Tag6>
</MetaInfo>
Last edited by saumya.guota on Thu Jul 21, 2011 4:52 am; edited 1 time in total |
|
Back to top |
|
 |
lancelotlinc |
Posted: Thu Jul 21, 2011 4:44 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
If you are using ESQL, you can use the DECLARE NAMESPACE statement to control what the namespace prefixes are. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
joebuckeye |
Posted: Thu Jul 21, 2011 4:45 am Post subject: |
|
|
 Partisan
Joined: 24 Aug 2007 Posts: 365 Location: Columbus, OH
|
What is USR?
And your XML's are not valid or complete. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|