Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » How to use axis2 commandline options in Eclipse(Dsiabling namespace prefixes in SOAP messages from within Eclipse)
How to use axis2 commandline options in Eclipse [message #1019088] Fri, 15 March 2013 02:30
Snoop Dogg is currently offline Snoop Dogg
Messages: 1
Registered: March 2013
Junior Member
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

Previous Topic:JavaScript project reindexing
Next Topic:JavaScript Inferrer and TypeBinding
Goto Forum:
  


Current Time: Sat Sep 20 00:12:08 GMT 2014

Powered by FUDForum. Page generated in 0.07377 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software