我正在尝试通过列表 Web 服务查询 SharePoint 日历列表,以获取当月发生的所有事件。我得到的结果非常断断续续。使用 SharePoint 对象模型查询时,我没有遇到任何相同的问题。我已经粘贴了下面的代码。有人可以帮我吗?谢谢。
var soapEnv =
"<soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/'> \
<soapenv:Body> \
<GetListItems xmlns='http://schemas.microsoft.com/sharepoint/soap/'> \
<listName>Calendar</listName> \
<query> \
<Query> \
<Where> \
<DateRangesOverlap> \
<FieldRef Name='EventDate' /> \
<FieldRef Name='EndDate' /> \
<FieldRef Name='RecurrenceID' /> \
<Value Type='DateTime'><Week /></Value> \
</DateRangesOverlap> \
</Where> \
</Query> \
</query> \
<queryOptions> \
<QueryOptions> \
<ExpandRecurrence>True</ExpandRecurrence> \
<CalendarDate>" + calendarDate + "</CalendarDate> \
</QueryOptions> \
</queryOptions> \
</GetListItems> \
</soapenv:Body> \
</soapenv:Envelope>";