Meaningless Drivel is fun!*
The moose likes Web Services and the fly likes [AXIS2] Inheritance Problem 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 "[AXIS2] Inheritance Problem " Watch "[AXIS2] Inheritance Problem " New topic
Author

[AXIS2] Inheritance Problem

Markus Zimmer
Greenhorn

Joined: Mar 22, 2011
Posts: 2
Hello everyone,

I have a minor problem with one of my webservices which uses inheritance. Let me show you two classfiles (there are about 5 or 6 classes which extra attributes):





I thought it would be ok to generate a soap method which will return an object of the type WSTransferMessage. Deserializing works (I've seen the correct information in the membrane SOAP monitor), but the following error appers when SOAP tries to serialize it:

org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException: Unexpected subelement {http://services.server/xsd}compressMovie
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
at server.services.KLTASOAPListenerStub.fromOM(KLTASOAPListenerStub.java:10488)
at server.services.KLTASOAPListenerStub.getNextCommand(KLTASOAPListenerStub.java:9556)
at taconnector.java.WebserviceConnector.main(WebserviceConnector.java:33)
Caused by: java.lang.Exception: org.apache.axis2.databinding.ADBException: Unexpected subelement {http://services.server/xsd}compressMovie
at server.services.KLTASOAPListenerStub$WSTransferMessage$Factory.parse(KLTASOAPListenerStub.java:51606)
at server.services.KLTASOAPListenerStub$GetNextCommandResponse$Factory.parse(KLTASOAPListenerStub.java:40981)
at server.services.KLTASOAPListenerStub.fromOM(KLTASOAPListenerStub.java:10300)
... 2 more
Caused by: org.apache.axis2.databinding.ADBException: Unexpected subelement {http://services.server/xsd}compressMovie
at server.services.KLTASOAPListenerStub$WSTransferMessage$Factory.parse(KLTASOAPListenerStub.java:51600)
... 4 more


This is my SOAP method:



Is there any way to resolve my "unexpected subelement" problem without removing the whole inheritance? It would be great if i can keep it and SOAP will work correctly.

Thank for reading this,
Markus
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: [AXIS2] Inheritance Problem
 
Similar Threads
Unexpected subelement, Axis ADB Error
WebService Client - Unexpected SubElement Exception
Getting exception org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException: Unexpected
Web Services using AXIS 2
custom wsdl issue