NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

SDL Returned From a HTTP-SOAP Request

The below sample demonstrates the SDL for the sample “GetStockDetails” web service method that is invoked using the URL: http://localhost/test/Test.asmx with the HTTP-SOAP protocol. Unlike the HTTP-GET and HTTP-POST sample, all arguments and return types are wrapped with SOAP XML envelope information.

<serviceDescription xmlns:s0="http://tempuri.org/main.xsd" xmlns:s1="" name="Test" targetNamespace=""
                        xmlns="urn:schemas-xmlsoap-org:sdl.2000-01-25">

  <soap xmlns="urn:schemas-xmlsoap-org:soap-sdl-2000-01-25">
    <service>
      <addresses>
        <address uri="http://localhost/test/Test.asmx"/>
      </addresses>
      <requestResponse name="GetStockDetails" soapMessageName="http://tempuri.org/GetStockDetails">
        <request ref="s0:GetStockDetails"/>
        <response ref="s0:GetStockDetailsResult"/>
      </requestResponse>
    </service>
  </soap>

  <schema targetNamespace="http://tempuri.org/main.xsd" xmlns="http://www.w3.org/1999/XMLSchema">
    <element name="GetStockDetails">
      <complexType>
        <element name="symbol" type="string"/>
      </complexType>
    </element>
    <element name="GetStockDetailsResult">
      <complexType>
        <element name="result">
          <complexType>
            <element ref="schema"/>
            <any/>
          </complexType>
        </element>
      </complexType>
    </element>
  </schema>

  <schema targetNamespace="" xmlns="http://www.w3.org/1999/XMLSchema">
    <element name="DataSet">
      <complexType>
        <element ref="schema"/>
        <any/>
      </complexType>
    </element>
  </schema>

</serviceDescription>