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 » several namespace declarations in one tag

Post new topic  Reply to topic
 several namespace declarations in one tag « View previous topic :: View next topic » 
Author Message
accosun
PostPosted: Mon Sep 18, 2006 6:03 am    Post subject: several namespace declarations in one tag Reply with quote

Apprentice

Joined: 20 Dec 2001
Posts: 45
Location: Moscow

Hi!

I need to create SOAP message inside message flow with header as shown above:

<?xml version='1.0' encoding='UTF-8'?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://ws.asg.abc.de/">
<soap:Header>
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" mustUnderstand="1">
<wsse:UsernameToken>
<wsse:Username>admin</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">admin</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</soap:Header>.......

I've managed to do it except adding the second ns declaration in Envelope tag: xmlns:ns="http://ws.asg.abc.de/


ESQL code for it:

set OutputRoot.XMLNS.sp_soap:Envelope.(XML.NamespaceDecl)xmlns:soap = 'http://schemas.xmlsoap.org/soap/envelope/';
set OutputRoot.XMLNS.sp_soap:Envelope.Header NAMESPACE=sp_soap;
set OutputRoot.XMLNS.sp_soap:Envelope.sp_soap:Header.sp_wsse:Security.(XML.NamespaceDecl)xmlns:wsse = 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd';
.....
Do any one know, how to do it?

Thank you in advance, Alexander
Back to top
View user's profile Send private message Send e-mail Visit poster's website
elvis_gn
PostPosted: Mon Sep 18, 2006 6:11 am    Post subject: Reply with quote

Padawan

Joined: 08 Oct 2004
Posts: 1905
Location: Dubai

Hi accosun,

Is this what ur looking for...
Code:
set OutputRoot.XMLNS.sp_soap:Envelope.(XML.NamespaceDecl)xmlns:soap = 'http://schemas.xmlsoap.org/soap/envelope/';
set OutputRoot.XMLNS.sp_soap:Envelope.(XML.NamespaceDecl)xmlns:ns = 'http://ws.asg.abc.de/';


Regards.
Back to top
View user's profile Send private message Send e-mail
accosun
PostPosted: Mon Sep 18, 2006 12:17 pm    Post subject: Reply with quote

Apprentice

Joined: 20 Dec 2001
Posts: 45
Location: Moscow

Hi elvis_gn!

Thanx a lot! I guess it is exactly what i need!

Regards, Alexander
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » several namespace declarations in one tag
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.