|
Hello all. I have a WSDL file that I then an
WSDL2Java against to generate the client stubs.
Unfortunately, the subs for the custom header did
not get generated so I am trying to add one
manually.
SOAPHeaderElement myheader = new SOAPHeaderElement("http://openuri.org/2002/04/soap/conversation/",
"StartHeader");
try
{
myheader.addChildElement("conversationID").addTextNode("GSP-6555555555"); } catch(javax.xml.soap.SOAPException se) { } stub.setHeader(myheader); When I add the following code and send off the
requst, I see the following being received by the server:
<soapenv:Header>
<ns1:StartHeader soapenv:mustUnderstand="0" xmlns:ns1="http://openuri.org/2002/04/soap/conversation/"> <ns1:conversationID>GSP-6555555555</ns1:conversationID> </ns1:StartHeader> </soapenv:Header> I am not setting "ns1" anywhere, so I assume Axis
is automatically putting it there. How can I remove all references
to
"ns1"? Having the "ns1" there is causing the server
to ignore my request. Thanks in advance
|
- Re: How to remove "ns1" from Custom Header Greg Pedder
- Re: How to remove "ns1" from Custom Header Greg Pedder
