• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XML over HTTP / JMS

 
Nishant Modak
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to post a XML request to a server over HTTP.

how can I do that?
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Nishant Modak
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.*;
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic