users@glassfish.java.net

Re: Calling WebService over Http

From: <glassfish_at_javadesktop.org>
Date: Wed, 15 Aug 2007 06:58:05 PDT

Just out of curiosity what do you consider a "proper" web service? A web service is simply a URL endpoint that returns data. Whether that data is delimited text, XML, a message using the SOAP protocol, etc. doesn't matter. Just call it wherever you would call it for any web service.

For a web service that takes name/value pairs as input and returns data in the response body commons HttpClient is probably your best bet:

http://commons.apache.org/httpclient/

If you want to pursue using a JMS queue with your HTTP requests ActiveMQ is probably worth a look:

http://activemq.apache.org/

Particularly this page will probably be useful to you:

http://activemq.apache.org/rest.html
[Message sent by forum member 'mjparme' (mjparme)]

http://forums.java.net/jive/thread.jspa?messageID=230965