Help with SOAP/XML Test

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
Christiane
Posts: 12
Joined: Tue Nov 15, 2011 2:37 am

Help with SOAP/XML Test

Post by Christiane »

Hi!
I do not know much about SOAP, but I need to grap and compare a single value from a XML webpage.
Unfortunately the URL from your sample in hostmonitor help (http://www.mathertel.de/CalcFactors/) is broken and it is difficult for me to understand what to do.
It would be nice to have another sample?

Christiane
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

You may try the following SOAP setvice for testing:
http://www.dataaccess.com/webservicesse ... berToWords

Sample HostMonitor SOAP/XML test settings:
URL: http://www.dataaccess.com/webservicesse ... ersion.wso
Request: POST
Parameters:
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<NumberToWords xmlns="http://www.dataaccess.com/webservicesserver/">
<ubiNum>22</ubiNum>
</NumberToWords>
</soap12:Body>
</soap12:Envelope>

SOAP version 1.2

Check XML value:
XPath: //m:NumberToWordsResult
Alert when 1st row DOESN'T CONTAIN two

Please check for XPath tutorial at:
http://www.w3schools.com/xml/xml_xpath.asp
Christiane
Posts: 12
Joined: Tue Nov 15, 2011 2:37 am

Post by Christiane »

Thank you very much! This sample works :D
And I now realized that in our case (XML page, not service) I do not have to use SOAP parameters but only XPATH and that does our job very nice.

Happy - Christiane
Post Reply