Guest User

request/response/WSDL

a guest
May 10th, 2012
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.60 KB | None | 0 0
  1. // REQUEST
  2.  
  3. <v:Envelope xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:d="http://www.w3.org/2001/XMLSchema" xmlns:c="http://schemas.xmlsoap.org/soap/encoding/" xmlns:v="http://schemas.xmlsoap.org/soap/envelope/"><v:Header />
  4.     <v:Body>
  5.         <n0:checkUserLogin id="o0" c:root="1" xmlns:n0="http://ServerFacade/">
  6.             <username i:type="d:string">name</username>
  7.             <password i:type="d:string">pass</password>
  8.         </n0:checkUserLogin>
  9.     </v:Body>
  10. </v:Envelope>
  11.  
  12. // RESPONSE
  13.  
  14. <?xml version='1.0' encoding='UTF-8'?>
  15. <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
  16.     <S:Body>
  17.         <ns2:checkUserLoginResponse xmlns:ns2="http://ServerFacade/">
  18.             <return>
  19.                 <message>Login erfolgreich!</message>
  20.                 <msgType>1</msgType>
  21.             </return>
  22.         </ns2:checkUserLoginResponse>
  23.     </S:Body>
  24. </S:Envelope>
  25.  
  26.  
  27. // WSDL
  28. //operation
  29. <operation name="checkUserLogin">
  30.     <input wsam:Action="http://ServerFacade/ItemService/checkUserLoginRequest" message="tns:checkUserLogin"/>
  31.     <output wsam:Action="http://ServerFacade/ItemService/checkUserLoginResponse" message="tns:checkUserLoginResponse"/>
  32. </operation>
  33.  
  34. //messages
  35. <message name="checkUserLogin">
  36.     <part name="parameters" element="tns:checkUserLogin"/>
  37. </message>
  38. <message name="checkUserLoginResponse">
  39.     <part name="parameters" element="tns:checkUserLoginResponse"/>
  40. </message>
  41.  
  42. //checkUserResponse
  43. <xs:element name="checkUserLoginResponse" type="tns:checkUserLoginResponse"/>
  44.  
  45. <xs:complexType name="checkUserLoginResponse">
  46.     <xs:sequence>
  47.         <xs:element name="return" type="tns:serverMessageStruct" minOccurs="0"/>
  48.     </xs:sequence>
  49. </xs:complexType>
Advertisement
Add Comment
Please, Sign In to add comment