Thanks Thierry, I tried the example you sent me and it seems to be working.Can you also give me a clue of how can i integrate spring 2.5 or Spring 2.0 with restlet ?
Thanks, Rahul On Fri, Sep 11, 2009 at 4:08 AM, Thierry Boileau < [email protected]> wrote: > Hello Rahul, > > I send you a simple test case where a client send a Json string to a > resource. It works properly with the current Restlet trunk. > It juste require the presence of the org.restlet, org.restlet.ext.json > and org.json jars. > > Could you precise the version of the Reslet you are using? > > best regards, > Thierry Boileau > > > I am trying very simple scenario in which my resource method accepts > > Representation and then in the method I pass that representation to > > jsonrepresentation code is as follows: > > > > > > public Representation receiveRequest(Representation entity){ > > > > *//Entity recieved is InputRepresentation* > > > > JsonRepresentation rep = new > > JsonRepresentation(entity); > > > > rep.getJsonObject();*//This returns null as jsonobject is > > null in the rep formed above.* > > > > } > > > > > > > > And the content type of the message I am sending is application/json. > > Also tried with text/json but no luck. > > > > > > > > Any clues what can be wrong with this. > > > > > > > > Thanks, > > > > Rahul > > > > ------------------------------------------------------ > > http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2393559 -- Rahul Juneja http://techlabs.thoughtclicks.com http://finance.thoughtclicks.com --------------------------------------------------------------------------- The thing always happens that you really believe in; and the belief in a thing makes it happen. ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2394115

