Hi all, We are trying to PUT a JSON representation from an Ajax client to a restlet web service. The entity body that we recieve on the server has a <null> appended to it.
Anyone know why are we getting the null? Regards Donald. This is being submitted by the Ajax client. PUT Request Headers Host: localhost:9082 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive X-Qooxdoo-Response-Type: application/json Pragma: no-cache Cache-Control: no-cache Content-Type: application/json; charset=UTF-8 Referer: http://localhost:9082/RATClient/qooxdoo-0.8-sdk/application/inputform/source/index.html Content-Length: 153 entity-body {"meta":{"method":"PUT","tunnel":null},"form":{"ffName":"","ffType":null,"ffVariables":null,"ffFunction":"","ffMinSize":"","ffMaxSize":"","ffReturn":""}} In the server side java code we call ... this.getRequest().getEntity().getText(); and get ... { "meta": { "method":"PUT", "tunnel":null }, "form": { "ffName":"", "ffType":null, "ffVariables":null, "ffFunction":"", "ffMinSize":"", "ffMaxSize":"", "ffReturn":"" } }: <null> Where does the : <null> come from? ********************************************************************** Any personal or sensitive information contained in this email and attachments must be handled in accordance with the Victorian Information Privacy Act 2000, the Health Records Act 2001 or the Privacy Act 1988 (Commonwealth), as applicable. This email, including all attachments, is confidential. If you are not the intended recipient, you must not disclose, distribute, copy or use the information contained in this email or attachments. Any confidentiality or privilege is not waived or lost because this email has been sent to you in error. If you have received it in error, please let us know by reply email, delete it from your system and destroy any copies. ********************************************************************** ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1137798