Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to create web client to send XML message to a given URL

 
Rajani singh
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,
Could anyone help me in writing the webclient which is sending the xml message to a given URL.Actually I have a message flow built on message broker to accept http message and process it.This is basically to test the http node functionality of message broker.

If you could provide the sample code,it will be useful.

Thanks
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

What kind of client (i.e., what API) are you looking for? A simple SAAJ client can be found here.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13045
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you client just needs to send a block of text that happens to be XML (as opposed to building XML with some API) and get back a block of text that just happens to be XML, you can use HttpURLConnection.

Bill
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic