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 » [Solved]NameSpace Prefixes problem in the Output msg

Post new topic  Reply to topic
 [Solved]NameSpace Prefixes problem in the Output msg « View previous topic :: View next topic » 
Author Message
srikanth av
PostPosted: Wed Aug 09, 2006 3:32 pm    Post subject: [Solved]NameSpace Prefixes problem in the Output msg Reply with quote

Apprentice

Joined: 30 Jun 2005
Posts: 37

Hi All,
My environment is MB v5.0.5 , MQ v5.3

I have a msgflow like this.

MQInput---->Compute----->Compute----->MQOutput

I have defined a msg Set also with MRM as the Runtime Parser and XML as the Physical format.I am using NameSpaces.So I have performed Namespace settings in the physical properties of the msg set.

I am getting a BLOB msg(dummy msg) to trigger the flow.In the 1st Compute node i am constructing a msg in the MRM domain with XML as the physical format with some elements prefixed with the namespaces.

2nd compute node constructs a SOAP envelope over the msg from the previous compute node using the IA81 service pack and changes the domain to XMLNS and the msg is put in the output queue.

Here my problem is i am getting the output msg with namespaces but not as i supposed.Output msg does not contain the prefixes which i have defined in the msg set, instead they are coming like NS1,NS2....

If i eliminate the 2nd Compute node and directly put the msg in the output queue,i am getting the required output msg with elements associated with prefixes from the msgset.

How do i get the prefixes which i defined in the msgset instead of NS1...
if i use the 2nd Compute node.

Can anyone tell where i am going wrong...

Thanks in advance.
_________________
a v srikanth


Last edited by srikanth av on Thu Aug 10, 2006 7:07 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
kimbert
PostPosted: Thu Aug 10, 2006 1:45 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
Here my problem is i am getting the output msg with namespaces but not as i supposed.Output msg does not contain the prefixes which i have defined in the msg set, instead they are coming like NS1,NS2....
XMLNS domain does not use message sets. If you want to control the namespace prefixes in your output message, you need to add some XMLNS attributes into the message tree. Something like this:

Code:
-- Namespace declaration to associate prefix 'space1' with the namespace
SET OutputRoot.XMLNS.message.(XML.NamespaceDecl)xmlns:space1 = 'http://www.ibm.com/space1';
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 » [Solved]NameSpace Prefixes problem in the Output msg
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.