• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

problem using stub generated from WSDL file

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic