我试图通过列表Web服务查询SharePoint日历列表以获取当前月份发生的所有事件。我得到的结果是非常间歇的。在使用SharePoint对象模型进行查询时,我不会遇到同样的问题。我已经粘贴下面的代码。任何人都可以帮助我吗?谢谢。通过SharePoint查询日历列表列出Web服务。
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>";
“我得到的结果是非常间歇的”怎么会这样 - 发生了什么? – Ryan