hi there,

not sure what went wrong but the following code doesn´t work:
###############
function buildBatchXML() {
$result =  '<?xml version="1.0" encoding="iso-8859-1"?>';
$result .=  '<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">';
$result .=  '<entry>';
$result .=  '<batch:operation type="delete"/>';
$result .=  '<id>http://www.google.com/base/feeds/items/
18446327450805326213</id>';
$result .=  '</entry>';
$result .=  '</feed>';
return $result;
}
$response = $service->post(buildBatchXML());
###############

i get the error-message:
######################
Fatal error: Uncaught exception 'Zend_Gdata_App_HttpException' with
message 'Expected response code 200, got 400 [Line 1, Column 178]
Invalid root element, expected (namespace uri:local name) of (http://
www.w3.org/2005/Atom:entry), found (http://www.w3.org/2005/Atom:feed'
in /srv/www/vhosts/SERVERNAME.de/httpdocs/scripts/Zend/library/Zend/
Gdata/App.php:661 Stack trace: #0 /srv/www/vhosts/SERVERNAME.de/
httpdocs/scripts/Zend/library/Zend/Gdata.php(218): Zend_Gdata_App-
>performHttpRequest('POST', 'http://www.goog...', Array, 'post('<?xml
version="...') #3 {main} thrown in /srv/www/vhosts/SERVERNAME.de/
httpdocs/scripts/Zend/library/Zend/Gdata/App.php on line 661
#######################

why doesn´t it work???

thank you for your help!
--~--~---------~--~----~------------~-------~--~----~
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