$param['websiteConfigID'] = 729872;
$param['numberOfRecords'] = 10;
$param['numberOfRecords'] = 10;
$client = new SoapClient(WSDL);
$result = $client->__soapCall('GetTicketsStringInputs', array('parameters' => $param));
$result
持有此错误消息....
Fatal error: Uncaught SoapFault exception:
[Client] Function ("GetTicketsStringInputs") is not a valid method for this service in /home/fmticket/public_html/inc/genericLib.php:279
Stack trace:
#0 /home/fmticket/public_html/inc/genericLib.php(279): SoapClient->__soapCall('GetTicketsStrin...', Array)
#1 /home/fmticket/public_html/resultsTicket.php(12): getTickets(Array)
#2 {main} thrown in /home/fmticket/public_html/inc/genericLib.php on line 279
如何解决?请帮助。
答案 0 :(得分:2)
您的代码正在调用远程GetTicketsStringInputs
函数:
$client->__soapCall('GetTicketsStringInputs', ...
你得到的致命错误表明:
Function ("GetTicketsStringInputs") is not a valid method for this service
看起来非常清楚:您尝试调用的方法不存在,远程Web服务不提供。
因此,要解决该致命错误,您必须停止调用该函数; - )
您应该检查Web服务的WSDL:它是否真的导出了这样的方法?