Comment from: Mahboob [Visitor] · http://mahboob.multiply.com
***--
Good work !
That U help other to understand something.
I remember U as a teacher.

Thanks.
2009/03/28 @ 18:56
Comment from: MD [Member] Email
You're Welcome!
2009/03/29 @ 02:53
Comment from: Ramon [Visitor]
Hi, i'm using restler 1.2m2, do you know how to use @get("json") ?

The server throws tihs warning.
"Unable to find a converter for this object : {"id":"1234","name":"Ramon"}"

Thanks.
2009/04/19 @ 03:21
Comment from: MD [Member] Email
It seems lots of discussions undergo. According to them, any extention, like "json", sounds valid for the value of those annotations.

If it does not work as expected, you can just work around by specifying in a constructor of Resource as follows.

getVariants().add(new Variant(MediaType.APPLICATION_JSON));

Cheers,
2009/04/20 @ 17:49
Comment from: cowtowncoder [Visitor]
***--
Quick comment: JAX-RS (and esp. Jersey, http://jersey.dev.java.net) is an excellent choice, too, for REST-style services. So no, you don't need to do SOAP (and with JSON, shouldn't) for web services. :)

I also think that instead of using Json.org package, there are many other choices that make it MUCH easier to output Json. Amount of code needed in the example was quite a lot -- with data binding, it should be just 3 lines of code or so to get JSON out of a Bean.
2009/05/19 @ 06:31

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
PoorExcellent
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)
« Inspiration encouraged by blanksREST リソースオリエンテッドな考え方 »