I have tried to create a subfolder under an existent folder with no
success.  Here is the method I am using:
            URL url = new URL("http://docs.google.com/feeds/documents/
private/full/");
            FolderEntry entry = new FolderEntry();
            entry.setTitle(new PlainTextConstruct(subfolder));
            entry.addFolder(new Person("me"), folder);
            return myService.insert(url, entry);
The folder is created under the root directory not on the folder as I
wanted it.
And I get this error:
com.google.gdata.util.ResourceNotFoundException: Not Found
<HTML>
<HEAD>
<TITLE>Not Found</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Not Found</H1>
<H2>Error 404</H2>
</BODY>
</HTML>

        at
com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse
(HttpGDataRequest.java:500)
        at
com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse
(GoogleGDataRequest.java:562)
        at com.google.gdata.client.http.HttpGDataRequest.checkResponse
(HttpGDataRequest.java:481)
        at com.google.gdata.client.http.HttpGDataRequest.execute
(HttpGDataRequest.java:460)
        at com.google.gdata.client.http.GoogleGDataRequest.execute
(GoogleGDataRequest.java:534)
        at com.google.gdata.client.Service.insert(Service.java:1243)
        at com.google.gdata.client.GoogleService.insert
(GoogleService.java:561)
        at com.google.gdata.client.media.MediaService.insert
(MediaService.java:337)
        at com.C$GoogleDocs.createFolder(C.java:618)
        at com.C$Email.run(C.java:408)
        at java.util.TimerThread.mainLoop(Timer.java:512)
        at java.util.TimerThread.run(Timer.java:462)
--~--~---------~--~----~------------~-------~--~----~
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 [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-Docs-Data-APIs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to