A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Sockets and Internet Protocols
third party API URL how to send request and get response
Joined: Mar 19, 2008
Sep 10, 2013 12:35:18
I have a third party API URL in which if i enter the parameters, i get the response as an xml in the browser.
I want to use this API URL in my
application so that i can pass my request and get the response and use it my application.
How can i achieve this in java, the API URL can return three different response formats, like JSONP, JSON and XML.
Any ideas/suggestions could highly help me.
Author and all-around good cowpoke
Joined: Mar 22, 2000
Sep 10, 2013 14:13:10
The Java standard library has always been powerful in this area so you don't necessarily need a special API.
Look at the java.net package classes such as HttpURLConnection.
Joined: Dec 11, 2007
Sep 10, 2013 23:02:15
If you like to deal with JSON. I think will be much easier. You can use a library like
I agree. Here's the link:
subject: third party API URL how to send request and get response
Problem with sendRedirect
how to invoke my servlet from a third party web client
Problem regarding URLConnection
How to read response code in a jsp
How do I send XML message in POST body
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014