Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3608316
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T21:29:10+00:00 2026-05-18T21:29:10+00:00

I am developing a client-side Java application that has a bit of functionality that

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T21:29:10+00:00Added an answer on May 18, 2026 at 9:29 pm

    Apache HttpClient 4.0
    is the best in the business and is moderately easy to learn.

    If you want easier you could use HtmlUnit which imitates the behaviour of browsers so you could easily get the content (and parse it into Html, javascript and css, you could also execute javascript code on content so you could probably parse JSON files to using JSON.parse or any other equivalent functions) of any page on the web.

    so for HtmlUnit here is a sample code:

    WebClient wc = new WebClient(BrowserVersion.FIREFOX_3_6);
    HtmlPage page = wc.getPage("http://urlhere");
    page.executeJavaScript("JS code here");
    

    but it maybe rather heavy for your requirements so a highly recommend the use of HttpClient library.
    I’m sure you could find many JSON libraries for java but here is one for you json-lib

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing some client side Javascript that is using some JSON web services
I am developing a Java web services application that is (mostly) to be used
I'm developing a Web App that uses JavaScript + JQuery on the client side
I am developing an web application which can upload/download a file from client to
I am developing a Spring (Java framework for server-side web-development)web application, which will respond
I am developing an Application that will perform Encryption/Decryption at client side only. I
I'm developing a web application using jQuery Mobile on the client side and PHP
I am developing a client-server application using .Net Remoting. From my server I want
I'm currently developing a client/server application in Java and i can't make up my
I'm developing a game that I will distribute using Java Web Start / JNLP.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.