Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to convert an XML file (input data) into a SOAP message?

800340Apr 8 2011 — edited Apr 9 2011
Hi 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!!!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 7 2011
Added on Apr 8 2011
2 comments
1,428 views