how to invoke a webservice from one container in another container in glassfish
- by vinny
I have webservices deployed on two containers in two separate servers A and B.
A webMethod in 'Server A' needs to invoke a webmethod in 'Server B'.
I have created a client stub for Sever B. Im trying to make 'Server A' use this client stub and talk to Server B. I get an exception while trying to instantiate the port object
specifically at : service.getABCBeanPort();
(using JAX-WS library)
Is my approach correct? Is there any better way of invoking a webservice on a remote server?