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.
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.
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,
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,
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.
The server throws tihs warning.
"Unable to find a converter for this object : {"id":"1234","name":"Ramon"}"
Thanks.
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.
In response to: JSON Restful Web Service in Java
MD [Member]
You're Welcome!
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.
That U help other to understand something.
I remember U as a teacher.
Thanks.