Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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 Android Security Essentials Live Lessons this week in the Android 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
 
 
subject: problem using stub generated from WSDL file
 
Similar Threads
Unexpected subelement, Axis ADB Error
org.apache.axis2.AxisFault: http
WebService Client - Unexpected SubElement Exception
Web Services using AXIS 2
custom wsdl issue