我正在我的网络服务文件中执行以下操作以获取共享点列表数据:
$authParams = array('login' => 'user', 'password' => 'pass');
/* A string that contains either the display name or the GUID for the list.
* It is recommended that you use the GUID, which must be surrounded by curly
* braces ({}).
*/
$listName = "TestList1";
$rowLimit = '150';
$wsdl = "http://192.168.1.197:5000/sharepoint/ListsWSDL.wsdl";
//Creating the SOAP client and initializing the GetListItems method parameters
$soapClient = new SoapClient($wsdl, $authParams);
$params = array('listName' => $listName, 'rowLimit' => $rowLimit);
//Calling the GetListItems Web Service
$rawXMLresponse = null;
try{
$rawXMLresponse = $soapClient->GetListItems($params)->GetListItemsResult->any;
}
catch(SoapFault $fault){
echo 'Fault code: '.$fault->faultcode;
echo 'Fault string: '.$fault->faultstring;
}
但它会进入 catch 块并出现以下错误:
Fault code: HTTPFault string: Not Found
问题是什么。提前致谢。