Want more features on Pastebin? Sign Up, it's FREE!
Guest

Sjoerd

By: a guest on Sep 11th, 2009  |  syntax: XML  |  size: 3.13 KB  |  views: 209  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <definitions xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://www.myservice.nl/soap/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://www.myservice.nl/soap/">
  3. <types>
  4. <xsd:schema elementFormDefault="qualified" targetNamespace="http://www.myservice.nl/soap/"
  5. >
  6.  <xsd:import namespace="http://schemas.xmlsoap.org/wsdl/" />
  7.  <xsd:complexType name="HeaderAuthenticateType">
  8.   <xsd:all>
  9.    <xsd:element name="reactid" type="xsd:string"/>
  10.   </xsd:all>
  11.  </xsd:complexType>
  12.  <xsd:complexType name="HeaderLoginType">
  13.   <xsd:all>
  14.    <xsd:element name="username" type="xsd:string"/>
  15.    <xsd:element name="password" type="xsd:string"/>
  16.   </xsd:all>
  17.  </xsd:complexType>
  18.  <xsd:complexType name="loginRequestType">
  19.   <xsd:all>
  20.    <xsd:element name="username" type="xsd:string"/>
  21.    <xsd:element name="password" type="xsd:string"/>
  22.   </xsd:all>
  23.  </xsd:complexType>
  24.  <xsd:complexType name="loginResponseType">
  25.   <xsd:all>
  26.    <xsd:element name="reactid" type="xsd:string"/>
  27.   </xsd:all>
  28.  </xsd:complexType>
  29.  <xsd:element name="errorcode" type="xsd:string"/>
  30.  <xsd:element name="login" type="tns:loginRequestType"/>
  31.  <xsd:element name="loginResponse" type="tns:loginResponseType"/>
  32.  <xsd:element name="HeaderLogin" type="tns:HeaderLoginType"/>
  33.  <xsd:element name="HeaderAuthenticate" type="tns:HeaderAuthenticateType"/>
  34. </xsd:schema>
  35. </types>
  36. <message name="loginRequest">
  37.   <part name="parameters" element="tns:login" /></message>
  38. <message name="loginResponse">
  39.   <part name="parameters" element="tns:loginResponse" /></message>
  40. <message name="Headers">
  41.   <part name="HeaderLogin" element="tns:HeaderLogin" />
  42.   <part name="HeaderAuthenticate" element="tns:HeaderAuthenticate" /></message>
  43. <portType name="MyService.nlPortType">
  44.   <operation name="login">
  45.     <documentation>Logs the user in using username and password, returns a reactid for authentication in further requests</documentation>
  46.     <input message="tns:loginRequest"/>
  47.     <output message="tns:loginResponse"/>
  48.   </operation>
  49. </portType>
  50. <binding name="MyService.nlBinding" type="tns:MyService.nlPortType">
  51.   <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
  52.   <operation name="login">
  53.     <soap:operation soapAction="http://serve-a-lot/~sjoerd/svnreps/test/soapheader/soapserver.php/login" style="document"/>
  54.     <input><soap:body use="literal"/><soap:header message="tns:Headers" part="HeaderLogin" use="literal"/><soap:header message="tns:Headers" part="HeaderAuthenticate" use="literal"/></input>
  55.     <output><soap:body use="literal"/><soap:header message="tns:Headers" part="HeaderAuthenticate" use="literal"/></output>
  56.   </operation>
  57. </binding>
  58. <service name="MyService.nl">
  59.   <port name="MyService.nlPort" binding="tns:MyService.nlBinding">
  60.     <soap:address location="http://serve-a-lot/~sjoerd/svnreps/test/soapheader/soapserver.php?doclit=1"/>
  61.   </port>
  62. </service>
  63. </definitions>
clone this paste RAW Paste Data