Hi,
So I just started using Eclipse JUNO WTP and axis2 with apache 7.0 web server.
I'm trying to deploy a WS Client for a third part webservice. The problem is the SOAP messages sent by axis2 contain namespace prefixes (ns1, ns2, etc) by default. The webservice does not expect this and is flagging a fault
How I do disable the namespace prefixes in the emitted SOAP messages? I know about the -sp (suppress prefixes) option in WSDL2Java, but how do I specify it in Eclipse?
Current emitted SOAP Message
<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:soapenv="w3org url here">
<soapenv:Body>
<ns3:RequestRegister xmlns:ns3="valid url here">
<msgHeader>
<transactionID>ID001</transactionID>
</msgHeader>
</ns3:RequestRegister>
</soapenv:Body>
</soapenv:Envelope>
Desired SOAP message
<soapenv:Envelope xmlns:soapenv="w3 org url here">
<soapenv:Body>
<RequestRegister xmlns="valid url here">
<msgHeader>
<transactionID>txID001</transactionID>
</msgHeader>
</RequestRegister>
</soapenv:Body></soapenv:Envelope>
Any way to tell that I don't want the prefixes to be in the emitted SOAP messages?
[Updated on: Tue, 26 March 2013 00:48]
Report message to a moderator