Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Webservices: unexpected element name: How to resolve?

René van WijkFeb 13 2007 — edited Feb 14 2007
I use a WSDL to generate a webservice (It is not possible to modify this WSDL since this is generate by another party - to much work to rebuild server etc).

The client can expect two types of answers from the server a so called <bevestingsBericht> and a <foutBericht>. When the first tag returns everything is fine, when the second returns the following exception is thrown:

class oracle.j2ee.ws.common.encoding.DeserializationException
unexpected element name: expected={http://www.egem.nl/StUF/StUF0205}bevestigingsBericht, actual={http://www.egem.nl/StUF/StUF0205}foutBericht

Is it possible to edit the generated code - eg in the Stub - if so how does one proceed, ie where can I add extra code or modify it so that both SOAPHeader can be returned.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 14 2007
Added on Feb 13 2007
1 comment
319 views