aspose file tools*
The moose likes Web Services and the fly likes Unable to fully map ['http://url']:xxxInput using javax.xml.soap.SOAPElement Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Unable to fully map [ Watch "Unable to fully map [ New topic
Author

Unable to fully map ['http://url']:xxxInput using javax.xml.soap.SOAPElement

jagan raja
Ranch Hand

Joined: Jan 29, 2010
Posts: 54
Hi All,

I am trying to create client jar using the following snippet,



My wsdl refers to the below xsd,



When I try generating the jar I get the warnings as,

[clientgen] WARNING: Unable to fully map ['http://url']:zzzInput using javax.xml.soap.SOAPElement
[clientgen] WARNING: Unable to fully map ['http://url']:xxxInput using javax.xml.soap.SOAPElement
[clientgen] WARNING: Unable to fully map ['http://url']:yyyInput using javax.xml.soap.SOAPElement
[clientgen] WARNING: Unable to fully map ['http://url']:request using javax.xml.soap.SOAPElement

In my jar the classes gets generated with javax.xml.soap.SOAPElement as the argument and I dont find the classes based on xxxInput,yyyInput and zzzInput.

Is there any way to specify or do a mapping to get the desired classes.

On the other hand everything works fine with the below task,


But for reasons we are supposed to use the clientgen task as given in the snippet.

Could any one please help me out in this.
jagan raja
Ranch Hand

Joined: Jan 29, 2010
Posts: 54
Hi All,

After some debugging I found out that the usage of <xs:choice/> in one of my referred xsd (crm:zzzInput) was creating the problem.

But still havent found a workaround.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Unable to fully map ['http://url']:xxxInput using javax.xml.soap.SOAPElement