PHP Soap调用给我错误

PHP Soap调用给我错误,php,web-services,api,soap,Php,Web Services,Api,Soap,嗨,我正在尝试用Limoanywhere系统设置一个api服务。但不管我做什么,我都会得到无效的ApiKey和apid。我进入后台系统,多次更改ApiKey和apid,但仍然没有成功 有人能告诉我我的代码是否正确吗 <?php $client = new SoapClient('https://qa.book.mylimobiz.com/api/ApiService.asmx?wsdl'); $options = array( 'ApiKey' =>

嗨,我正在尝试用Limoanywhere系统设置一个api服务。但不管我做什么,我都会得到无效的ApiKey和apid。我进入后台系统,多次更改ApiKey和apid,但仍然没有成功

有人能告诉我我的代码是否正确吗

<?php
$client = new SoapClient('https://qa.book.mylimobiz.com/api/ApiService.asmx?wsdl');
$options = array(
                'ApiKey' => '***api key here****',
                'ApiID'  => '***api id here****'
                );
$result = $client->__soapCall('Test', $options);
//var_dump($client->__getFunctions());
print_r($result);
?>

检查此项,而不是测试功能不工作,给出错误,但测试所有功能都工作

<?php
        $soapClient = new SoapClient("https://book.mylimobiz.com/api/ApiService.asmx?wsdl");

        // Prepare SoapHeader parameters
        $sh_param = array('apiId'    =>    'xxxxxx','apiKey' => 'xxxxxxxxxxxx');

        $headers = new SoapHeader('https://book.mylimobiz.com/api/ApiService.asmx?wsdl', 'GetVehicleTypes', $sh_param);

        // Prepare Soap Client
        $trans = $soapClient->GetVehicleTypes($sh_param)->GetVehicleTypesResult;

        echo "<pre>"; print_r($trans);

?>


我想应该是
$result=$client->Test($options)你能试试吗?@hek2mgl尝试了类似的错误stdClass对象([TestResult]=>stdClass对象([ResponseCode]=>1[ResponseText]=>无效的apid或ApiKey)),好的,我不确定这一点。我们应该看看文档。但这就是为什么它只是一个评论。。。。
<?php
        $soapClient = new SoapClient("https://book.mylimobiz.com/api/ApiService.asmx?wsdl");

        // Prepare SoapHeader parameters
        $sh_param = array('apiId'    =>    'xxxxxx','apiKey' => 'xxxxxxxxxxxx');

        $headers = new SoapHeader('https://book.mylimobiz.com/api/ApiService.asmx?wsdl', 'GetVehicleTypes', $sh_param);

        // Prepare Soap Client
        $trans = $soapClient->GetVehicleTypes($sh_param)->GetVehicleTypesResult;

        echo "<pre>"; print_r($trans);

?>