The following sample demonstrates the SDL for a simple web service GetStockDetails method that is invoked using the URL: http://localhost/test/Test.asmx/GetStockDetails?symbol=MSFT with the HTTP-GET Protocol 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"> <httpget xmlns="urn:schemas-xmlsoap-org:get-sdl-2000-01-25"> <service> <requestResponse name="GetStockDetails" href="http://localhost/test/test.asmx/getstockdetails"> <request> <param name="symbol"/> </request> <response> <xmlMime ref="s1:DataSet"/> </response> </requestResponse> </service> </httpget> <schema targetNamespace="" xmlns="http://www.w3.org/1999/XMLSchema"> <element name="DataSet"> <complexType> <element ref="schema"/> <any/> </complexType> </element> </schema> </serviceDescription>