You should think about folders as labels.
So a single Google Doc can exist in multiple folders
(e.g. multiple labels are applied to it).  To 'move'
the doc out of folder A, you need to actually delete
that folder(label)/doc association:

http://code.google.com/apis/documents/docs/2.0/developers_guide_protocol.html#MovingOutOfFolders

Eric

On Jul 14, 8:28 pm, hitoshi uchida <hitoshi.uch...@gmail.com> wrote:
> Dear Eric,
>
> Though I tried to send simple entry as you mentioned, the problem
> isn't resolved yet.
> The sent entry contains only <id> which is equal to <id> of the
> <entry> returned from the server.
> The post url is entry/cont...@src of the <entry> returned the server.
> What do you think ?
>
> POST /feeds/folders/private/full/folder%3A9dc6ecf7-0d02-416e-
> aebe-2ea2924075b9 HTTP/1.1
> Content-Type: application/atom+xml
> Authorization: GoogleLogin auth=MY KEY
> Host: docs.google.com
> Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
> Content-Length: 212
>
> <atom:entry xmlns:atom="http://www.w3.org/2005/Atom";>
> <atom:id>http://docs.google.com/feeds/folders/private/full/folder
> %3A9f95dbd2-2bd3-4158-a7d2-2d5575b4203b/document
> %3Ad8wb69d_2129hzckkrcj</atom:id>
> </atom:entry>
>
> On 7月12日, 午後6:14, hitoshi uchida <hitoshi.uch...@gmail.com> wrote:
>
> > Dear Eric,
>
> > I got it. Thank you.
>
> > On 7月12日, 午前4:12, "Eric (Google)" <api.e...@google.com> wrote:
>
> > > Try stripping that <entry> to something simple.
> > > Just create a new entry and reference the <id>
> > > of the <entry> returned by the server:
>
> > > POST /feeds/folders/private/full/folder%3Adestination_folder_id HTTP/
> > > 1.1
> > > Host: docs.google.com
> > > Authorization: <your authorization header here>
> > > Content-Length: 180
> > > Content-Type: application/atom+xml
>
> > > <?xml version='1.0' encoding='UTF-8'?>
> > > <entry xmlns="http://www.w3.org/2005/Atom";>
> > >   <id>http://docs.google.com/feeds/documents/private/full/document
> > > %3Adocument_id</id>
> > > </entry>
>
> > > Eric
>
> > > On Jul 10, 10:58 am,hitoshiuchida <hitoshi.uch...@gmail.com> wrote:
>
> > > > Dear Eric,
>
> > > > Thank you very much for your always helping.
>
> > > > Below is a wireshark log when the move operation was executed.
> > > > As you can see, I sent below atom:entry which was a reponse entry of
> > > > the document creating operation into "A" folder,
> > > > that is "1. Upload a document to folder 'A' ".
> > > > Do you think the my posted atom:entry caused this problem ?
>
> > > > ----- BEGIN -----
> > > > POST /feeds/folders/private/full/folder%3Adfe5bcec-0acd-491f-9753-
> > > > b9eb98a3d40c HTTP/1.1
> > > > Content-Type: application/atom+xml
> > > > Authorization: GoogleLogin auth=MY PRIVATE KEY
> > > > Host: docs.google.com
> > > > Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
> > > > Connection: keep-alive
> > > > Content-Length: 1815
>
> > > > <entry xmlns="http://www.w3.org/2005/Atom"; xmlns:docs="http://
> > > > schemas.google.com/docs/2007" xmlns:batch="http://schemas.google.com/
> > > > gdata/batch" xmlns:gd="http://schemas.google.com/g/2005";><id>http://
> > > > docs.google.com/feeds/folders/private/full/folder
> > > > %3A82e79a61-0c1f-4989-925c-47bc64602115/document
> > > > %3Adfgh796s_14f4849j7t</id><published>2009-07-10T15:12:54.552Z</
> > > > published><updated>2009-07-10T15:12:54.553Z</updated><category
> > > > scheme="http://schemas.google.com/g/2005#kind"; term="http://
> > > > schemas.google.com/docs/2007#document" label="document"></
> > > > category><title type="text">test</title><content type="text/html"
> > > > src="http://docs.google.com/feeds/download/documents/Export?
> > > > docId=dfgh796s_14f4849j7t"></content><link rel="alternate" type="text/
> > > > html" href="http://docs.google.com/Doc?id=dfgh796s_14f4849j7t";></
> > > > link><link rel="self" type="application/atom+xml" href="http://
> > > > docs.google.com/feeds/folders/private/full/folder
> > > > %3A82e79a61-0c1f-4989-925c-47bc64602115/document
> > > > %3Adfgh796s_14f4849j7t"></link><link rel="edit" type="application/atom
> > > > +xml" href="http://docs.google.com/feeds/folders/private/full/folder
> > > > %3A82e79a61-0c1f-4989-925c-47bc64602115/document
> > > > %3Adfgh796s_14f4849j7t/
> > > > fwz1rhnd"></link><link rel="edit-media" type="text/html" href="http://
> > > > docs.google.com/feeds/media/private/full/document
> > > > %3Adfgh796s_14f4849j7t/fwz1rhnd"></link><author><name>hitoshi.uchida</
> > > > name><email>hitoshi.uch...@gmail.com</email></
> > > > author><gd:resourceId>document:dfgh796s_14f4849j7t</
> > > > gd:resourceId><gd:lastModifiedBy><name>hitoshi.uchida</
> > > > name><email>hitoshi.uch...@gmail.com</email></
> > > > gd:lastModifiedBy><docs:writersCanInvite value="true"></
> > > > docs:writersCanInvite><gd:feedLink rel="http://schemas.google.com/acl/
> > > > 2007#accessControlList" href="http://docs.google.com/feeds/acl/
> > > > private/
> > > > full/document%3Adfgh796s_14f4849j7t"></gd:feedLink></entry>
> > > > ----- END -----
>
> > > > On 7月9日, 午前3:44, "Eric (Google)" <api.e...@google.com> wrote:
>
> > > > > Can you provide a code snippet or http
> > > > > request/response headers?
>
> > > > > Eric
>
> > > > > On Jul 3, 1:06 am,hitoshiuchida <hitoshi.uch...@gmail.com> wrote:
>
> > > > > > Currently I'm using "Moving a document into a folder" as 
> > > > > > below.http://code.google.com/intl/ja/apis/documents/docs/2.0/developers_gui...
>
> > > > > > I executed successfully as below without using GData client library.
> > > > > > 1. Upload a document to folder "A"
> > > > > > 2. Move the document to folder "B"
>
> > > > > > Then I can find the document in folder "B", but also find it in 
> > > > > > folder
> > > > > > "A" in my browser. But when I checked  the document by clicking "all
> > > > > > item view" in Docs UI, I can find only one document, not two.
> > > > > > And when I deleted the document in folder "B",  a document in folder
> > > > > > "A" was also deleted automatically.
> > > > > > So the documents of folder "A" and "B" were same in Docs database.
>
> > > > > > How can I resolve such a problem ?
>
>
--~--~---------~--~----~------------~-------~--~----~
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