Webservices: unexpected element name: How to resolve?
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.