The SOAP Test Connectivity Service allows you to verify if the server is reachable and responding correctly. It is a simple service that returns a status message confirming a successful connection.
POST /webservices/soap/ws-test-connectivity.php
Below is the structure of the SOAP request used to test connectivity:
POST /webservices/soap/ws-test-connectivity.php HTTP/1.1
Host: mutillidae.localhost
User-Agent: curl/8.5.0
Accept: */*
Content-Type: text/xml; charset=utf-8
SOAPAction: "urn:testConnectivity"
Content-Length: 185
Connection: close
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header/>
<soapenv:Body>
<testConnectivity/>
</soapenv:Body>
</soapenv:Envelope>
POST /webservices/soap/ws-test-connectivity.php HTTP/1.1
Host: mutillidae.localhost
Content-Type: text/xml; charset=utf-8
SOAPAction: "urn:testConnectivity"
Content-Length: 147
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header/>
<soapenv:Body>
<testConnectivity/>
</soapenv:Body>
</soapenv:Envelope>
Click Send to test the connectivity. If the service is working, the server will respond with a status message.
curl (Command Line)curl -X POST "http://mutillidae.localhost/webservices/soap/ws-test-connectivity.php" \
-H "Content-Type: text/xml; charset=utf-8" \
-H "SOAPAction: \"urn:testConnectivity\"" \
--data '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header/>
<soapenv:Body>
<testConnectivity/>
</soapenv:Body>
</soapenv:Envelope>'
If the request is successful, the server will respond with the following SOAP message:
<?xml version="1.0"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<testConnectivityResponse>
<status>OK</status>
<code>200</code>
<message>Connection succeeded.</message>
<timestamp>2024-10-27 14:00:00</timestamp>
</testConnectivityResponse>
</soap:Body>
</soap:Envelope>
mutillidae.localhost.curl, ensure you have network connectivity.Try sending multiple requests and observe how the timestamp changes in each response.