Beruflich Dokumente
Kultur Dokumente
PREV NEXT
⏮ ⏭
Technical requirements The REST API
🔎
Out of these, SOAP became popular in the early 2000s, when XML riding on a
high wave. The XML data format is used by various distributed systems to
communicate with each other.
The envelope
The header
The body
Just to perform an HTTP request and response cycle, we have to attach a lot of
additional data in SOAP. A sample SOAP request to a fictional book
server, www.example.org, looks like this:
<?xml version="1.0"?>
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelop
<soap:Header>
</soap:Header>
<soap:Body>
<m:GetBook>
<m:BookName>Alice in the wonderland</m:BookName>
</m:GetBook>
</soap:Body>
</soap:Envelope>
The main drawback of SOAP is that it is too complex for implementing web
services and is a heavyweight framework. A SOAP HTTP request can get very
bulky and can cause bandwidth wastage. The experts looked for a simple
alternative, and in came REST. In the next section, we will briefly discuss REST.
You have 2 days le in your trial, Reddychan. Subscribe today. See pricing options.
https://learning.oreilly.com/library/view/hands-on-restful-web/9781838643577/5a977409-d72f-4bd9-b112-9a0f9c1a144d.xhtml 1/1