A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
Arduino in Action
this week in the
General Computing
forum!
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
JavaRanch
»
Java Forums
»
Engineering
»
XML and Related Technologies
Author
XML over http
Manohar Karamballi
Ranch Hand
Joined: Jul 17, 2001
Posts: 227
posted
Jun 03, 2004 11:56:00
0
Hi All,
My module is supposed to talk with an external system.
API specs tells input XML data can be posted to link
http://blah:8080/....
and HTTPResponse body contains output data in XML format.
Please let me know how to handle this using
java
.
Like i want to know how to post XML document to URL and how to retrieve output XML document from resultant HTTP response.
TIA
Manu
Lasse Koskela
author
Sheriff
Joined: Jan 23, 2002
Posts: 11962
5
posted
Jun 03, 2004 13:29:00
0
You could use the
Jakarta Commons HttpClient
, which is a very useful library for HTTP networking in Java. Another, perfectly valid option, would be to write your own "HTTP POST sender" by Googling for some samples.
Author of
Test Driven
(2007) and
Effective Unit Testing
(2013) [
Blog
] [
HowToAskQuestionsOnJavaRanch
]
I agree. Here's the link:
http://zeroturnaround.com/jrebel
- it saves me about five hours per week
subject: XML over http
Similar Threads
Writing xml data to file from TCP port
HTTPClient Vs java.net package --For posting XML document using HTTP
Nested Map
web service composition with owl-s and protege
HTTPClient Vs java.net package
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter