Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <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/">
- <types>
- <xsd:schema elementFormDefault="qualified" targetNamespace="http://www.myservice.nl/soap/"
- >
- <xsd:import namespace="http://schemas.xmlsoap.org/wsdl/" />
- <xsd:complexType name="HeaderAuthenticateType">
- <xsd:all>
- <xsd:element name="reactid" type="xsd:string"/>
- </xsd:all>
- </xsd:complexType>
- <xsd:complexType name="HeaderLoginType">
- <xsd:all>
- <xsd:element name="username" type="xsd:string"/>
- <xsd:element name="password" type="xsd:string"/>
- </xsd:all>
- </xsd:complexType>
- <xsd:complexType name="loginRequestType">
- <xsd:all>
- <xsd:element name="username" type="xsd:string"/>
- <xsd:element name="password" type="xsd:string"/>
- </xsd:all>
- </xsd:complexType>
- <xsd:complexType name="loginResponseType">
- <xsd:all>
- <xsd:element name="reactid" type="xsd:string"/>
- </xsd:all>
- </xsd:complexType>
- <xsd:element name="errorcode" type="xsd:string"/>
- <xsd:element name="login" type="tns:loginRequestType"/>
- <xsd:element name="loginResponse" type="tns:loginResponseType"/>
- <xsd:element name="HeaderLogin" type="tns:HeaderLoginType"/>
- <xsd:element name="HeaderAuthenticate" type="tns:HeaderAuthenticateType"/>
- </xsd:schema>
- </types>
- <message name="loginRequest">
- <part name="parameters" element="tns:login" /></message>
- <message name="loginResponse">
- <part name="parameters" element="tns:loginResponse" /></message>
- <message name="Headers">
- <part name="HeaderLogin" element="tns:HeaderLogin" />
- <part name="HeaderAuthenticate" element="tns:HeaderAuthenticate" /></message>
- <portType name="MyService.nlPortType">
- <operation name="login">
- <documentation>Logs the user in using username and password, returns a reactid for authentication in further requests</documentation>
- <input message="tns:loginRequest"/>
- <output message="tns:loginResponse"/>
- </operation>
- </portType>
- <binding name="MyService.nlBinding" type="tns:MyService.nlPortType">
- <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
- <operation name="login">
- <soap:operation soapAction="http://serve-a-lot/~sjoerd/svnreps/test/soapheader/soapserver.php/login" style="document"/>
- <input><soap:body use="literal"/><soap:header message="tns:Headers" part="HeaderLogin" use="literal"/><soap:header message="tns:Headers" part="HeaderAuthenticate" use="literal"/></input>
- <output><soap:body use="literal"/><soap:header message="tns:Headers" part="HeaderAuthenticate" use="literal"/></output>
- </operation>
- </binding>
- <service name="MyService.nl">
- <port name="MyService.nlPort" binding="tns:MyService.nlBinding">
- <soap:address location="http://serve-a-lot/~sjoerd/svnreps/test/soapheader/soapserver.php?doclit=1"/>
- </port>
- </service>
- </definitions>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement