Difference between revisions of "Offerit API Ping"
From Offerit
(→Server Request/Response) |
(→Server Request/Response) |
||
Line 25: | Line 25: | ||
==Server Request/Response== | ==Server Request/Response== | ||
− | Request: | + | {{hidden|headerstyle=padding-right:3em;|Request:| |
<pre> | <pre> | ||
<?xml version="1.0" encoding="ISO-8859-1"?><SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" | <?xml version="1.0" encoding="ISO-8859-1"?><SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" | ||
Line 33: | Line 33: | ||
</SOAP-ENV:Body></SOAP-ENV:Envelope> | </SOAP-ENV:Body></SOAP-ENV:Envelope> | ||
</pre> | </pre> | ||
+ | }} | ||
− | Response: | + | {{hidden|headerstyle=padding-right:3em;|Response:| |
<pre> | <pre> | ||
<?xml version="1.0" encoding="ISO-8859-1"?><SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" | <?xml version="1.0" encoding="ISO-8859-1"?><SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" | ||
Line 42: | Line 43: | ||
</ns1:pingResponse></SOAP-ENV:Body></SOAP-ENV:Envelope> | </ns1:pingResponse></SOAP-ENV:Body></SOAP-ENV:Envelope> | ||
</pre> | </pre> | ||
+ | }} |
Revision as of 16:26, 25 October 2011
Ping is a test function to make sure that you can successfully connect to the API.
NuSOAP Example
This example continues from the main article NuSOAP Example):
$result = $client->call('ping', Array(), 'offeritapiadmin_wsdl');
Sample Output
on success: 1 on failure: <no output>