Ebeo / google-gdata

Automatically exported from code.google.com/p/google-gdata
0 stars 0 forks source link

Getting sitemap list error #408

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Set up Service. 
   Google.GData.Client.Service gdService = new   Google.GData.Client.Service("sitemaps", "Morningstar-SMMS-II");
   gdService.setUserCredentials(strGmailID, strGmailPassword);

2. Set up FeedQuery
   string strSiteId =HttpUtility.UrlEncode(Server.UrlEncode("http://news.morningstar.com/"));
            string strAPIurl = string.Format("https://www.google.com/webmasters/tools/feeds/{0}/sitemaps/", strSiteId);
   query.Uri= new Uri(strAPIurl);

3. Send request  
    AtomFeed calFeed = gdService.Query(query);

What is the expected output? What do you see instead?
    I can get sitemaps. but the sitemaps which was included in sitemap_index.xml
lost.  How can I get all sitemaps included in sitemap_index.xml?

   Also, does this service not support paging? when I used the follow statement
  an exception with meseeage "This service does not support the 'max-results' parameter." appeared. 

   query.StartIndex = 0;
   query.NumberToRetrieve = 1;

Please use labels and text to provide additional information.

Original issue reported on code.google.com by ghx02...@gmail.com on 23 Jul 2010 at 10:25