• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Greenhorn
Posts: 1
  • 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
 
Rancher
Posts: 42975
76
  • 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.
 
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • 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
 
Time flies like an arrow. Fruit flies like a banana. Steve flies like a tiny ad:
The WEB SERVICES and JAX-RS Course
https://coderanch.com/t/690789/WEB-SERVICES-JAX-RS
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!