SOAP
POST /Charging HTTP/1.1 Host: travelcompany.example.org Content-Type: application/soap; charset="utf-8" Content-Length: nnnn <?xml version='1.0' ?> <env:Envelope xmlns:env="http://www.w3.org/2001/12/soap-envelope" > <env:Header> :::::: </env:Header> <env:Body> <m:reserveAndCharge> :::::: </m:reserveAndCharge> </env:Body> </env:Envelope>
HTTP/1.1 200 OK Content-Type: application/soap; charset="utf-8" Content-Length: nnnn <?xml version='1.0' ?> <env:Envelope xmlns:env="http://www.w3.org/2001/12/soap-envelope" > <env:Header> :::: </env:Header> <env:Body> :::: </env:Body> </env:Envelope>
HTTP/1.1 500 Internal Server Error Content-Type: text/xml; charset="utf-8" Content-Length: nnnn <?xml version='1.0' ?> <env:Envelope xmlns:env="http://www.w3.org/2001/12/soap-envelope"> <env:Body> <env:Fault> <faultcode>env:Receiver</faultcode> <faultstring>Processing Error</faultstring> <detail> <e:myfaultdetails xmlns:e="http://travelcompany.example.org/faults" > <message>Name does not match card number</message> <errorcode>999</errorcode> </e:myfaultdetails> </detail> </env:Fault> </env:Body> </env:Envelope>
26 of 29