我想在非 .Net 平台上使用 SharePoint 数据。我已经使用了 SharePoint OOTB 服务,如 Lists.asmx、Webs.asmx 和 search.asmx 来实现这个目的。
我已经成功地添加了对使用 Authentication.asmx 的基于表单的身份验证的支持。
现在,我想提供对 Office 365 SharePoint 在线的支持。为此,我正在使用一个演示 SharePoint Online 站点进行工作。
问题是,当我使用 Authentication.asmx 的 Mode 方法时,我得到了 'Forms' 的响应:
注意:此方法适用于非Office 365 SharePoint站点。请问能否有人帮我实现对Office 365 SharePoint在线OOTB服务的支持?
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<ModeResponse xmlns="http://schemas.microsoft.com/sharepoint/soap/">
<ModeResult>Forms</ModeResult>
</ModeResponse>
</soap:Body>
</soap:Envelope>
然而,当我使用Login.asmx并输入正确的用户名和密码时,我会收到“PasswordNotMatch”错误提示。在浏览器中,同样的凭据可以正常工作。
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<LoginResponse xmlns="http://schemas.microsoft.com/sharepoint/soap/">
<LoginResult>
<ErrorCode>PasswordNotMatch</ErrorCode>
<TimeoutSeconds>0</TimeoutSeconds>
</LoginResult>
</LoginResponse>
</soap:Body>
</soap:Envelope>
注意:此方法适用于非Office 365 SharePoint站点。请问能否有人帮我实现对Office 365 SharePoint在线OOTB服务的支持?