I am using Axis 1.4. I want to understand how encoding style is chosen for a schema of a service (WSDL) and any instance of that schema (SOAP request/response). Here is the nature of the problem. The clients to the service are strongly typed and can only interprete response with encoding style "soapenc". So in the WSDD, all the request/response object typemapping includes encodingStyle attribute (green) as below:
However, when a client sends a request, the response packet goes back with "xsd" econding style. Hence client fails to interpret it.
<message xsi:type="xsd:string"> blah blah</message>
Can someone please explain how & why encoding style could be different from WSDL to actual response? How to enforce an encoding style for request/resposne? If I understand correctly, this is RPC/Encoded style. Just to clarify: based on some of the other threads I tried using RPC/Literal but the exisitng clients (no liberty to regenerate new clients) failed to deserialize. So pl keep this in mind when suggesting solutions/answers. Thanks in advance.
Axis version used details:
Implementation-Title: Apache Axis
Implementation-Version: 1.4 1855 April 22 2006
Implementation-Vendor: Apache Web Services