The SOAP Structure
Learn how to declare SOAP as an XML 1.0 file, declare the XML as SOAP, make a SOAP header and finally, learn how to make a SOAP body. It is really all quite simple.
The first thing you do in a SOAP file is to declare it as an XML 1.0. Make sure that you close this tag later on because this is an XML document.
<?xml version="1.0"?>
Second, declare the XML as SOAP with the following line of code.
<soap:Envelope xmlns:soap="http://www.w3.org/2001/12/soap-envelope" soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding">
Make sure that you close this later on with
</soap:Envelope>
Third, make a soap header.
<soap:Header> ... ... </soap:Header>
Fourth, make a SOAP body. This will include all data including fault data.
<soap:Body> ... ... <soap:Fault> ... ... </soap:Fault> </soap:Body>
That's it! SOAP is simple if you already know XML. Make sure that you follow the XML rules of proper nesting, case sensitivity, and closing tags.
www.soapware.org, You can continue developing your SOAP skills at sites like Soapware.