Advertisement
Guest User

Untitled

a guest
Jun 17th, 2014
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.21 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2. <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
  3. xmlns:tns="http://www.example.org/calculatorWS/"
  4. xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
  5. xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  6. name="calculatorWS"
  7. targetNamespace="http://www.example.org/calculatorWS/">
  8.   <wsdl:types>
  9.     <xsd:schema targetNamespace="http://www.example.org/calculatorWS/">
  10.       <xsd:element name="calculatorRequest">
  11.         <xsd:complexType>
  12.           <xsd:sequence>
  13.             <xsd:element name="operand1" type="xsd:int"/>
  14.             <xsd:element name="operand2" type="xsd:int"/>
  15.             <xsd:element name="operation" type="xsd:string"/>
  16.           </xsd:sequence>
  17.         </xsd:complexType>
  18.       </xsd:element>
  19.       <xsd:element name="calculatorResponse">
  20.         <xsd:complexType>
  21.           <xsd:sequence>
  22.             <xsd:element name="response" type="xsd:string"/>
  23.           </xsd:sequence>
  24.         </xsd:complexType>
  25.       </xsd:element>
  26.     </xsd:schema>
  27.   </wsdl:types>
  28.   <wsdl:message name="calculatorWSRequest">
  29.     <wsdl:part element="tns:calculatorRequest" name="request"/>
  30.   </wsdl:message>
  31.   <wsdl:message name="calculatorWSResponse">
  32.     <wsdl:part element="tns:calculatorResponse" name="response"/>
  33.   </wsdl:message>
  34.   <wsdl:portType name="calculatorWS">
  35.     <wsdl:operation name="calculate">
  36.       <wsdl:input message="tns:calculatorWSRequest"/>
  37.       <wsdl:output message="tns:calculatorWSResponse"/>
  38.     </wsdl:operation>
  39.   </wsdl:portType>
  40.   <wsdl:binding name="calculatorWSSOAP" type="tns:calculatorWS">
  41.     <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
  42.     <wsdl:operation name="calculate">
  43.       <soap:operation soapAction="http://www.example.org/calculatorWS/calculate"/>
  44.       <wsdl:input>
  45.         <soap:body use="literal"/>
  46.       </wsdl:input>
  47.       <wsdl:output>
  48.         <soap:body use="literal"/>
  49.       </wsdl:output>
  50.     </wsdl:operation>
  51.   </wsdl:binding>
  52.   <wsdl:service name="calculatorWS">
  53.     <wsdl:port binding="tns:calculatorWSSOAP" name="calculatorWSPort">
  54.         <soap:address location="http://localhost:8080/CalculatorWS"/>
  55.     </wsdl:port>
  56.   </wsdl:service>
  57. </wsdl:definitions>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement