IBM®
跳转到主要内容
    中国 [选择]    使用条款
 
 
Select a scope: Search for:    
    首页    产品    服务与解决方案     支持与下载    个性化服务    
跳转到主要内容

developerWorks 中国  >  SOA and Web services  >

The Web services (r)evolution: Part 3

How SOAP works

developerWorks

Return to article


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>
      
      

Return to article

    关于 IBM 隐私条约 联系 IBM 使用条款