Reputation: 825
I am creating a website that requires the use of the Sharepoint webservices to obtain data stored in the calendar, when i call it the following way:
System.Xml.XmlNode n = services.GetListItems("Calendar", String.Empty, null, null, null, null, null);
i only get data back for the previous month, current month and next month. what I want it to obtain all data stored in the calendar in the future and the past month.
I am new to Sharepoint webservices and have googled what I am trying to achieve but with no avail
In response to the answer and doing some more research I found the following page on Code Project helpful which explains how to Select, Update, Insert and Delete items on a Sharepoint calendar using the Client Object Model.
Upvotes: 0
Views: 274
Reputation: 4639
First of all, what Panagiotis said - you should use the Client API.
Second, the SharePoint webservices by default ask the default view about data - this is probably filtered in your case. Create a (public) view that shows all items and pass this ViewID to your query.
P.S.: The Client API always returns all items - you don't need to define a view if you use this one.
Upvotes: 2