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, hitoshi uchida <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, hitoshi uchida <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