Advertisement
Guest User

this wsdl works

a guest
May 1st, 2012
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.87 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.com/adder/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
  4.     xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="adder"
  5.     targetNamespace="http://www.example.com/adder/">
  6.     <wsdl:types>
  7.         <xsd:schema targetNamespace="http://www.example.com/adder/">
  8.             <xsd:element name="add">
  9.                 <xsd:complexType>
  10.                     <xsd:sequence>
  11.                         <xsd:element name="a" type="xsd:int" />
  12.                         <xsd:element name="b" type="xsd:int"></xsd:element>
  13.                     </xsd:sequence>
  14.                 </xsd:complexType>
  15.             </xsd:element>
  16.             <xsd:element name="addResponse">
  17.                 <xsd:complexType>
  18.                     <xsd:sequence>
  19.                         <xsd:element name="answer" type="xsd:int" />
  20.                     </xsd:sequence>
  21.                 </xsd:complexType>
  22.             </xsd:element>
  23.         </xsd:schema>
  24.     </wsdl:types>
  25.     <wsdl:message name="addRequest">
  26.         <wsdl:part element="tns:add" name="parameters" />
  27.     </wsdl:message>
  28.     <wsdl:message name="addResponse">
  29.         <wsdl:part element="tns:addResponse" name="parameters" />
  30.     </wsdl:message>
  31.     <wsdl:portType name="adder">
  32.         <wsdl:operation name="add">
  33.             <wsdl:input message="tns:addRequest" />
  34.             <wsdl:output message="tns:addResponse" />
  35.         </wsdl:operation>
  36.     </wsdl:portType>
  37.     <wsdl:binding name="adderSOAP" type="tns:adder">
  38.         <soap:binding style="document"
  39.             transport="http://schemas.xmlsoap.org/soap/http" />
  40.         <wsdl:operation name="add">
  41.             <soap:operation soapAction="http://www.example.com/adder/add" />
  42.             <wsdl:input>
  43.                 <soap:body use="literal" />
  44.             </wsdl:input>
  45.             <wsdl:output>
  46.                 <soap:body use="literal" />
  47.             </wsdl:output>
  48.         </wsdl:operation>
  49.     </wsdl:binding>
  50.     <wsdl:service name="adder">
  51.         <wsdl:port binding="tns:adderSOAP" name="adderSOAP">
  52.             <soap:address location="http://localhost:7001/adder" />
  53.         </wsdl:port>
  54.     </wsdl:service>
  55. </wsdl:definitions>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement