I tried almost everything I can think of and it's still not working.

I copied the code from the developers guide on batch processing again
and tested it. The first 3 statments work (GET, INSERT, UPDATE) but
the DELETE fails. Is something wrong with the servers or the sample
code?

Daniel

On Apr 1, 4:59 pm, Daniel Marashlian <daniel...@gmail.com> wrote:
> this is the reply I get back from your servers:
>
> <?xml version='1.0' encoding='UTF-8'?><atom:feed 
> xmlns:atom='http://www.w3.org/2005/Atom'xmlns:openSearch='http://a9.com/-/spec/
> opensearchrss/1.0/' xmlns:gAcl='http://schemas.google.com/acl/2007'
> xmlns:batch='http://schemas.google.com/gdata/batch'>
>
> <atom:id>http://docs.google.com/feeds/acl/private/full/document
> %3Adf2qg349_2042dw8s8cg</atom:id>
> <atom:updated>2009-04-01T23:54:19.368Z</atom:updated>
> <atom:title type='text'>Batch Feed</atom:title>
> <atom:link rel='http://schemas.google.com/g/2005#feed'
> type='application/atom+xml' href='http://docs.google.com/feeds/acl/
> private/full/document%3Adf2qg349_2042dw8s8cg'/>
> <atom:link rel='http://schemas.google.com/g/2005#post'
> type='application/atom+xml' href='http://docs.google.com/feeds/acl/
> private/full/document%3Adf2qg349_2042dw8s8cg'/>
> <atom:link rel='http://schemas.google.com/g/2005#batch'
> type='application/atom+xml' href='http://docs.google.com/feeds/acl/
> private/full/document%3Adf2qg349_2042dw8s8cg/batch'/>
> <atom:entry>
>         <atom:id>http://docs.google.com/feeds/acl/private/full/document
> %3Adf2qg349_2042dw8s8cg/fatal</atom:id>
>         <atom:updated>2009-04-01T23:54:19.381Z</atom:updated>
>         <atom:title type='text'>Fatal Error</atom:title>
>         <atom:content type='text'>Feed processing was interrupted.</
> atom:content>
>         <batch:interrupted reason='[Line 6, Column 25, element entry]
> Required extension elementhttp://schemas.google.com/acl/2007:scope
> not found.' parsed='0' success='0' error='0' unprocessed='0'/>
> </atom:entry>
>
> </atom:feed>
>
> On Apr 1, 4:53 pm, Daniel Marashlian <daniel...@gmail.com> wrote:
>
> > yea, that's what I'm trying now... As you know I figured out the Batch
> > Processing for inserting collaborators. So I'm trying to delete them
> > now...
>
> > <feed xmlns='http://www.w3.org/2005/Atom'xmlns:gAcl='http://
> > schemas.google.com/acl/2007' xmlns:batch='http://schemas.google.com/
> > gdata/batch'>
> > <category scheme='http://schemas.google.com/g/2005#kind'term='http://
> > schemas.google.com/acl/2007#accessRule'/>
> > <entry>
> > <id>http://docs.google.com/feeds/acl/private/full/document
> > %3Adf2qg349_2042dw8s8cg/user%3Adaniel%40pelotonics.com</id>
> > <batch:operation type='delete'/>
> > </entry>
> > </feed>
>
> > that's the XML I'm using. I'm using the same function to POST as I did
> > for the ACL inserts for new collaborators, I'm just changing the XML
> > now to delete the users.
>
> > it's not working... hmmm...
>
> > D
>
> > On Apr 1, 4:39 pm, Eric Bidelman <api.e...@google.com> wrote:
>
> > > That isn't supported directly, but building something similar is
> > > relatively straightforward.
>
> > > First, fetch the doc's acl feed.  Then construct a
> > > batch acl feed by iterating over <entry>.
> > > Your entry <id>s should correspond to
> > > each <link rel='edit'...> from the fetched results.
>
> > > POST /feeds/acl/private/full/document%3Adocument_id/batch
> > > <feed>
> > > <entry>
> > >     
> > > <id>http://docs.google.com/feeds/acl/private/full/document%3Adocument_id/...
> > > </id>
> > >     <batch:operation type='delete'/>
> > >  </entry>
> > > <entry>
> > >     
> > > <id>http://docs.google.com/feeds/acl/private/full/document%3Adocument_id/...
> > > </id>
> > >     <batch:operation type='delete'/>
> > >   </entry>
> > > ...
> > > </feed>
>
> > > Eric
>
> > > On Wed, Apr 1, 2009 at 4:18 PM, Daniel Marashlian 
> > > <daniel...@gmail.com>wrote:
>
> > > > Does the API have the same functionality as the front end "remove all"
> > > > link for the sharing section?
>
> > > > watch this:http://screencast.com/t/2MwtXihS
>
> > > > thanks!
> > > > Daniel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Docs Data APIs" group.
To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com
To unsubscribe from this group, send email to 
google-docs-data-apis+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Docs-Data-APIs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to