File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
REST with Spring (video course)
this week in the
XML and Related Technologies
How to send the request and retrieve response
K Kiran Kumar
Joined: Jan 04, 2006
Jun 23, 2011 03:55:19
Can anyone suggest some API's for the following:
I have a sample URL (
), where in if I send a request to the server, the server will send the xml response.
My queries are:
(1) How to send the URL request by code (Not by
, but by core
(2) How to retrieve the XML data sent by the server in an object.
Author and all-around good cowpoke
Joined: Mar 22, 2000
Jun 23, 2011 07:28:21
In the standard Java library we have the java.net package for doing this kind of thing. If your request succeeds you will get your XML as a
suitable for parsing.
It is sorta covered in the
JavaRanch Style Guide
subject: How to send the request and retrieve response
Data transfer between Servlet and JSP
How and where to use xml
Servlet & XML Request-Response
Do I need a separate Web Client?
send SOAP Request without Response
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015