> My ContactServerResource is similar to the example:
>       @Get
>       public Contact retrieve(Contact contact) {
>               return contact;
>       }
> 
>       @Put
>       public void store(Contact contact) {
>               ContactServerResource.contact = contact;
>       }


I am also a noob, so I don't know for sure, but I just had a similar problem so 
maybe this will help: it looks to me like you are missing arguments to your 
annotations. eg. if you wanted to accept an http form and return either a json 
object or xml, you would use this:

@Get("form:json|xml")

You are supposed to use "extensions" not mime-types in the annotations.
What I don't know:
- What the extension for a serialized java object is or how to find the 
correspondence between mime and extensions.
- Why none of the examples seem to need this, but my code does.

There is clearly some magic I don't understand yet.

bjorn

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

Reply via email to