Hi Ryan,
if I use the Google-Page "Google Base data API - Demo" and try out the API there with a batch run, it works.
The data (respectively the file datenfeedkonstrukt.xml) is:
---------------------------------------------
<?xml version='1.0' encoding='UTF-8'?>
<feed xmlns='
http://www.w3.org/2005/Atom' xmlns:g='
http://base.google.com/ns/1.0' xmlns:batch='
http://schemas.google.com/gdata/batch'>
<entry>
<batch:id>itemA</batch:id>
<batch:operation type='insert'/>
<author>
<name>default Shopping</name>
</author>
<category scheme="
http://base.google.com/categories/itemtypes" term="products"/>
<link rel="alternate" type="text/html" href="
http://kaatoo.at"/>
<title type="text">Shirt, Flashlights, weiter Ausschnitt</title>
<content type="html">Knallig, pastellig oder einfach schwarz: Gut sind sie alle! Grosszuegiger Ausschnitt. Gerollte Saeume an Ausschnitt und Aermeln. Laenge ca. 56 cm. Sehr figurbetonte Form. 70 % Baumwolle, 30 % Polyamid.</content>
<g:bild_url>
http://www.google.de/intl/de_de/images/logo.gif</g:bild_url>
<g:preis>19.99</g:preis>
<g:target_country>DE</g:target_country>
<g:item_language>DE</g:item_language>
<language>de-DE</language>
<g:item_type type="text">Produkte</g:item_type>
</entry>
<entry>
<batch:id>itemB</batch:id>
<batch:operation type='insert'/>
<author>
<name>default Shopping</name>
</author>
<category scheme="
http://base.google.com/categories/itemtypes" term="products"/>
<link rel="alternate" type="text/html" href="
http://kaatoo.at"/>
<title type="text">Shirt2222, Flashlights, weiter Ausschnitt</title>
<content type="html">Knallig1322222, pastellig oder einfach schwarz: Gut sind sie alle! Grosszuegiger Ausschnitt. Gerollte Saeume an Ausschnitt und Aermeln. Laenge ca. 56 cm. Sehr figurbetonte Form. 70 % Baumwolle, 30 % Polyamid.</content>
<g:bild_url>
http://www.google.de/intl/de_de/images/logo.gif</g:bild_url>
<g:preis>29.99</g:preis>
<g:target_country>DE</g:target_country>
<g:item_language>DE</g:item_language>
<language>de-DE</language>
<g:item_type type="text">Produkte</g:item_type>
</entry>
</feed>
---------------------------------------------
Only the image works not correctly with that code, but the API is filled and the entry is in gBase. :-)
But exact this file (or maybe in another way) I want to post automatically with the zend-code (previous message of me) but my feedback on the test-page shows every time:
"Failed: Post to Google failed. Reason: " and the entry isn't in gBase

.
THX 4 any help
Ryan Boyd-3 wrote:
Hi Patrick,
Can you show us example content from the file? Is the data in the file
formatted as a Google Data batch request?
Cheers,
-Ryan
On Fri, Jun 20, 2008 at 4:16 PM, patrick_try <try.out@gmx.de> wrote:
>
> My question is simple: How is it possible to post some articles to google
> base at once?
>
> When I think of a feed that works correctly with a manuel upload and want
> to
> make it automatically with the following code, it shows an error without
> any
> reason/explanation:
> ---------------------------
> function postItem() {
> global $itemsFeedURL;
>
> $client = Zend_Gdata_AuthSub::getHttpClient($_POST['token']);
> $gdata = new Zend_Gdata($client);
>
> $filename1 = "datenfeedkonstrukt.xml";
> $handle1 = fopen ($filename1, "r");
>
> $response = $gdata->post(fread ($handle1, filesize ($filename1)),
> $itemsFeedURL);
>
> return $response;
> }
> --------------------------
>
> When I go another way and fill the createOrEditEntry-function with
> ARRAY-entries it seems to resolve nothing. For example with the array
> $ga_beschr (2 articles):
> --------------------------
> ...
> $newEntry->content = $ga_beschr;
> ...
> --------------------------
> it effects 2 google base entries, but both have NO CONTENT, if it see's
> that
> there are 2 articles, but he cannot read the array.
>
> Does anyone of you has an working idea for it? The first way would be
> easier, 'cause you can see and change the whole file... - but any help
> would
> help. ^^
>
> THX in advance,
>
> --
> View this message in context:
>
http://www.nabble.com/Base-Feed-upload-automatically-OR-post-few-articles-at-once-tp18039002p18039002.html> Sent from the Zend gdata mailing list archive at Nabble.com.
>
>