Web Services (REST, SOAP)
5 flashcards · Computer Science · by Убитое Время
What is Web Service?
Web service facilitates interaction between two machines over a network
What is SOAP?
Simple Object Access Protocol SOAP provides a way to communicate between applications running on different operating systems, with different technologies and programming languages.
SOAP Building Blocks
A SOAP message is an ordinary XML document containing the following elements: An Envelope element that identifies the XML document as a SOAP message A Header element that contains header information A Body element that contains call and response information A Fault element containing errors and status information All the elements above are declared in the default namespace for the SOAP envelope:
Skeleton SOAP Message
<?xml version="1.0"?> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope/" soap:encodingStyle="http://www.w3.org/2003/05/soap-encoding"> <soap:Header> ... </soap:Header> <soap:Body> ... <soap:Fault> ... </soap:Fault> </soap:Body> </soap:Envelope>
The SOAP Envelope Element
The required SOAP Envelope element is the root element of a SOAP message. This element defines the XML document as a SOAP message.