Problem saving documents using remote API -- "Document format not supported. Error in saving content."
Hi all,
I'm running into a problem using the remote api to save documents. I've managed to set up a session and open the document inside Zoho. But when my users try to save the document within Zoho, Zoho gives the following error:
"Document format not supported. Error in saving content."
This happens for both .doc and .txt files (the only two I've tried so far). The save routine appears to die within Zoho somewhere...my servlet that is supposed to get the files back from Zoho never reports receiving any POSTs at all.
Here are my log entries from setting up the Zoho session.....as you can see, everything appears to be working. So what am I doing wrong? Thanks!
Log:
20120123 15:37:26 DEBUG [ajp-8009-6] (ZohoAPI) - setupPrivateEditor using following for POST:
apikey: [redacted]
output: url
mode: normaledit
filename: Test_Doc_06.doc
documentid: 31101
id: 31101
lang: en
format: doc
saveurl: https://app.bizmarx.net/Bizmarx/bizmarx/saveZohoDocument
20120123 15:37:26 DEBUG [ajp-8009-6] (ZohoAPI) - setupPrivateEditor executing POST: POST https://exportwriter.zoho.com/remotedoc.im HTTP/1.1
20120123 15:37:28 DEBUG [ajp-8009-6] (ZohoAPI) - setupPrivateEditor sees response status: 200 : OK
20120123 15:37:28 DEBUG [ajp-8009-6] (ZohoAPI) - setupPrivateEditor: full response string seen as:
URL=https://exportwriter.zoho.com/editor.im?doc=e2e696359ed3e3bd924680494b78cf8cf64fe1a005b25400ab12cd686048b51d7d7598f15514dfd4
WARNING=NULL
RESULT=TRUE