Xml GetListItems方法中ViewFields标记的位置+;sharepoint web服务
我想检索sharepoint列表中所有列和行的数据。因此,我试图发送一个“ViewFields”参数,指定要检索到web服务函数getListItems()的所有字段。请求xml如下所示:Xml GetListItems方法中ViewFields标记的位置+;sharepoint web服务,xml,web-services,sharepoint,sharepoint-2007,Xml,Web Services,Sharepoint,Sharepoint 2007,我想检索sharepoint列表中所有列和行的数据。因此,我试图发送一个“ViewFields”参数,指定要检索到web服务函数getListItems()的所有字段。请求xml如下所示: <GetListItems xmlns="http://schemas.microsoft.com/sharepoint/soap/"> <listName>'.$list.'</listName> <r
<GetListItems xmlns="http://schemas.microsoft.com/sharepoint/soap/">
<listName>'.$list.'</listName>
<rowLimit>'.$limit.'</rowLimit>
<queryOptions xmlns:SOAPSDK9="http://schemas.microsoft.com/sharepoint/soap/" >
<QueryOptions/>
</queryOptions>
</GetListItems>
“.$list”
“.$limit。”
“ViewFields”标记如下所示:
<ViewFields>
<FieldRef Name="ID" />
<FieldRef Name="Title" />...
</ViewFields>
...
我试图插入,但它没有覆盖默认视图中的字段。所以,我想可能是我给的地方不对。所以我的问题是,标记应该出现在请求xml中的什么位置,以便它覆盖默认视图中的字段。提前感谢。
<GetListItems xmlns="http://schemas.microsoft.com/sharepoint/soap/">
<listName>...</listName>
<viewName>....</viewName>
<Query>
<Where>
.
.
</Where>
</Query>
<ViewFields>
<FieldRef Name="ID" />
.
.
.
</ViewFields>
<rowLimit>...</rowLimit>
<queryOptions xmlns:SOAPSDK9="http://schemas.microsoft.com/sharepoint/soap/" >
<QueryOptions/>
</queryOptions>
</GetListItems>
...
....
.
.
.
.
.
...
指定要使用的特定视图