In response to: JSON Restful Web Service in Java

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.
PermalinkPermalink 2009/05/19 @ 06:31

In response to: JSON Restful Web Service in Java

MD [Member]
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,
PermalinkPermalink 2009/04/20 @ 17:49

In response to: JSON Restful Web Service in Java

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.
PermalinkPermalink 2009/04/19 @ 03:21

In response to: BigTable(next generation database led by Google) 1

yasso [Visitor] · http://www.dustgem.com
But many are not real database, at least not the type we thought of. Although they are quite fast and have good scalability, they are in very simple structure. And they store data and search data by index. For example LEXST database, if you count on them to do transactions as oracle does, you are wrong.
PermalinkPermalink 2009/04/01 @ 20:10

In response to: JSON Restful Web Service in Java

MD [Member]
You're Welcome!
PermalinkPermalink 2009/03/29 @ 02:53

In response to: JSON Restful Web Service in Java

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

Thanks.
PermalinkPermalink 2009/03/28 @ 18:56
Free Blog Themes and Free Blog Templates