It's not a secret anymore!
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


Nishant Modak

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

Joined: Mar 22, 2005
Posts: 42965
Do you mean from a Java client? If so, the Jakarta HttpClient library can do that. Or, even simpler, use the HttpURLConnection class:

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

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:
subject: XML over HTTP / JMS
jQuery in Action, 3rd edition