Listing 2: An example SOAP/HTTP response with HTTP and XML content
HTTP/1.0 200 OK Content-Type: text/xml; charset=UTF-8 Content-Length: 425 Set-Cookie2: JSESSIONID=4x1b3dqoc1;Version=1;Discard;Path="/soap" Set-Cookie: JSESSIONID=4x1b3dqoc1;Path=/soap Servlet-Engine: Tomcat Web Server/3.2 (final) (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows 2000 5.0 x86; java.vendor=Sun Microsystems Inc.) <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:xsd="http://www.w3.org/1999/XMLSchema"> <SOAP-ENV:Body> <ns1:getRateResponse xmlns:ns1="urn:demo1:exchange" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <return xsi:type="xsd:float">144.52</return> </ns1:getRateResponse> </SOAP-ENV:Body> </SOAP-ENV:Envelope> |