wood burning stoves 2.0*
The moose likes Web Services and the fly likes WSDL2JAVA Namespace Issue 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 "WSDL2JAVA Namespace Issue" Watch "WSDL2JAVA Namespace Issue" New topic
Author

WSDL2JAVA Namespace Issue

M Rama
Ranch Hand

Joined: Mar 04, 2005
Posts: 91
I generated Java code from the WSDL. I own the service and I wrote a test client and the soap which got generated was like this:


However my external client wants them like this:





Aren't the namespace for xyz the same in both scenarios? So, why my Java Service Implementation code doesn't fetch me the data? I get a null when I try to access abc through code.

>
M Rama
Ranch Hand

Joined: Mar 04, 2005
Posts: 91
My service also likes:
>
M Rama
Ranch Hand

Joined: Mar 04, 2005
Posts: 91
Found the answer. The schema needed to have elementFormDefault="qualified".

The error was with abc where if xmlns was used on xyz, abc used the same namespace and not in the other scenario.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: WSDL2JAVA Namespace Issue
 
Similar Threads
A problem parsing the response envelope.
adding arbitary xml to soap headers using SAAJ
Returning an Array of user -defined objects from a JAX-WS Webservice
BP-compliant SOAP Envelope's namespace
Mock exam question: SOAP doubt