Listing 1 Example SOAP Request and Reply

Request
XML Prolog      <?xml version="1.0" encoding="UTF-8" ?>
SOAP Envelope
(Open)  <SOAP-ENV:Envelope
        xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/"
        SOAP-ENV:encodingSytle="http://schemas.xmlsoap.org/soap/encoding/">

Header (optional)       <SOAP-ENV:Header>
<tns:Transaction
        xmlns:tns="urn:CanPerformWebServices"
        SOAP-ENV:mustUnderstand="1">

</tns:Transaction>
</SOAP-ENV:Header>
Body    <SOAP-ENV:Body>
<schd:SetupAppointment
        xmlns:schd="urn:OnlinePetWebServices"
        SOAP-ENV:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/>

        <PetName>ZOOBA</PetName>
        <Date>April 8th, 2002</Date>
        <Time>10 A.M. </Time>
        <TypeOfService>vaccination</TypeOfService>
</schd:SetupAppointment>
</SOAP-ENV:Body>
SOAP Envelope
(Close) </SOAP-ENV:Envelope>

Reply
XML Prolog      <?xml version="1.0" encoding="UTF-8" ?>
SOAP Envelope
(Open)  <SOAP-ENV:Envelope
        xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/"
        SOAP-ENV:encodingSytle="http://schemas.xmlsoap.org/soap/encoding/">

Header (optional)       <SOAP-ENV:Header>
<tns:Transaction
        xmlns:tns="urn:CanPerformWebServices"
        SOAP-ENV:mustUnderstand="1"

</tns:Transaction>
</SOAP-ENV:Header>
Body    <SOAP-ENV:Body>
<schd:SetupAppointmentResponse
        xmlns:schd="urn:OnlinePetWebServices"
        SOAP-ENV:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/>

        <Result>Confirmed</Result>
        <DetailResult>
                Vaccination for ZOOBA at April 8th, 2002, 10 A.M.
        </DetailResult>
</schd:SetupAppointmentResponse>
</SOAP-ENV:Body>
SOAP Envelope
(Close) </SOAP-ENV:Envelope>