I'm trying to call a web service method using rpc communication style. The client is
generated using wsdl2java. The method input parameter is a long and uses
soap encoding. The output is xml and uses literal encoding. For
example: Element getInventory(long device_id). When I run this I get an
exception on the server (not Axis by the way)- No serializer found to
serialize a 'org.w3c.dom.Element' using encoding style
'http://schemas.xmlsoap.org/soap/encoding/". Since the Call object does
not specify the encoding it uses soap for both the input and output.
My question - Is there a way on the Call object to explicitly indicate
that the input parameter uses soap encoding while the output parameter
uses literal? I tried calling _call.setEncodingStyle("http://xml.apache.org/xml-soap/literalxml"); but that didn't work. It just caused both the input and output
parameter to use literal encoding which gave a different exception.
Thank you,
Frank
