File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Axis2 Soap envelope not generating required namespaces. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Axis2 Soap envelope not generating required namespaces." Watch "Axis2 Soap envelope not generating required namespaces." New topic
Author

Axis2 Soap envelope not generating required namespaces.

Jose Marin
Greenhorn

Joined: Jul 19, 2011
Posts: 2
Hello All,

I used Axis2 ADB to create a service stub class from a WSDL provided by a company but am having trouble writing the client to consume the service. I am using Eclipse IDE to generate and develop my service clients.

Everything works fine when I create the stub class and let Eclipse automatically test it I see the SOAP generated meets the service's requirements with the expected soap envelope namespace, xsi namespace, etc.. However, the hand written client does not return the proper soap envelope definitions nor the XSI namespace declaration.

Obviously I'm missing something when I implement the stub but don't know what it is. Looking at the Eclipse generated JSPs the service call is simply one line of code producing the proper output.

Here's my output:



Here's my expected output, produced by the Eclipse JSPs:



Here's the client code (sans import declarations):



Any help, pointers or tips will be greatly appreciated.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Axis2 Soap envelope not generating required namespaces.
 
Similar Threads
need to add namespace ns2: in the all webservices response tags.
AXIS XML calling .Net Web Service
Talk to sharepoint through its web services
soap & soapenv
unable to connect to .Net web service using axis with java