Dasun,
With web services, I am quite sure you as a developer do not have to work with sockets directly. It is utilizing
SOAP over http/https. In my opinion
you should be able to invoke a web service from your Servlet, EJB or MDB's. You can checkout the web services tutorial from java.sun.com for some samples and tutorial.
[ December 25, 2007: Message edited by: Shailesh Kini ]