Sunday, May 2, 2010

What is actually posted when you invoke a Web Service?

POST http://localhost:7001/ExceptionHandlerWS/WSFaultGenerator HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: text/xml;charset=UTF-8
SOAPAction: "helloAction"
User-Agent: Jakarta Commons-HttpClient/3.1
Host: localhost:7001
Content-Length: 412

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://com/testws/ws" xmlns:java="java:com.testws.data">
   <soapenv:Header>
    <someHeadersHere/>
   </soapenv:Header>


   <soapenv:Body>
      <ws:hello>
         <ws:emp>
            <java:Age>34</java:Age>
            <java:Name>Ciao</java:Name>
         </ws:emp>
      </ws:hello>
   </soapenv:Body>
</soapenv:Envelope>
     

  


No comments: