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 » To remove namespace before sending SOAP reply

Post new topic  Reply to topic
 To remove namespace before sending SOAP reply « View previous topic :: View next topic » 
Author Message
kathir
PostPosted: Tue Aug 21, 2012 11:18 pm    Post subject: To remove namespace before sending SOAP reply Reply with quote

Apprentice

Joined: 12 Sep 2011
Posts: 30

The requirement is to send SOAP reply is below

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<ns1:abc xmlns:ns1="urn:abc" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<data xmlns="http://www.s1.com">


But I am getting data as


<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<ns1:abc SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="urn:abc">
<ns1:data>


Code used is



DECLARE "SOAP-ENV" NAMESPACE 'http://schemas.xmlsoap.org/soap/envelope/';
DECLARE xsi NAMESPACE 'http://www.w3.org/2001/XMLSchema-instance';
DECLARE xsd NAMESPACE 'http://www.w3.org/2001/XMLSchema';
SET OutputRoot.SOAP.Context.Namespace.(SOAP.NamespaceDecl)xmlns:"SOAP-ENV" = 'http://schemas.xmlsoap.org/soap/envelope/';
SET OutputRoot.SOAP.Context.Namespace.(SOAP.NamespaceDecl)xmlns:xsi = xsi;

SET OutputRoot.SOAP.Context.Namespace.(SOAP.NamespaceDecl)xmlns:xsd = xsd;


DECLARE ns1 NAMESPACE 'urn:abc';







SET OutputRoot.SOAP.Body.ns1:abc.(SOAP.NamespaceDecl)xmlns:ns1 = ns1;
SET OutputRoot.SOAP.Body.ns1:abc.(SOAP.Attribute)"SOAP-ENV":encodingStyle ='http://schemas.xmlsoap.org/soap/encoding/';


SET OutputRoot.SOAP.Body.ns1:abc.data.*[] = InputRoot.XMLNSC.*[<].*[];

How to get

<data xmlns="http://www.s1.com">

instead of

<ns1:data>
Back to top
View user's profile Send private message
mqsiuser
PostPosted: Tue Aug 21, 2012 11:31 pm    Post subject: Re: To remove namespace before sending SOAP reply Reply with quote

Yatiri

Joined: 15 Apr 2008
Posts: 637
Location: Germany

http://publib.boulder.ibm.com/infocenter/wmbhelp/v8r0m0/index.jsp?topic=%2Fcom.ibm.etools.mft.doc%2Fac67194_.htm

Example 2: Declaring an empty prefix
Back to top
View user's profile Send private message
kathir
PostPosted: Tue Aug 21, 2012 11:36 pm    Post subject: reg namespace Reply with quote

Apprentice

Joined: 12 Sep 2011
Posts: 30

Iam unable to open the page.
Back to top
View user's profile Send private message
mqsiuser
PostPosted: Tue Aug 21, 2012 11:45 pm    Post subject: Re: reg namespace Reply with quote

Yatiri

Joined: 15 Apr 2008
Posts: 637
Location: Germany

kathir wrote:
Iam unable to open the page.


Got to the official IBM "message broker infocenter" (e.g. search in google), then navigate to:

WebSphere Message Broker Version 8.0.0.1 > Developing message flow applications > Transforming messages > Using ESQL > Writing ESQL > Manipulating messages in the XML domains > Manipulating messages in the XMLNSC domain > The message body > Namespace declarations

=== or ===

Search "Example 2: Declaring an empty prefix" in google (click on the first result that google provides you)
_________________
Just use REFERENCEs
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 » To remove namespace before sending SOAP reply
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.