wood burning stoves 2.0*
The moose likes XML and Related Technologies and the fly likes XML over HTTP / JMS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XML over HTTP / JMS" Watch "XML over HTTP / JMS" New topic
Author

XML over HTTP / JMS

Nishant Modak
Greenhorn

Joined: Sep 29, 2006
Posts: 27
I need to post a XML request to a server over HTTP.

how can I do that?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41601
    
  55
Do you mean from a Java client? If so, the Jakarta HttpClient library can do that. Or, even simpler, use the HttpURLConnection class: http://www.exampledepot.com/egs/java.net/Post.html

I'm not sure what JMS has to do with this; maybe you can elaborate on that.


Ping & DNS - my free Android networking tools app
Nishant Modak
Greenhorn

Joined: Sep 29, 2006
Posts: 27
Yes. I wrote the code using URLConnection just now.. . Its working fine.

Thanks for the reply!

I also wanted to send XML over, JMS .. but that is a differnt way entirely.

writing that code using javax.jms.*;
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: XML over HTTP / JMS