wood burning stoves 2.0*
The moose likes Web Services and the fly likes Problem with Namespace Prefixes with Axis1 but not Axis2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Problem with Namespace Prefixes with Axis1 but not Axis2" Watch "Problem with Namespace Prefixes with Axis1 but not Axis2" New topic
Author

Problem with Namespace Prefixes with Axis1 but not Axis2

Mike Spolarich
Greenhorn

Joined: May 26, 2011
Posts: 1
Greetings,

I have done Web Service client and server programming for a bit, and have always used Axis2 as my tool of choice. Unfortunately I've run into a situation at work where my code is going to be deployed on a box running a 1.4 JRE , so I am unable to use Axis2 for my current project. I have built a working consumer for the web service I need to interface with in Axis2. When I run it, it creates the following SOAP Request (captured by TCPTrace):



Once I found out that I was unable to use Axis2 in my deployment environment, I downloaded an old version of Axis1, ran its wsdl2java tool, and changed my client around to use the new stubs. My captured Request XML now looks like:




This is causing the service to throw a SOAP Fault because the XXX_IDENTIFIER, PART_NUMBER, and PART_REVISION fields are not assigned to the correct namespace, and the message is viewed as missing required parameters by the service side validator. I looked through the stubs and the fields seem to be Named and Typed correctly in the static TypeDesc initialization block that backs the Serializer (From XXX_IDENTIFIER.java):



Does anyone with Axis1 experience know what I need to change to genereate prefixes or namespace attributes for all of the internal request elements? I'm really kind of stuck on this issue.

Thanks and Regards,

Mike
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with Namespace Prefixes with Axis1 but not Axis2