File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes how to create web client to send  XML message to a given URL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "how to create web client to send  XML message to a given URL" Watch "how to create web client to send  XML message to a given URL" New topic
Author

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

Rajani singh
Greenhorn

Joined: Apr 11, 2007
Posts: 1
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: 41621
    
  55
Welcome to JavaRanch.

What kind of client (i.e., what API) are you looking for? A simple SAAJ client can be found here.


Ping & DNS - my free Android networking tools app
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12769
    
    5
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: how to create web client to send XML message to a given URL