SOAP
===============================
********************************************************************************
## Server
********************************************************************************
'http://localhost/farid/soap/');
//create a new SOAP server
$server = new SoapServer(NULL,$options);
//attach the API class to the SOAP Server
$server->setClass('MyAPI');
//start the SOAP requests handler
$server->handle();
********************************************************************************
## Client
********************************************************************************
'http://localhost/farid/soap/server.php',
'uri' => 'http://localhost/farid/soap/');
//create an instante of the SOAPClient (the API will be available)
$api = new SoapClient(NULL, $options);
//call an API method
echo $api->test();
********************************************************************************
## Third party soap
********************************************************************************
__getFunctions() as $item)
echo $item."
";
$var = array('username'=>'hetg2','password'=>'something');
$exception = null;
try {
$tmp =$client->COUNT_SENDSMS($var);
echo $tmp;
echo("
");
echo "Response:\n" . $client->__getLastResponse() . "\n";
} catch (SoapFault $sf) {
echo $sf;
}
********************************************************************************
_BY: Farid Ahmadian_
_TAG: php, soap_
_DATE: 2013-01-1 00:00:01_