2011-03-26 70 views
1

如何解決__soapCall返回的錯誤?

$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 

如何解決它? plz幫助。

回答

2

您的代碼調用遠程GetTicketsStringInputs功能:

$client->__soapCall('GetTicketsStringInputs', ... 


你致命的錯誤表示:

Function ("GetTicketsStringInputs") is not a valid method for this service 


似乎很清楚:你想的方法呼叫不存在,它不是由遠程網絡服務提供的。

因此,要解決這個致命的錯誤,你必須停止調用該函數;-)

你應該檢查你的web服務的WSDL:它真的導出這樣的方法?

+0

非常感謝你......!什麼建議...!我已經康復了。 – 2011-03-27 07:58:28

+0

函數名稱存在問題。正確的函數名稱是.. GetTickets,謝謝martin ...! – 2011-03-27 08:00:51

+0

不客氣:-)玩得開心! – 2011-03-27 08:59:00