0

我正在我的网络服务文件中执行以下操作以获取共享点列表数据:

$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

问题是什么。提前致谢。

4

1 回答 1

0

试试http://[sharepoint site url]/_vti_bin/lists.asmx?WSDLwsdl,

但实际的网络服务存在于http://[sharepoint site url]/_vti_bin/lists.asmx

这个web 服务列表有一个页面显示每个服务的 url。

于 2012-11-22T01:33:32.323 回答