I created WebServices exactly such as in "The Definite Guide to Yii" and when I try call a method in server I get error
Server:
class TestWSController extends CController
{
public function actions()
{
return array(
'quote'=>array(
'class'=>'CWebServiceAction',
),
);
}
/**
*
* @return str
* @soap
*/
public function test(){
return 'test ok';
}
}
Client:
$client = new SoapClient('http://192.168.1.2/SRPSP/index.php/testWS/quote');
$val = $client->test();
echo "WS: $val";
Client and server are in local network.
I use Win7 / apache 2.2/ php 5.2.13 / yii 1.1.4
??