doucheng1063 2018-12-13 10:30 采纳率: 100%
浏览 67

列表不存在:sharepoint

I want to fetch a video from SharePoint and am using this API. It actually asks for WSDL file. I got WSDL file from this link https://mysite.sharepoint.com/_vti_bin/Lists.asmx?WSDL (Replacing mysite with actual URL for security reasons). I am using the code below

    <?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();
?>

I am following this error

Fatal error: Uncaught Exception: Error (soap:Server) Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown.,more=Detailed: List does not exist. The page you selected contains a list that does not exist. It may have been deleted by another user. in C:\xampp\htdocs\sharepoint\src\Thybag\SharePointAPI.php:1016 Stack trace: #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} thrown in C:\xampp\htdocs\sharepoint\src\Thybag\SharePointAPI.php on line 1016

It actually says that List does not exist. The page you selected contains a list that does not exist. It may have been deleted by another user. which I have really no idea that how to deal with this. I actually don't know that how to make new WSDL file in Sharepoint
If I use these credentials

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

then It gives me this error

Fatal error: Uncaught Exception: Error (HTTP) Forbidden,more= in C:\xampp\htdocs\sharepoint\src\Thybag\SharePointAPI.php:1016 Stack trace: #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} thrown in C:\xampp\htdocs\sharepoint\src\Thybag\SharePointAPI.php on line 1016

I really don't know that how to tackle them. Thanks

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 Tableau online 嵌入ppt失败
    • ¥100 支付宝网页转账系统不识别账号
    • ¥15 基于单片机的靶位控制系统
    • ¥15 AT89C51控制8位八段数码管显示时钟。
    • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
    • ¥15 下图接收小电路,谁知道原理
    • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
    • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
    • ¥15 手机接入宽带网线,如何释放宽带全部速度
    • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测