Hi,
Just wanted to tell you lot that I have now resloved the issue
On Mar 25, 8:39 pm, Support <[email protected]> wrote:
> Hi,
> I have checked froogle requirements but still get a 400 error wht cud
> have gone wrong?
>
> GBaseService service = new GBaseService("Biz", "googlekey");
> service.setUserCredentials("username", "password");
> GBaseEntry entry = new GBaseEntry();
> GBaseQuery query = new GBaseQuery("http://www.google.com/
> base/feeds/items/");
> GBaseFeed feed = service.Query(query);
> AtomLink lnk = new AtomLink();
> AtomFeed batchFeed = new AtomFeed(feed);
> entry = new GBaseEntry();
> entry.BatchData = new GDataBatchEntryData();
> entry.BatchData.Id = "01flx";
> entry.Title.Text = "Patio set";
> entry.Content.Content = "The Veracruz Oval Table and
> accompanying Patio chairs are cast from aluminum, welded and
> constructed with longevity in mind. During the finishing process, each
> piece is sanded, brushed, and painted by hand.";
> entry.GBaseAttributes.Quantity = 90;
> entry.GBaseAttributes.Price = new FloatUnit((float)25.00,
> "GBP");
> //entry.GBaseAttributes.ItemType = "Products";
> lnk = new AtomLink();
> lnk.HRef = new AtomUri("http://www.example.com/asp/sp.asp?
> cat=12&id=1030");
> lnk.Rel = "alternate";
> lnk.Dirty = false;
> //lnk.Type = "text/html";
> entry.Links.Add(lnk);
> lnk = null;
> Uri posturi = new Uri("http://www.google.com/base/feeds/
> items/");
> entry.BatchData.Type = GDataBatchOperationType.insert;
> batchFeed.Entries.Add(entry);
> AtomFeed returnFeed = service.Batch(batchFeed, new Uri
> (batchFeed.Batch));
> //Uri posturi = new Uri("http://www.google.com/base/feeds/
> items/");
> //GBaseEntry myEntry = service.Insert(posturi, entry);
> //GBaseEntry myEntry = service.Insert
> (GBaseUriFactory.Default.ItemsFeedUri, entry);
> //Response.Write(service.Batch(batchFeed, new Uri
> (batchFeed.Batch)));
> int i;
> i = 0;
> for (i = 0; i < returnFeed.Entries.Count; i++)
> {
> Response.Write("hhhh" + returnFeed.Entries
> [i].BatchData.Status.Code);
> if (returnFeed.Entries[i].BatchData.Status.Code > 300)
> {
> Response.Write("Not inserted now!!!");
> }
> }
> }
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Base Data API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Base-data-API?hl=en
-~----------~----~----~----~------~----~------~--~---