ADDING xml to the SOAP Message from client
Hi, does anyone know how to add an xml file to the SOAP message passed by the client to the server?
I need to send an xml file, I have already tried attachments but they dont meet the purpose. I need to send the xml as part of the soap message in AXIS 1_4.
I read this somewhere about
SOAPEnvelope env = message.getSOAPEnvelope;
env.addBodyElement(new RPCElement("SOAPaccess","webservicename",new
Object[]{}) );
FileInputStream file =new FileInputStream("c:\\abcd.xml");
SOAPBodyElement aBody =new SOAPBodyElement( file );
file.close();
env.addBodyElement( aBody );
However I am not certain how to go about doing this in axis.
I have been trying to find something related to this, but havent been able to.
Please let me know if you know how to add xml file to the body of a SOAP message.

