how to convert an XML file (input data) into a SOAP message?
800340Apr 8 2011 — edited Apr 9 2011Hi there,
I recently wrote a dummy program to retrieve data from a web service. The program simply read from an input file (the xml content) and send it to the web service, the return result is store in a file (xml). I wish to 'upgrade' this approach of reading and writing from/to a file and have it done by SOAP. For some reason, I'm unable to do so.
The data on the xml input file that I sent is this:
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<Upgrade xmlns="http://tempuri.org/">
<upgrade>
<User>John</User>
<Password>javalava</Password>
<EmployeeId>77384</EmployeeId>
<Rank>Q6</Rank>
</upgrade>
</Upgrade>
</soap12:Body>
</soap12:Envelope>
When trying to upgrade to SOAPEnvelope it fails.
Thanks for any pointers!!!