File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XML over http" Watch "XML over http" New topic
Author

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.

TIA
Manu
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
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://aspose.com/file-tools
 
subject: XML over http