Hi Eric, Thank you for the reply. With the example given in the developers_guide_java, i tried to creat a document inside a parent folder and it worked fine. I modied the example to create a folder inside a parent folder but it didn't work. Please suggest me if I am doing something wrong. Below is the code.
folder%3Adcf54443-d076-427e-9bc8-f9b849e8872f - is the folder id of parent folder. public static void main(String args[]) { URL destFolderUrl = new URL("http://docs.google.com/feeds/folders/ private/full/folder%3Adcf54443-d076-427e-9bc8-f9b849e8872f"); DocumentListEntry createdEntry = createNewDocument("MyNewFolder", "folder", destFolderUrl); System.out.println("Document now online in folder '" + createdEntry.getTitle().getPlainText() + "' @ :" + createdEntry.getHtmlLink().getHref()); } public static DocumentListEntry createNewDocument(String title, String type, URL uri) throws IOException, ServiceException { DocumentListEntry newEntry = null; if (type.equals("document")) { newEntry = new DocumentEntry(); } else if (type.equals("presentation")) { newEntry = new PresentationEntry(); } else if (type.equals("spreadsheet")) { newEntry = new SpreadsheetEntry(); }else if (type.equals("folder")) { newEntry = new FolderEntry(); } newEntry.setTitle(new PlainTextConstruct(title)); return service.insert(uri, newEntry); } } On executing, I am getting the below error Exception in thread "main" com.google.gdata.util.ServiceException: Internal Server Error Internal Error at com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse (HttpGDataRequest.java:533) 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 sample.docs.CreateDocument.createNewDocument(CreateDocument.java: 48) at sample.docs.CreateDocument.main(CreateDocument.java:28) Thanks in advance - Bhagya --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---