0

共有ポイント リスト データを取得するために、Web サービス ファイルで次を実行しています。

$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

Try http://[sharepoint site url]/_vti_bin/lists.asmx?WSDL for the wsdl,

but the actual webservice exists on http://[sharepoint site url]/_vti_bin/lists.asmx

This list of webservices has a page showing the url for each service.

于 2012-11-22T01:33:32.323 に答える