Listing 1 Example SOAP Request and Reply
Request
XML Prolog <?xml version="1.0" encoding="UTF-8" ?>
SOAP Envelope
(Open) <SOAP-ENV:Envelope
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"
<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
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"
<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>