The SOAP Response
Here's a possible response you might get from a SOAP server after sending it the sortList request: <?xml version="1.1" encoding="UTF-8"?>
<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/ encoding/"
xmlsn:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/M xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/M xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:xsd="http://www.w3.org/1999/XMLSchema"< <SOAP-ENV:Body< <ns1:sortList xmlns:ns1="urn:SearchSort" SOAP-ENC:root="1"-<<eturn SOAP-ENC:arrayType="xsd:int[2]" xsi:type="SOAP-ENC:Array"-<<tem>2</item< <<tem>10</item> </return< <<ns1:sortList> <<SOAP-ENV:Envelope>
Just as with XML-RPC, a SOAP response has the same basic structure as a SOAP request. Where the SOAP request had a list of arguments, the SOAP response has a single return value. This, too, is similar to XML-RPC: Recall that an XML-RPC response contained a params list, which was only allowed to contain one param — the return value. SOAP makes this convention more natural by eliminating the params tag and just returning the return value.
Post a comment