permaculture playing cards
The moose likes XML and Related Technologies and the fly likes XML over http Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XML over http" Watch "XML over http" New topic

XML over http

Manohar Karamballi
Ranch Hand

Joined: Jul 17, 2001
Posts: 227
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.

Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
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:
subject: XML over http
It's not a secret anymore!