This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Services and the fly likes problem using stub generated from WSDL file 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 "problem using stub generated from WSDL file" Watch "problem using stub generated from WSDL file" New topic
Author

problem using stub generated from WSDL file

Tal Goldstein
Greenhorn

Joined: Apr 16, 2006
Posts: 14
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem using stub generated from WSDL file
 
Similar Threads
Unexpected subelement, Axis ADB Error
custom wsdl issue
Web Services using AXIS 2
org.apache.axis2.AxisFault: http
WebService Client - Unexpected SubElement Exception