Hello

I'm integrating a service in my applicattion that consists of a webservice and a client of a webservice implementing a server-server asynchronous communication mode. For this, i'm using the provider's client classes and objects wich i got from a wdsl file. The service works as follows: Firstly i call to the other server in order to start the operation, then other server calls to my webservice passing me some data, and finally i call another server's webservice method as an acknowledgement.

The problem comes when the other server has to call my webservice, i'm always returning this error:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>

           <soapenv:Body>

                       <soapenv:Fault>

<faultcode>soapenv:Server.userException</faultcode>

<faultstring>org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.</faultstring>

                                  <detail>

<ns1:hostname xmlns:ns1="http://xml.apache.org/axis/";>amsterdam</ns1:hostname>

                                  </detail>

                       </soapenv:Fault>

           </soapenv:Body>

</soapenv:Envelope>

where "amsterdam" is my server's hostname.

My webservice uses a complex object (that are composed by other complex objects) from the provider in order to recieve and pass the data. I realized that when i deploy the service, one of those complex objects is deployed as a simple object (and then i guess from the error that this object is the guilty one). The problem is that it doesn't follow the typical bean structure (altough it implements java.io.Serializable): it has few final objects(some of them strings) and one constructor wich recieves a string wich puts into a HashTable (and axis deploy it as a simple type object composed by a string with restricted values, wich are the final strings). I've tried to put almost everything into the wsdd file: as a BeanMapping object, as a TypeMapping, but i get nothing.... I haven't touched the object code cause it is supposed to work out of the box (provider says that more people has tried it...)

Please, could somebody help me or give me any clues? If you need more information just ask for it.

Thank you very much.

--
Un saludo,

Tomás Tormo Franco

Indenova, S.L.
Tels.: +34 963 81 99 47 http://www.indenova.com mailto:[EMAIL PROTECTED]

Reply via email to