
Untitled
By: a guest on
May 5th, 2012 | syntax:
None | size: 1.00 KB | hits: 15 | expires: Never
Take the follow sample XML message:
<terminateNotifications xmlns="http://www.abc.com/ws">
<apiVersion>2.24</apiVersion>
<authorization>
<username>admin@company.com</username>
<password>abc!@123</password>
</authorization>
<notificationReportId>12345678</notificationReportId>
</terminateNotifications>
And post it the following end point: https://endpointsample.abc.com (Please Note: This is not a working end point URL)
Which should then return the following sample XML message:
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<response xmlns="http://www.abc.com/ws">
<success>true</success>
<terminateNotificationsResponse>
<notificationReportId>12345678</notificationReportId>
</terminateNotificationsResponse>
</response>
</soapenv:Body>
</soapenv:Envelope>
Then finalize by parsing the returned XML and setting the success and notificationReportId values to 2 separate variables.