I want to connect soap api with php.
I use this code:
$login = "";
$password = "";
$apiHostPath = "";
$AuthClient = new SoapClient($apiHostPath);
$AuthClient->__call('EntLogin', array('UserName' => $login, 'Password' => $password));
$response = $AuthClient->GetHotelsList();
But i'm getting an error like this:
Fatal error: Uncaught SoapFault exception: [Client] Function ("EntLogin")
is not a valid method for this service in /home/artofmob/public_html/becool
/application/controllers/work.php:56 Stack trace: #0 /home/artofmob/public_html/
becool/application/controllers/work.php(56): SoapClient->__call('EntLogin', Array)
#1 [internal function]: Work->otelz() #2 /home/artofmob/public_html/becool/system
/core/CodeIgniter.php(359): call_user_func_array(Array, Array) #3 /home/artofmob
/public_html/becool/index.php(202): require_once('/home/artofmob/...') #4 {main}
thrown in /home/artofmob/public_html/becool/application/controllers/work.php on
line 56
i could not figure it out. Where is my fault?
Thanks for your help.
No comments:
Post a Comment