Posted this to the help forum, but thought I would try here as
well ...

As there is a 1MB limit on batch requests, I would like to make
multiple batch requests for all of my Google Base Products.

Looking at the XML, however, simply performing a batch request does
not clear out the previous inserted batch items.

// insert first batch
BatchUtils.setBatchId(entry1, id1);
this.itemFeed.addEntry(entry1);
// insert more items etc. etc.

// Process first batch
GoogleBaseFeed result = service.batch(this.batchUrl, this.itemFeed);

// Process second batch
BatchUtils.setBatchId(entry10, id1);
this.itemFeed.addEntry(entry10);

// Process second batch
GoogleBaseFeed result = service.batch(this.batchUrl, this.itemFeed);

// first batch items are processed as well????

I am using the following code to print out XML from Java API

Logger.getLogger(Logger.GLOBAL_LOGGER_NAME).getParent().getHandlers()
[0].setLevel(Level.ALL);
Logger.getLogger(GoogleGDataRequest.class.getName()).setLevel
(Level.ALL);
Logger.getLogger(HttpGDataRequest.class.getName()).setLevel
(Level.ALL);


It does not seem right to re-authenticate in-order to clear batch
queue?

Does anyone have any idea regarding making multiple batch requests and
having the first requests cleared from the batch feed?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to