Hello,

I have a .NET client (C++) that I want to use to call a WebSphere4.0/Apache
SOAP service.

I generated the client proxy from Visual Studio .NET. The wsdl file was
generated in WSAD 4.0.2 (and fixed up by me to work in .NET).

I added a map to the Apache deployment descriptor to handle the 'what is
the parameter type?' incompatibility problem.

But I still get an exception: java.lang.IllegalArgumentException: No
Serializer found to serialize a 'org.apache.soap.rpc.Parameter' using
encoding style 'null'.

The problem seems to be that an encodingStyle attribute on the method
element is expected by Apache, but .NET doesn't generate that attribute
there
(there is one on the soap:Body element though).

What .NET sends:

<soap:Body soap:encodingStyle = "url..">
   <snp:someMethod xmlns:snp="url...">
     <someParameter> something </someParameter>
   </snp:someMethod>
</soap:Body>

What apache expects:

<soap:Body>
   <snp:someMethod xmlns:snp="url..." soap:encodingStyle = "url..">
     <someParameter xsi:type="xsd:string"> something </someParameter>
   </snp:someMethod>
</soap:Body>

Is there a work around to this problem? I haven't seen a similar posting.

Thanks for any help,
Rich



Reply via email to