how to create web client to send XML message to a given URL
Rajani singh
Greenhorn
Joined: Apr 11, 2007
Posts: 1
posted
0
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
Marshal
Joined: Mar 22, 2005
Posts: 35241
7
posted
0
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
Joined: Mar 22, 2000
Posts: 12268
1
posted
0
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.