users@glassfish.java.net

Re: Calling WebService over Http

From: <glassfish_at_javadesktop.org>
Date: Tue, 14 Aug 2007 14:19:37 PDT

Basically, there's nothing in the JEE specs that prevents you from opening a socket to connect to another machine. Rather, there's limitations on opening a socket to accept connections.

So, if you want to call an HTTP server through a socket, you're AOK to do that. You can use the built in Java support, or look at a library, like Commons HttpClient from Apache to help manage this.
[Message sent by forum member 'whartung' (whartung)]

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