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: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/">
- <types>
- <xsd:schema targetNamespace="http://www.myservice.nl/soap/"
- >
- <xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/" schemaLocation="http://schemas.xmlsoap.org/soap/encoding/"/>
- <xsd:import namespace="http://schemas.xmlsoap.org/wsdl/" />
- <xsd:complexType name="HeaderAuthenticate">
- <xsd:all>
- <xsd:element name="reactid" type="xsd:string"/>
- </xsd:all>
- </xsd:complexType>
- <xsd:complexType name="HeaderLogin">
- <xsd:all>
- <xsd:element name="username" type="xsd:string"/>
- <xsd:element name="password" type="xsd:string"/>
- </xsd:all>
- </xsd:complexType>
- </xsd:schema>
- </types>
- <message name="loginRequest">
- <part name="username" type="xsd:string" />
- <part name="password" type="xsd:string" /></message>
- <message name="loginResponse">
- <part name="reactid" type="xsd:string" /></message>
- <message name="Headers">
- <part name="HeaderLogin" type="tns:HeaderLogin" />
- <part name="HeaderAuthenticate" type="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="rpc" 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="rpc"/>
- <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>
- <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>
- </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=0"/>
- </port>
- </service>
- </definitions>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement