I am using the Axis "Message" style service to populate the SOAP body myself. My payload originates in an XML file, which I read into a SOAPBodyElement. When I invoke the call, Axis obviously reconverts the SOAPBodyElement into XML and sends it out to the server:
SOAPBodyElement[] params = new SOAPBodyElement[1];
params[0] = new SOAPBodyElement(new FileInputStream("message.xml"));
...
Vector resultElements = (Vector)call.invoke(params);
Is there any way to avoid these unnecessay conversions from XML to SOAPBodyElement and back? There is a similar problem with the returned result - I don't want Axis to convert the XML returned in the response message, I want to access the XML directly. Ah, and of course, the same problem on the server side! Where do I start?
Thanks,
Naresh