posted 12 years ago
Hi,
I have a WSDL file which I've used to create a stub (using wsdl2java.exe),
But when trying to use that sub, I get an exception:
java.lang.Exception: org.apache.axis2.databinding.ADBException: Unexpected subelement {VenueContextWS}headers
at venuecontextws.VenueContextWSStub$GetReportBlock_VenueContextResponse$Factory.parse(VenueContextWSStub.java:7368)
at venuecontextws.VenueContextWSStub.fromOM(VenueContextWSStub.java:12500)
... 2 more
Caused by: org.apache.axis2.databinding.ADBException: Unexpected subelement {VenueContextWS}headers
When debugging, I can see the in the xml received from the web service, the data that I need, but before it returns to my classes, the stub's method falls on a javax.xml.stream.XMLStreamException which is then wrapped by an ADBException (see above).
Is there any chance that the stub's code (auto generated) has problems?
or it must be a problem in one of the parameters I pass to the stub's method? (although it would be strange because I can see the data that I need in the WS response)
Thanks for the help