Using a JSON web service from a Java client application

Posted by user383341 on Stack Overflow See other posts from Stack Overflow or by user383341
Published on 2010-12-27T01:43:41Z Indexed on 2010/12/27 1:54 UTC
Read the original article Hit count: 188

Filed under:
|
|
|

I am developing a client-side Java application that has a bit of functionality that requires getting data from some web services that transmit in JSON (some RESTful, some not). No JavaScript, no web browser, just a plain JAR file that will run locally with Swing for the GUI.

This is not a new or unique problem; surely there must be some open source libraries out there that will handle the JSON data transmission over HTTP. I've already found some that will parse JSON, but I'm having trouble finding any that will handle the HTTP communication to consume the JSON web service.

So far I've found Apache Axis2 apparently which might have at least part of the solution, but I don't see enough documentation for it to know if it will do what I need, or how to use it. Maybe part of the problem is that I don't have experience with web services so I'm not able to know a solution when I see it. I hope some of you can point me in the right direction. Examples would be helpful.

© Stack Overflow or respective owner

Related posts about java

Related posts about JSON