Wednesday, September 26, 2012

WSDL File Document/Literal (wrapped)


xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://calc.lnn.com" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://calc.lnn.com" xmlns:intf="http://calc.lnn.com" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 <wsdl:types>
  <schema elementFormDefault="qualified" targetNamespace="http://calc.lnn.com" xmlns="http://www.w3.org/2001/XMLSchema">
   <element name="execute">
    <complexType>
     <sequence>
      <element name="inputParams" type="impl:InputParams"/>
     </sequence>
    </complexType>
   </element>
   <complexType name="InputParams">
    <sequence>
     <element name="xnum" type="xsd:double"/>
     <element name="ynum" type="xsd:double"/>
    </sequence>
   </complexType>
   <element name="executeResponse">
    <complexType>
     <sequence>
      <element name="executeReturn" type="impl:OutputParams"/>
     </sequence>
    </complexType>
   </element>
   <complexType name="OutputParams">
    <sequence>
     <element name="add" type="xsd:double"/>
     <element name="sub" type="xsd:double"/>
    </sequence>
   </complexType>
  </schema>
 </wsdl:types>

   <wsdl:message name="executeRequest">

      <wsdl:part element="impl:execute" name="parameters">

      </wsdl:part>

   </wsdl:message>

   <wsdl:message name="executeResponse">

      <wsdl:part element="impl:executeResponse" name="parameters">

      </wsdl:part>

   </wsdl:message>

   <wsdl:portType name="Operation">

      <wsdl:operation name="execute">

         <wsdl:input message="impl:executeRequest" name="executeRequest">

       </wsdl:input>

         <wsdl:output message="impl:executeResponse" name="executeResponse">

       </wsdl:output>

      </wsdl:operation>

   </wsdl:portType>

   <wsdl:binding name="OperationSoapBinding" type="impl:Operation">

      <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>

      <wsdl:operation name="execute">

         <wsdlsoap:operation soapAction=""/>

         <wsdl:input name="executeRequest">

            <wsdlsoap:body use="literal"/>

         </wsdl:input>

         <wsdl:output name="executeResponse">

            <wsdlsoap:body use="literal"/>

         </wsdl:output>

      </wsdl:operation>

   </wsdl:binding>

   <wsdl:service name="OperationService">

      <wsdl:port binding="impl:OperationSoapBinding" name="Operation">

         <wsdlsoap:address location="http://localhost:8080/first/services/Operation"/>

      </wsdl:port>

   </wsdl:service>

</wsdl:definitions>

No comments:

Post a Comment