Hi jugene I try to connect to wsdl whit soapClient, it return me __getFunctions() a list of available funcs:
$client = new SoapClient($path_to_wsdl,array(
'trace' => 1,
'exceptions' => 1,
'features' => 'SOAP_SINGLE_ELEMENT_ARRAYS',
'cache_wsdl' => WSDL_CACHE_NONE,
'location' => $path_to_wsdl,
'uri' => $path_to_wsdl, // This may need to be the same as location.
'soap_version' => SOAP_1_2,
'login' => 'LUPIN',
'password' => '********',
));
$allFunctions = $client->__getFunctions();
var_dump($allFunctions);
[i]// return …
array(6) {
[0]=>
string(29) "lsResponse ls(ls $parameters)"
[1]=>
string(32) "dirResponse dir(dir $parameters)"
[2]=>
string(41) "getlogResponse getlog(getlog $parameters)"
[3]=>
string(32) "getResponse get(get $parameters)"
[4]=>
string(32) "putResponse put(put $parameters)"
[5]=>
string(35) "mgetResponse mget(mget $parameters)"
}[/i]
how can execute these commands ?!
if I try this code:
var_dump($client->ls());
return me error:
[color="#FF0000"]Fatal error: Uncaught SoapFault exception: [HTTP] Not Found in C:\web-dev\xampp\htdocs\ws-dogana\index.php:41
Stack trace:
#0 [internal function]: SoapClient->__doRequest(’<?xml version="…’, ‘https://ws-tele…’, ‘ls’, 2, 0)
#1 C:\web-dev\xampp\htdocs\ws-dogana\index.php(41): SoapClient->__call(‘ls’, Array)
#2 C:\web-dev\xampp\htdocs\ws-dogana\index.php(41): SoapClient->ls()
#3 {main}
thrown in C:\web-dev\xampp\htdocs\ws-dogana\index.php on line 41[/color]