how to create web client to send XML message to a given URL
Joined: Apr 11, 2007
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.
Joined: Mar 22, 2005
Welcome to JavaRanch.
What kind of client (i.e., what API) are you looking for? A simple SAAJ client can be found here.
Author and all-around good cowpoke
Joined: Mar 22, 2000
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.