users@glassfish.java.net

Calling WebService over Http

From: <glassfish_at_javadesktop.org>
Date: Tue, 14 Aug 2007 04:31:38 PDT

Hi, i have an application that needs to talk to a web service that is implemented as a straight http get request and it is unlikely to change. If it was a "proper" web service, then i could use the java webservice client code to call it, however as it isn't i wondered if anyone could advise on the best cause of action.

Firstly is it ok to make an external http call within a managed function (I was probably going to use a message queue around the calls as well to allow for timeouts, etc)? Are there any issues i should be aware of? Ideally the call would run in its own thread which is why i was thinking of wrapping it in a message queue.

Secondly if the above isn't possible/advised, what would people suggest instead. I've thought about using a JCA connector to wrap the call up with, but again not sure if this is suitable.

Thanks in advance for you suggestions
[Message sent by forum member 'jsl123' (jsl123)]

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