HTTP POST+SOAP

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
violant
Posts: 51
Joined: Sat Apr 25, 2009 1:23 pm
Location: Ukraine

HTTP POST+SOAP

Post by violant »

Can I without script test this HTTP POST?

POST /service_A/MiscServices/RevizorService.asmx HTTP/1.1
Host: HOST_A
Content-Type: text/xml; charset=utf-8
Content-Length: 350
SOAPAction: "urn:eterr:etrete:misc-services:revizor-service/GetCurrentDateTime"

<?xml version="1.0" encoding="utf-8"?>
<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/">
<soap:Body>
<GetCurrentDateTime xmlns="urn:eterr:etrete:misc-services:revizor-service" />
</soap:Body>
</soap:Envelope>


IT return date and time in reply. Please give detailed answere. In what test and how to configure this test.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

I think you may use HTTP test method. However it depends on what exactly means "test" in your case.
Do you want to check that your server accepts request and returns HTTP code 200? or may be you want to check if retrieved date coincided with date on local system? Then what exactly reply will be received by HostMonitor? Date format?

Regards
Alex
violant
Posts: 51
Joined: Sat Apr 25, 2009 1:23 pm
Location: Ukraine

Post by violant »

I need check reply datetime and compare with local datetime by difference. Or min only get reply with datetime. I think do it with HTTP check test. its real.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Yes, you may use HTTP test, select POST request, type <?xml version="1.0" encoding="utf-8"?><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/">
<soap:Body> <GetCurrentDateTime xmlns="urn:eterr:etrete:misc-services:revizor-service" /> </soap:Body> </soap:Envelope>
into "Post data" field, add SOAPAction: "urn:eterr:etrete:misc-services:revizor-service/GetCurrentDateTime" into "Optional headers" field, mark "Check contents" and "Translate date macro variable" options and specify template for date that should be returned by the server.

http://www.ks-soft.net/hostmon.eng/mfra ... s.htm#http

Regards
Alex
violant
Posts: 51
Joined: Sat Apr 25, 2009 1:23 pm
Location: Ukraine

Post by violant »

HTTP test include NTLM authorization? I have v.7.78
Last edited by violant on Wed May 13, 2009 7:37 am, edited 1 time in total.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

HTTP test include NTLM authorization?
It depends on what version of HostMonitor do you use. If you have version 8.00+ then yes

Regards
Alex
Post Reply