> Is there a reason you aren't using DocsService()?
Yes, I use DocsService (code in my first post) and document is not
deleted. I retrieve DocumentListEntry and delete, i don't know why it
doesn't work.
http://code.google.com/intl/pl/apis/documents/docs/2.0/developers_guide_java.html#TrashingDocs
The program does not throws any exception.

This code doesn't work too:
GoogleService gs = new GoogleService("writely", "company-contact-v1",
"http", "companyDomain");
gs.setUserCredentials("usern...@companydomain", "pass");
gs.delete(myDocumentEditUrl);

I have again "com.google.gdata.util.AuthenticationException: Error
authenticating (check service name)".
I have no more ideas, please help me ;]

Tom

On 3 Sie, 20:23, Eric Bidelman <api.e...@google.com> wrote:
> The service name for the DocList API is 
> 'writely':http://code.google.com/apis/gdata/faq.html#clientlogin
>
> <http://code.google.com/apis/gdata/faq.html#clientlogin>Is there a reason
> you aren't using 
> DocsService()?http://code.google.com/apis/documents/docs/2.0/developers_guide_java....
>
> Eric
>
> On Mon, Aug 3, 2009 at 1:46 AM, jasiu86 <tomasz.gr...@gmail.com> wrote:
>
> > I try this:
>
> > GoogleService gs = new GoogleService("???", "", "http", "myDomain");
> >       gs.setUserCredentials("myUserName", "myPassowrd");
> > gs.delete(documentEditUrl);
>
> > but I have problem: "com.google.gdata.util.AuthenticationException:
> > Error authenticating (check service name)"
> > What should I write as first parameter (serviceName) in GoogleService
> > constructor?
> > I find this:
>
> >http://code.google.com/intl/pl/apis/gdata/javadoc/com/google/gdata/cl...)
>
> > On 31 Lip, 19:54, Eric Bidelman <api.e...@google.com> wrote:
> > > 409 is a fact of v1 of the API.  It occurs if youdon't have the latest
> > > version of the entry.  You should
> > > re-query the entry an then delete it.  The same error
> > > will happen when trying to update a out of date
> > > entry.
>
> > > Eric
>
> > > On Fri, Jul 31, 2009 at 10:02 AM, hitoshi uchida
> > > <hitoshi.uch...@gmail.com>wrote:
>
> > > > Recently I also failed to delete a ducument or folder sometimes using
> > > > edit link. But sometimes it was succeeded. The server returns 409
> > > > Conflict in case of failed.  I had reported it in this group several
> > > > weeks ago.
--~--~---------~--~----~------------~-------~--~----~
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