Advertisement
Guest User

test.xml

a guest
Oct 30th, 2014
617
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.28 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <definitions name="TestServer" targetNamespace="http://foo.bar/testserver" xmlns:tns="http://foo.bar/testserver" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:ns="http://foo.bar/testserver/types">
  3.   <types>
  4.     <xsd:schema targetNamespace="http://foo.bar/testserver/types" xmlns="http://foo.bar/testserver/types">
  5.       <xsd:complexType name="ArrayOfEmployeeReturn">
  6.         <xsd:complexContent>
  7.           <xsd:restriction base="soapenc:Array">
  8.             <xsd:attribute ref="soapenc:arrayType" arrayType="ns:Employee[]"/>
  9.           </xsd:restriction>
  10.         </xsd:complexContent>
  11.       </xsd:complexType>
  12.       <xsd:complexType name="Employee">
  13.         <xsd:sequence>
  14.           <xsd:element name="id" type="xsd:int"/>
  15.           <xsd:element name="department" type="xsd:string"/>
  16.           <xsd:element name="name" type="xsd:string"/>
  17.           <xsd:element name="age" type="xsd:int"/>
  18.         </xsd:sequence>
  19.       </xsd:complexType>
  20.       <xsd:element name="Employee" nillable="true" type="ns:Employee"/>
  21.       <xsd:complexType name="User">
  22.         <xsd:sequence>
  23.           <xsd:element name="name" type="xsd:string"/>
  24.           <xsd:element name="age" type="xsd:int"/>
  25.         </xsd:sequence>
  26.       </xsd:complexType>
  27.       <xsd:element name="User" nillable="true" type="ns:User"/>
  28.     </xsd:schema>
  29.   </types>
  30.   <message name="getEmployeeRequest">
  31.     <part name="name" type="xsd:name"/>
  32.   </message>
  33.   <message name="getEmployeeResponse">
  34.     <part name="employeeReturn" type="ns:ArrayOfEmployeeReturn"/>
  35.   </message>
  36.   <message name="getUserRequest">
  37.     <part name="id" type="xsd:id"/>
  38.   </message>
  39.   <message name="getUserResponse">
  40.     <part name="userReturn" element="ns:User"/>
  41.   </message>
  42.   <portType name="TestServerPortType">
  43.     <operation name="getEmployee">
  44.       <input message="tns:getEmployeeRequest"/>
  45.       <output message="tns:getEmployeeResponse"/>
  46.     </operation>
  47.     <operation name="getUser">
  48.       <input message="tns:getUserRequest"/>
  49.       <output message="tns:getUserResponse"/>
  50.     </operation>
  51.   </portType>
  52.   <binding name="TestServerBinding" type="tns:TestServerPortType">
  53.     <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
  54.     <operation name="getEmployee">
  55.       <soap:operation soapAction="http://foo.bar/testserver/#getEmployee"/>
  56.       <input>
  57.         <soap:body use="literal" namespace="http://foo.bar/testserver"/>
  58.       </input>
  59.       <output>
  60.         <soap:body use="literal" namespace="http://foo.bar/testserver"/>
  61.       </output>
  62.     </operation>
  63.     <operation name="getUser">
  64.       <soap:operation soapAction="http://foo.bar/testserver/#getUser"/>
  65.       <input>
  66.         <soap:body use="literal" namespace="http://foo.bar/testserver"/>
  67.       </input>
  68.       <output>
  69.         <soap:body use="literal" namespace="http://foo.bar/testserver"/>
  70.       </output>
  71.     </operation>
  72.   </binding>
  73.   <service name="TestServerService">
  74.     <port name="TestServerPort" binding="tns:TestServerBinding">
  75.       <soap:address location="http://localhost/wsdl-creator/TestClass.php"/>
  76.     </port>
  77.   </service>
  78. </definitions>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement