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:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" 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 targetNamespace="http://www.myservice.nl/soap/"
  5. >
  6.  <xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/" schemaLocation="http://schemas.xmlsoap.org/soap/encoding/"/>
  7.  <xsd:import namespace="http://schemas.xmlsoap.org/wsdl/" />
  8.  <xsd:complexType name="HeaderAuthenticate">
  9.   <xsd:all>
  10.    <xsd:element name="reactid" type="xsd:string"/>
  11.   </xsd:all>
  12.  </xsd:complexType>
  13.  <xsd:complexType name="HeaderLogin">
  14.   <xsd:all>
  15.    <xsd:element name="username" type="xsd:string"/>
  16.    <xsd:element name="password" type="xsd:string"/>
  17.   </xsd:all>
  18.  </xsd:complexType>
  19. </xsd:schema>
  20. </types>
  21. <message name="loginRequest">
  22.   <part name="username" type="xsd:string" />
  23.   <part name="password" type="xsd:string" /></message>
  24. <message name="loginResponse">
  25.   <part name="reactid" type="xsd:string" /></message>
  26. <message name="Headers">
  27.   <part name="HeaderLogin" type="tns:HeaderLogin" />
  28.   <part name="HeaderAuthenticate" type="tns:HeaderAuthenticate" /></message>
  29. <portType name="MyService.nlPortType">
  30.   <operation name="login">
  31.     <documentation>Logs the user in using username and password, returns a reactid for authentication in further requests</documentation>
  32.     <input message="tns:loginRequest"/>
  33.     <output message="tns:loginResponse"/>
  34.   </operation>
  35. </portType>
  36. <binding name="MyService.nlBinding" type="tns:MyService.nlPortType">
  37.   <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
  38.   <operation name="login">
  39.     <soap:operation soapAction="http://serve-a-lot/~sjoerd/svnreps/test/soapheader/soapserver.php/login" style="rpc"/>
  40.     <input><soap:body use="encoded" namespace="http://www.myservice.nl/soap/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:header message="tns:Headers" part="HeaderLogin" use="encoded" namespace="http://www.myservice.nl/soap/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:header message="tns:Headers" part="HeaderAuthenticate" use="encoded" namespace="http://www.myservice.nl/soap/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input>
  41.     <output><soap:body use="encoded" namespace="http://www.myservice.nl/soap/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:header message="tns:Headers" part="HeaderAuthenticate" use="encoded" namespace="http://www.myservice.nl/soap/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output>
  42.   </operation>
  43. </binding>
  44. <service name="MyService.nl">
  45.   <port name="MyService.nlPort" binding="tns:MyService.nlBinding">
  46.     <soap:address location="http://serve-a-lot/~sjoerd/svnreps/test/soapheader/soapserver.php?doclit=0"/>
  47.   </port>
  48. </service>
  49. </definitions>