无法通过 SSRS 和 XML 数据源从 SharePoint 库中检索包含空格的文件
我正在尝试通过 SSRS 和 XML 数据源从共享点检索文件。
这就是我当前正在使用的:
<Query>
<SoapAction>http://schemas.microsoft.com/sharepoint/soap/GetListItems</SoapAction>
<Method Namespace="http://schemas.microsoft.com/sharepoint/soap/" Name="GetListItems">
<Parameters>
<Parameter Name="listName">
<DefaultValue>account</DefaultValue>
</Parameter>
<Parameter Name="queryOptions" Type="xml">
<DefaultValue>
<QueryOptions>
<Folder>account/testfolder</Folder>
</QueryOptions>
</DefaultValue>
</Parameter>
</Parameters>
</Method>
</Query>
但是,我可以从位于帐户下的测试文件夹中检索所有文件(这很好!)。如果我创建这样的查询:
<Query>
<SoapAction>http://schemas.microsoft.com/sharepoint/soap/GetListItems</SoapAction>
<Method Namespace="http://schemas.microsoft.com/sharepoint/soap/" Name="GetListItems">
<Parameters>
<Parameter Name="listName">
<DefaultValue>Invoice City</DefaultValue>
</Parameter>
<Parameter Name="queryOptions" Type="xml">
<DefaultValue>
<QueryOptions>
<Folder>Invoice City/testfolder</Folder>
</QueryOptions>
</DefaultValue>
</Parameter>
</Parameters>
</Method>
</Query>
第二次在库名称(发票城市)中添加空格,它只会返回发票城市库中的所有内容(文件夹和文件)。
我只是将文件夹名称设为不带空格,但我使用的是 CRM 文档,它会自动创建文件夹作为实体名称(发票城市)。
我尝试过将文件夹名称放在引号中,并尝试了十亿次转义字符和其他内容。我希望它能够工作,因为网络服务只需要一个字符串。
还有其他人遇到过这个问题吗?非常感谢您的帮助。
I'm trying to retrieve files from sharepoint via SSRS and an XML Datasource.
This is what I'm currently using:
<Query>
<SoapAction>http://schemas.microsoft.com/sharepoint/soap/GetListItems</SoapAction>
<Method Namespace="http://schemas.microsoft.com/sharepoint/soap/" Name="GetListItems">
<Parameters>
<Parameter Name="listName">
<DefaultValue>account</DefaultValue>
</Parameter>
<Parameter Name="queryOptions" Type="xml">
<DefaultValue>
<QueryOptions>
<Folder>account/testfolder</Folder>
</QueryOptions>
</DefaultValue>
</Parameter>
</Parameters>
</Method>
</Query>
I can retrieve all of the files from the testfolder located under account (that's good!) however. If I create a query like this:
<Query>
<SoapAction>http://schemas.microsoft.com/sharepoint/soap/GetListItems</SoapAction>
<Method Namespace="http://schemas.microsoft.com/sharepoint/soap/" Name="GetListItems">
<Parameters>
<Parameter Name="listName">
<DefaultValue>Invoice City</DefaultValue>
</Parameter>
<Parameter Name="queryOptions" Type="xml">
<DefaultValue>
<QueryOptions>
<Folder>Invoice City/testfolder</Folder>
</QueryOptions>
</DefaultValue>
</Parameter>
</Parameters>
</Method>
</Query>
The second that I add the space in the library name (Invoice City) it just returned everything in the Invoice City library (folders and files).
I would just make the folder name without spaces but I'm using CRM Documents and it auto creates folders as the entity name (Invoice City).
I've tried putting the folder name in quotes, and a billion other tries of escape characters and other things. I would expect this to work as the web service is just expecting a string.
Has anyone else ran into this issue? Help is greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
找出问题所在了!它最终与空格没有任何关系(尽管我认为可能是)。
我使用的是库名称而不是路径名称。所以为了修复:
Figured out the problem! It didn't have anything to do with spaces in the end (though I thought it might have been).
I was using the library name instead of the path name.. So for the fix: