Code Listing for the Calc.wsdl File

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/28/2008

You can find the Calc.wsdl sample file in %_WINCEROOT%\Public\Servers\SDK\Samples\SOAP\Calc\Service\RPC\Isapicpp.

The following code shows the entire content of the file.

Note

You must change the value of the location attribute of the <soap:address> element. The URL specifies a test device. Change it to the server name as appropriate.

<?xml version='1.0' encoding='UTF-8' ?> 
<definitions  name ='Calc'   targetNamespace = 'https://tempuri.org/wsdl/'
        xmlns:wsdlns='https://tempuri.org/wsdl/' 
        xmlns:typens='https://tempuri.org/type' 
        xmlns:soap='https://schemas.xmlsoap.org/wsdl/soap/' 
        xmlns:xsd='https://www.w3.org/2000/10/XMLSchema' 
        xmlns:stk='https://schemas.microsoft.com/soap-toolkit/wsdl-extension'
        xmlns='https://schemas.xmlsoap.org/wsdl/'> 
  <types>
    <schema targetNamespace='https://tempuri.org/type'
      xmlns='https://www.w3.org/2000/10/XMLSchema'
      xmlns:SOAP-ENC='https://schemas.xmlsoap.org/soap/encoding/'
      xmlns:wsdl='https://schemas.xmlsoap.org/wsdl/'>
    </schema>
  </types>
  <message name='Calc.Multiply'>
    <part name='A' type='xsd:double'/>
    <part name='B' type='xsd:double'/>
  </message>
  <message name='Calc.MultiplyResponse'>
    <part name='Result' type='xsd:double'/>
  </message>
  <message name='Calc.Divide'>
    <part name='A' type='xsd:double'/>
    <part name='B' type='xsd:double'/>
  </message>
  <message name='Calc.DivideResponse'>
    <part name='Result' type='xsd:double'/>
  </message>
  <message name='Calc.Subtract'>
    <part name='A' type='xsd:double'/>
    <part name='B' type='xsd:double'/>
  </message>
  <message name='Calc.SubtractResponse'>
    <part name='Result' type='xsd:double'/>
  </message>
  <message name='Calc.Add'>
    <part name='A' type='xsd:double'/>
    <part name='B' type='xsd:double'/>
  </message>
  <message name='Calc.AddResponse'>
    <part name='Result' type='xsd:double'/>
  </message>
  <portType name='CalcSoapPort'>
    <operation name='Multiply' parameterOrder='A B'>
      <input message='wsdlns:Calc.Multiply' />
      <output message='wsdlns:Calc.MultiplyResponse' />
    </operation>
    <operation name='Divide' parameterOrder='A B'>
      <input message='wsdlns:Calc.Divide' />
      <output message='wsdlns:Calc.DivideResponse' />
    </operation>
    <operation name='Subtract' parameterOrder='A B'>
      <input message='wsdlns:Calc.Subtract' />
      <output message='wsdlns:Calc.SubtractResponse' />
    </operation>
    <operation name='Add' parameterOrder='A B'>
      <input message='wsdlns:Calc.Add' />
      <output message='wsdlns:Calc.AddResponse' />
    </operation>
  </portType>
  <binding name='CalcSoapBinding' type='wsdlns:CalcSoapPort' >
    <stk:binding preferredEncoding='UTF-8'/>
    <soap:binding style='rpc' transport='https://schemas.xmlsoap.org/soap/http' />
    <operation name='Multiply' >
      <soap:operation soapAction='https://tempuri.org/action/Calc.Multiply' />
      <input>
        <soap:body use='encoded' namespace='https://tempuri.org/message/'
         encodingStyle='https://schemas.xmlsoap.org/soap/encoding/' />
      </input>
      <output>
        <soap:body use='encoded' namespace='https://tempuri.org/message/'
         encodingStyle='https://schemas.xmlsoap.org/soap/encoding/' />
      </output>
    </operation>
    <operation name='Divide' >
      <soap:operation soapAction='https://tempuri.org/action/Calc.Divide' />
      <input>
        <soap:body use='encoded' namespace='https://tempuri.org/message/'
         encodingStyle='https://schemas.xmlsoap.org/soap/encoding/' />
      </input>
      <output>
        <soap:body use='encoded' namespace='https://tempuri.org/message/'
         encodingStyle='https://schemas.xmlsoap.org/soap/encoding/' />
      </output>
    </operation>
    <operation name='Subtract' >
      <soap:operation soapAction='https://tempuri.org/action/Calc.Subtract' />
      <input>
        <soap:body use='encoded' namespace='https://tempuri.org/message/'
         encodingStyle='https://schemas.xmlsoap.org/soap/encoding/' />
      </input>
      <output>
        <soap:body use='encoded' namespace='https://tempuri.org/message/'
         encodingStyle='https://schemas.xmlsoap.org/soap/encoding/' />
      </output>
    </operation>
    <operation name='Add' >
      <soap:operation soapAction='https://tempuri.org/action/Calc.Add' />
      <input>
        <soap:body use='encoded' namespace='https://tempuri.org/message/'
         encodingStyle='https://schemas.xmlsoap.org/soap/encoding/' />
      </input>
      <output>
        <soap:body use='encoded' namespace='https://tempuri.org/message/'
         encodingStyle='https://schemas.xmlsoap.org/soap/encoding/' />
      </output>
    </operation>
  </binding>
  <service name='Calc' >
    <port name='CalcSoapPort' binding='wsdlns:CalcSoapBinding' >
      <soap:address location='https://MSSoapSampleServer/MSSoapSamples/Calc/Service/Rpc/IsapiCpp/Calc.wsdl' />
    </port>
  </service>
</definitions>

See Also

Concepts

About the Calc.wsdl File