Hi I have a problem that I've been trying to tackle for a week now.
I'm trying to send a dom.Element and a String as parameters to Service. I
used java2WSDL and WSDL2java to generate stubs for the call.
If I only have Strings being passed as arguments I have no problems, but
when I try to pass the dom.Element I get No Deserializer found to
deserialize a 'http://schemas.xmlsoap.org/soap/envelope/:Parameter
I'm using the newest Axis from http://xml.apache.org/axis/  beta3

It is supposed to have a serilizer for dom.Elements but I guess I'm not
using the right encoding or something.

Could  someone knowledgeable take a look and help me please.

The SOAP call generated to the server is:

OST /soap/servlet/rpcrouter HTTP/1.0
Host: localhost
Content-Type: text/xml; charset=utf-8
SOAPAction: ""
Content-Length: 622

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope soapenv:encodingStyle="http://xml.apache.org/xml-soap";
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>
  <ns1:retriveProfile xmlns:ns1="urn:ProfileManager">
   <sessionCookie xsi:type
="xsd:string">0123456789@skream@1027352733408</sessionCookie>
   <profileParameters xsi:type="ns2:Element" xmlns:ns2
="http://xml.apache.org/xml-soap";>
    <myRootElement/>
   </profileParameters>
  </ns1:retriveProfile>
 </soapenv:Body>
</soapenv:Envelope>

And the response received is:

TTP/1.1 500 Internal Server Error
Content-Type: text/xml; charset=utf-8
Content-Length: 581
Date: Mon, 22 Jul 2002 15:45:38 GMT
Server: Apache Tomcat/4.0.4 (HTTP/1.1 Connector)
Set-Cookie: JSESSIONID=94418306CF8C4D245884CE7760977E50;Path=/soap

<?xml version='1.0' encoding='UTF-8'?>

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

<SOAP-ENV:Body>

<SOAP-ENV:Fault>

<faultcode>SOAP-ENV:Client</faultcode>

<faultstring>No Deserializer found to deserialize a
'http://schemas.xmlsoap.org/soap/envelope/:Parameter' using encoding style
'http://xml.apache.org/xml-soap'.</faultstring>

<faultactor>/soap/servlet/rpcrouter</faultactor>

</SOAP-ENV:Fault>

</SOAP-ENV:Body>

</SOAP-ENV:Envelope>


Thanks you very much in advance
Boris Paskalev


Reply via email to