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.
HTTP POST+SOAP
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
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
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
<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