Example of SOAP call
Web services: Example on request and response
In the request below you see how the request sends in a parameter to the function GetClientPhone. The company that is sought for is identified thorugh the parameter "ClientCompanyNumber". The response returns the customer's phone number in parameter "Phone".
Example on a request:
POST /Person HTTP/1.1
Host: www.exempel.org
Content-Type: application/soap+xml; charset=utf-8
Content-Length: nnn
<?xml version="1.0"?>
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope "
soap:encodingStyle=" http://www.w3.org/2003/05/soap-encoding">
<soap:Body xmlns:m="http://www.dinsite.org/client">
<m:GetClientPhone>
<m:ClientCompanyNumber>55555554545</m:ClientCompanyNumber>
</m:GetClientPhone>
</soap:Body>
</soap:Envelope>
Example on a response:
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: nnn
<?xml version="1.0"?>
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope "
soap:encodingStyle=" http://www.w3.org/2003/05/soap-encoding">
<soap:Body xmlns:m=" http://www.dinsite.org/client ">
<m:GetClientPhoneResponse>
<m:Phone>+4631202020</m:Phone>
</m: GetClientPhoneResponse>
</soap:Body>
</soap:Envelope>

