Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 5th, 2012  |  syntax: None  |  size: 1.00 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Take the follow sample XML message:
  2.  
  3. <terminateNotifications xmlns="http://www.abc.com/ws">
  4. <apiVersion>2.24</apiVersion>
  5. <authorization>
  6. <username>admin@company.com</username>
  7. <password>abc!@123</password>
  8. </authorization>
  9. <notificationReportId>12345678</notificationReportId>
  10. </terminateNotifications>
  11.  
  12. And post it the following end point:  https://endpointsample.abc.com   (Please Note:  This is not a working end point URL)
  13.  
  14. Which should then return the following sample XML message:
  15.  
  16. <?xml version="1.0" encoding="UTF-8"?>
  17.  
  18. <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
  19.  
  20. <soapenv:Body>
  21.  
  22. <response xmlns="http://www.abc.com/ws">
  23.  
  24. <success>true</success>
  25.  
  26. <terminateNotificationsResponse>
  27.  
  28. <notificationReportId>12345678</notificationReportId>
  29.  
  30. </terminateNotificationsResponse>
  31.  
  32. </response>
  33.  
  34. </soapenv:Body>
  35.  
  36. </soapenv:Envelope>
  37.  
  38. Then finalize by parsing the returned XML and setting the success and notificationReportId values to 2 separate variables.