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 » Removing namespace in SOAP response

Post new topic  Reply to topic
 Removing namespace in SOAP response « View previous topic :: View next topic » 
Author Message
Halloween
PostPosted: Wed Dec 23, 2015 11:19 am    Post subject: Removing namespace in SOAP response Reply with quote

Acolyte

Joined: 11 Mar 2015
Posts: 60

Hello,
I am getting an output as below

Code:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Body>
      <NS1:processMessageResponse xmlns:NS1="urn:ProcessMessage"/>
   </soapenv:Body>
</soapenv:Envelope>


I want it to be empty like this


Code:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Body>
      <NS1:processMessageRespons/>
 </soapenv:Body>
</soapenv:Envelope>


Just want to remove the namespace declaration

xmlns:NS1="urn:ProcessMessage

Thanks
Back to top
View user's profile Send private message
smdavies99
PostPosted: Wed Dec 23, 2015 11:42 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

There are a number of posts covering this very topic in this forum. Why don't you take a look at them first.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Dec 23, 2015 12:22 pm    Post subject: Re: Removing namespace in SOAP response Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Halloween wrote:
Just want to remove the namespace declaration


Then follow the same learning process you did here.

It's going to slow down your code delivery if you stop and post here every time you want to do something which you can't immediately determine how to do.

There's also going to come a point when we're going to get tired of answering your simplistic questions, and stop answering them. Or start answering them wrong and sending you down the wrong path just because it's fun.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Dec 23, 2015 3:06 pm    Post subject: Re: Removing namespace in SOAP response Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Halloween wrote:

I want it to be empty like this


Code:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Body>
      <NS1:processMessageRespons/>
 </soapenv:Body>
</soapenv:Envelope>


Just want to remove the namespace declaration

xmlns:NS1="urn:ProcessMessage

Thanks

Not a good idea! You need to define the prefix somewhere or it's not going to be a valid XML!!
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
maurito
PostPosted: Thu Dec 24, 2015 12:24 am    Post subject: Re: Removing namespace in SOAP response Reply with quote

Partisan

Joined: 17 Apr 2014
Posts: 358

Vitor wrote:

Or start answering them wrong and sending you down the wrong path just because it's fun.
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 » Removing namespace in SOAP response
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.