Send java object to a rest WebService

auto-generate, java, object, rest

Solution

Have a look at Restlet. The tutorial shows you how to get started.

Restlet allows you to use a number of representation formats, including XML and JSON.

Problem

I'm searching a nice way to send a java object to my rest web service. It's possible or not ? For sample I wan't to send an "User" Object to my rest : ``` public Class User{ private String name; private String surname; public getName(){ return name; } public setName(String name){ [...] } ``` It's possible to generate AUTOMATICALY this kind of Rest ? www.foo.com/createUser/name="foo"&surname="foo"

Original source