aspose file tools*
The moose likes Web Services and the fly likes Axis2 datatype namespace Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Axis2 datatype namespace" Watch "Axis2 datatype namespace" New topic
Author

Axis2 datatype namespace

Tim Parr
Greenhorn

Joined: Oct 25, 2012
Posts: 1
I have two WSDLs. One WSDL defines an interface that lists the services running on the node. The other WSDL really has nothing to do with the first but it does use the URL name returned by an operation defined in the first WSDL. I use Axis2 1.6.2 to generate the services as separate Eclipse projects where I generate both the client and the server. The server-side is clean as each server is separate from the other running in Tomcat. The client-side is giving me issues as we are trying to create a GUI that talks to both. I an using the WSDL#1 service to return a list of services (thats it nothing else). So i copied the client stub into the project for the client-side of WSDL#2. This is where I run into issues as the data type the holds the list of services has different namespace in the generated code ns2 in WSDL#1's project and ns9 in WSDL#2's project. The result of this is I can request the type, the server-side returns the type, but the client-side goes into an infinite loop because it does not know how to parse it. I am not allowed to change the WSDLs.

How does one handle cases like this? Is there a way to generate everything all at once so the namespaces are aligned?

Thanks,

Tim
 
wood burning stoves
 
subject: Axis2 datatype namespace