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 » namespace violation in USR

Post new topic  Reply to topic
 namespace violation in USR « View previous topic :: View next topic » 
Author Message
saumya.guota
PostPosted: Thu Jul 21, 2011 3:41 am    Post subject: namespace violation in USR Reply with quote

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
View user's profile Send private message
lancelotlinc
PostPosted: Thu Jul 21, 2011 4:44 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
joebuckeye
PostPosted: Thu Jul 21, 2011 4:45 am    Post subject: Reply with quote

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
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 » namespace violation in USR
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.