The following sample demonstrates the SDL for the sample GetStockDetails web service method that is invoked using the URL: http://localhost/test/Test.asmx/GetStockDetails with the HTTP-POST protocol. Unlike the HTTP-GET sample, all arguments are encoded within the body of the HTTP request (using the standard format used by HTML browsers) and returns an XML dataset containing the appropriate stock details:
<serviceDescription xmlns:s0="http://tempuri.org/main.xsd" xmlns:s1="" name="Test" targetNamespace="" xmlns="urn:schemas-xmlsoap-org:sdl.2000-01-25"> <httppost xmlns="urn:schemas-xmlsoap-org:post-sdl-2000-01-25"> <service> <requestResponse name="GetStockDetails" href="http://localhost/test/test.asmx/getstockdetails"> <request> <form> <input name="symbol"/> </form> </request> <response> <xmlMime ref="s1:DataSet"/> </response> </requestResponse> </service> </httppost> <schema targetNamespace="" xmlns="http://www.w3.org/1999/XMLSchema"> <element name="DataSet"> <complexType> <element ref="schema"/> <any/> </complexType> </element> </schema> </serviceDescription>