Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XML over http

 
Manohar Karamballi
Ranch Hand
Posts: 227
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic