Sharepoint/SOAP - GetListItems 忽略查询 [英] Sharepoint/SOAP - GetListItems ignoring query
本文介绍了Sharepoint/SOAP - GetListItems 忽略查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
尝试通过 SOAP 从 Python 与 Sharepoint 对话.
Trying to talk from Python to Sharepoint through SOAP.
我尝试查询的列表之一包含ID"作为主键字段.
One of the lists I am trying to query contains 'ID' as primary key field.
(Field){
_RowOrdinal = "0"
_FromBaseType = "TRUE"
_DisplayName = "ID"
_Name = "ID"
_SourceID = "http://schemas.microsoft.com/sharepoint/v3"
_ColName = "tp_ID"
_StaticName = "ID"
_PrimaryKey = "TRUE"
_ReadOnly = "TRUE"
_Type = "Counter"
_ID = "{1d22ea11-1e32-424e-89ab-9fedbadb6ce1}"
},
我们发送以下请求来查询 ID=77 的列表项
We send the following request to query the list item with ID=77
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:ns0="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<ns1:GetListItems>
<ns1:listName>60e3f442-6faa-4b49-814d-2ce2ec88b8d5</ns1:listName>
<query><Query><Where>
<Eq>
<FieldRef Name="ID"/>
<Value Type="Counter">77</Value>
</Eq>
</Where></Query></query>
</ns1:GetListItems>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
但是,Sharepoint 会完全忽略查询返回列表中的所有项目.
However Sharepoint returns all items from the list completely ignoring the query.
有什么想法吗?
推荐答案
实际证明是需要使用
<ns1:query>
在这里(无论出于何种原因).
here (for whatever reason).
这篇关于Sharepoint/SOAP - GetListItems 忽略查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文