Author |
Message
|
Halloween |
Posted: Wed Dec 23, 2015 11:19 am Post subject: Removing namespace in SOAP response |
|
|
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 |
|
 |
smdavies99 |
Posted: Wed Dec 23, 2015 11:42 am Post subject: |
|
|
 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 |
|
 |
Vitor |
Posted: Wed Dec 23, 2015 12:22 pm Post subject: Re: Removing namespace in SOAP response |
|
|
 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 |
|
 |
fjb_saper |
Posted: Wed Dec 23, 2015 3:06 pm Post subject: Re: Removing namespace in SOAP response |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20763 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 |
|
 |
maurito |
Posted: Thu Dec 24, 2015 12:24 am Post subject: Re: Removing namespace in SOAP response |
|
|
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 |
|
 |
|