• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

WSDL2JAVA Namespace Issue

 
M Rama
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My service also likes:
>
 
M Rama
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic