HomeDigital EditionSys-Con RadioSearch Web Services Cd
B2B Beginning WS Business Process Management Case Studies Content Management Distributing Computing e-Business Electronic Data Interchange Enterprise Industry Insight Integration Interviews Java & Web Services .NET Portal Product Reviews Scalability & Performance Security SOAP Source Code UDDI Wireless WS Standards WS Tips & Techniques WSDL WS Editorials XML

Web Services and ZOOBA, by Raymond Gao
WSJ Vol 01 Issue 03 - pg.50

	


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=
<a href="http://schemas.xmlsoap.org/soap/envelope/%22" EUDORA=AUTOURL>
http://schemas.xmlsoap.org/soap/envelope/"</a>

SOAP-ENV:encodingSytle="
<a href="http://schemas.xmlsoap.org/soap/encoding/" EUDORA=AUTOURL>
http://schemas.xmlsoap.org/soap/encoding/</a>">

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=
<a href="http://schemas.xmlsoap.org/soap/encoding/" EUDORA=AUTOURL>
http://schemas.xmlsoap.org/soap/encoding/</a>>

<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>
<br>
Reply
XML Prolog
<?xml version="1.0" encoding="UTF-8" ?>
SOAP Envelope
(Open)<SOAP-ENV:Envelope
xmlns:SOAP-ENV=
<a href="http://schemas.xmlsoap.org/soap/envelope/%22" EUDORA=AUTOURL>
http://schemas.xmlsoap.org/soap/envelope/"</a>
SOAP-ENV:encodingSytle="
<a href="http://schemas.xmlsoap.org/soap/encoding/" EUDORA=AUTOURL>
http://schemas.xmlsoap.org/soap/encoding/</a>">

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=
<a href="http://schemas.xmlsoap.org/soap/encoding/" EUDORA=AUTOURL>
http://schemas.xmlsoap.org/soap/encoding/</a>>


<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>