Java Reference
In-Depth Information
Obtain a proxy to the service from the service using the getEJB3WSImplPort()
method:
EJB3WSImpl port = service.getEJB3WSImplPort();
Invoke the testClient() web service method of the service:
String result = port.testClient();
The Web Service Client class is listed as follows:
package model;
import java.util.Properties;
import javax.naming.InitialContext;
import javax.naming.NamingException;
package model;
public class EJB3WSClient {
public EJB3WSClient() {
}
public static void main(String[] args) {
EJB3WSImplService service = new EJB3WSImplService();
EJB3WSImpl port = service.getEJB3WSImplPort();
String result = port.testClient();
System.out.println(result);
}
}
 
Search WWH ::




Custom Search