Hi, 

I have exactly the same problem, I can send use neither post or put method.

Any news ?

Thx

Regards

> Hi,
> 
> I am new in using restlet framework. I followed the first application 
> tutorial to create an application using GAE datastore. Everything works fine 
> on my development environment, but when I deployed the application into GAE, 
> the POST method didn't work. From my GAE log, I found the POST method get a 
> null entity, but it can get an exact entity on my development server. I will 
> appreciate your help on this subject. 
> 
> Regards,
> Tadelesh.Shi
> 
> -----
> Code:
> ServerResource POST Method:
> @Post
> public void storeTrafficInfo(TrafficInfo trafficInfo) {
>         PersistenceManager pm = PMF.get().getPersistenceManager();
>         pm.makePersistent(trafficInfo);
>         pm.close();
> }
> Application:
> @Override
> public synchronized Restlet createInboundRoot() {
>       Router router = new Router(getContext());
>       router.attach("/trafficInfo", TrafficInfoServerResource.class);
>       return router;
> }
> Client:
> ClientResource client1 = new ClientResource(BASE_URL + "trafficInfo");
> TrafficInfoResource resource1 = client1.wrap(TrafficInfoResource.class);
> TrafficInfo trafficInfo = new TrafficInfo(1.23, 4.56, 1, "Test5", true,
>       new Date(), "test5");
> resource1.storeTrafficInfo(trafficInfo);

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2685155

Reply via email to