列表不存在:共享点

时间:2018-12-13 10:30:47

标签: php sharepoint

我想从SharePoint获取视频,并且正在使用此API。它实际上要求提供WSDL文件。我从此链接https://mysite.sharepoint.com/_vti_bin/Lists.asmx?WSDL获得了WSDL文件(出于安全原因,将mysite替换为实际URL)。我正在使用下面的代码

    <?php
include "src\Thybag\SharePointAPI.php";
include "src\Thybag\Auth\SharePointOnlineAuth.php";
include "src\Thybag\Auth\SoapClientAuth.php";
include "src\Thybag\Auth\StreamWrapperHttpAuth.php";
include "src\Thybag\Service\ListService.php";
include "src\Thybag\Service\QueryObjectService.php";
use Thybag\SharePointAPI;
$sp = new SharePointAPI('username','password',' https://mysite.sharepoint.com/_vti_bin/Lists.asmx?WSDL','SPONLINE');
$data = $sp->read('Documents');
var_dump($data);

//phpinfo();
?>

我正在跟踪此错误

  

致命错误:未捕获的异常:错误(soap:Server)引发了类型为'Microsoft.SharePoint.SoapServer.SoapServerException'的异常。,more =详细信息:列表不存在。您选择的页面包含一个不存在的列表。它可能已被其他用户删除。在C:\ xampp \ htdocs \ sharepoint \ src \ Thybag \ SharePointAPI.php:1016中堆栈跟踪:#0 C:\ xampp \ htdocs \ sharepoint \ src \ Thybag \ SharePointAPI.php(446):Thybag \ SharePointAPI-> onError (Object(SoapFault))#1 C:\ xampp \ htdocs \ sharepoint \ zain.php(10):Thybag \ SharePointAPI-> read('Documents')#2 {main}放在C:\ xampp \ htdocs \ sharepoint中\ src \ Thybag \ SharePointAPI.php在第1016行

它实际上是说List does not exist. The page you selected contains a list that does not exist. It may have been deleted by another user.,我真的不知道该如何处理。我实际上不知道如何在Sharepoint中制作新的WSDL文件
如果我使用这些凭据

$sp = new SharePointAPI('username','password','https://mysite.sharepoint.com/sites/ObjectifiedWIP/_vti_bin/Lists.asmx?WSDL');

然后它给我这个错误

  

致命错误:未捕获的异常:错误(HTTP),C:\ xampp \ htdocs \ sharepoint \ src \ Thybag \ SharePointAPI.php:1016中的更多(=)堆栈跟踪:#0 C:\ xampp \ htdocs \ sharepoint \ src \ Thybag \ SharePointAPI.php(446):Thybag \ SharePointAPI-> onError(Object(SoapFault))#1 C:\ xampp \ htdocs \ sharepoint \ zain.php(10):Thybag \ SharePointAPI-> read('Documents ')#2 {main}在第1016行的C:\ xampp \ htdocs \ sharepoint \ src \ Thybag \ SharePointAPI.php中抛出

我真的不知道该如何解决。谢谢

0 个答案:

没有答案