Advertisement
Guest User

XML

a guest
Oct 3rd, 2016
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MXML 4.68 KB | None | 0 0
  1. GetPassword
  2.  
  3. Test
  4.  
  5. The test form is only available for requests from the local machine.
  6. SOAP 1.1
  7.  
  8. The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
  9.  
  10. POST /AIMWebservice/v1.1/AIM.asmx HTTP/1.1
  11. Host: MyServer
  12. Content-Type: text/xml; charset=utf-8
  13. Content-Length: length
  14. SOAPAction: "https://tempuri.org/GetPassword"
  15.  
  16. <?xml version="1.0" encoding="utf-8"?>
  17. <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  18.   <soap:Body>
  19.     <GetPassword xmlns="https://tempuri.org/">
  20.       <passwordWSRequest>
  21.         <AppID>string</AppID>
  22.         <Safe>string</Safe>
  23.         <Folder>string</Folder>
  24.         <Object>string</Object>
  25.         <UserName>string</UserName>
  26.         <Address>string</Address>
  27.         <Database>string</Database>
  28.         <PolicyID>string</PolicyID>
  29.         <Reason>string</Reason>
  30.         <ConnectionTimeout>int</ConnectionTimeout>
  31.         <Query>string</Query>
  32.         <QueryFormat>Exact or Regexp</QueryFormat>
  33.         <Attributes>
  34.           <KeyAndValue>
  35.             <key>string</key>
  36.             <value>string</value>
  37.           </KeyAndValue>
  38.           <KeyAndValue>
  39.             <key>string</key>
  40.             <value>string</value>
  41.           </KeyAndValue>
  42.         </Attributes>
  43.       </passwordWSRequest>
  44.     </GetPassword>
  45.   </soap:Body>
  46. </soap:Envelope>
  47. HTTP/1.1 200 OK
  48. Content-Type: text/xml; charset=utf-8
  49. Content-Length: length
  50.  
  51. <?xml version="1.0" encoding="utf-8"?>
  52. <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  53.   <soap:Body>
  54.     <GetPasswordResponse xmlns="https://tempuri.org/">
  55.       <GetPasswordResult>
  56.         <Content>string</Content>
  57.         <UserName>string</UserName>
  58.         <Address>string</Address>
  59.         <Database>string</Database>
  60.         <PolicyID>string</PolicyID>
  61.         <Properties>
  62.           <KeyAndValue>
  63.             <key>string</key>
  64.             <value>string</value>
  65.           </KeyAndValue>
  66.           <KeyAndValue>
  67.             <key>string</key>
  68.             <value>string</value>
  69.           </KeyAndValue>
  70.         </Properties>
  71.       </GetPasswordResult>
  72.     </GetPasswordResponse>
  73.   </soap:Body>
  74. </soap:Envelope>
  75. SOAP 1.2
  76.  
  77. The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
  78.  
  79. POST /AIMWebservice/v1.1/AIM.asmx HTTP/1.1
  80. Host: MyServer
  81. Content-Type: application/soap+xml; charset=utf-8
  82. Content-Length: length
  83.  
  84. <?xml version="1.0" encoding="utf-8"?>
  85. <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  86.   <soap12:Body>
  87.     <GetPassword xmlns="https://tempuri.org/">
  88.       <passwordWSRequest>
  89.         <AppID>string</AppID>
  90.         <Safe>string</Safe>
  91.         <Folder>string</Folder>
  92.         <Object>string</Object>
  93.         <UserName>string</UserName>
  94.         <Address>string</Address>
  95.         <Database>string</Database>
  96.         <PolicyID>string</PolicyID>
  97.         <Reason>string</Reason>
  98.         <ConnectionTimeout>int</ConnectionTimeout>
  99.         <Query>string</Query>
  100.         <QueryFormat>Exact or Regexp</QueryFormat>
  101.         <Attributes>
  102.           <KeyAndValue>
  103.             <key>string</key>
  104.             <value>string</value>
  105.           </KeyAndValue>
  106.           <KeyAndValue>
  107.             <key>string</key>
  108.             <value>string</value>
  109.           </KeyAndValue>
  110.         </Attributes>
  111.       </passwordWSRequest>
  112.     </GetPassword>
  113.   </soap12:Body>
  114. </soap12:Envelope>
  115. HTTP/1.1 200 OK
  116. Content-Type: application/soap+xml; charset=utf-8
  117. Content-Length: length
  118.  
  119. <?xml version="1.0" encoding="utf-8"?>
  120. <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  121.   <soap12:Body>
  122.     <GetPasswordResponse xmlns="https://tempuri.org/">
  123.       <GetPasswordResult>
  124.         <Content>string</Content>
  125.         <UserName>string</UserName>
  126.         <Address>string</Address>
  127.         <Database>string</Database>
  128.         <PolicyID>string</PolicyID>
  129.         <Properties>
  130.           <KeyAndValue>
  131.             <key>string</key>
  132.             <value>string</value>
  133.           </KeyAndValue>
  134.           <KeyAndValue>
  135.             <key>string</key>
  136.             <value>string</value>
  137.           </KeyAndValue>
  138.         </Properties>
  139.       </GetPasswordResult>
  140.     </GetPasswordResponse>
  141.   </soap12:Body>
  142. </soap12:Envelope>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement