在 SSRS 2016 中,我编写了以下 XML 数据源:
https://<site>/_vti_bin/usergroup.asmx
然后是以下数据集:
<Query>
<SoapAction>http://schemas.microsoft.com/sharepoint/soap/directory/GetGroupCollectionFromUser
</SoapAction>
<Method Namespace="http://schemas.microsoft.com/sharepoint/soap/directory"
Name="GetGroupCollectionFromUser">
<Parameters>
<Parameter Name="userLoginName">
<DefaultValue>user</DefaultValue>
</Parameter>
</Parameters>
</Method>
<ElementPath IgnoreNamespaces="true">*</ElementPath>
</Query>
作为用户_dataSetParameter=User!UserID
在查询设计器中启动查询我收到以下错误。非常感谢您的帮助:
===================================
An error occurred while executing the query.
Failed to execute web request for the specified URL.
Soap Fault:
Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown. (Microsoft SQL Server Report Builder)
===================================
对指定 URL 执行 Web 请求失败。
远程服务器返回错误:(500) 内部服务器错误。
<?xml version="1.0" encoding="utf-8"?><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>
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>Exception of type
'Microsoft.SharePoint.SoapServer.SoapServerException' was
thrown.
</faultstring><detail><errorstring
xmlns="http://schemas.microsoft.com/sharepoint/soap/">The parameter
loginName cannot be empty or bigger than 251 characters.</errorstring>
<errorcode
xmlns="http://schemas.microsoft.com/sharepoint/soap/">0x80131600</errorcode>
</detail></soap:Fault></soap:Body>
</soap:Envelope>