public static void main(String[] args) throws Exception {
log("Client.main : Start...");
if (args.length > 0) {
serviceUrl = args[0];
}
Test1 client = new Test1();
log("Response from WEB SERVICE: " + client.callWebService("adsf"));
log("Client.main : End.");
}
public String callWebService(String name) throws Exception {
log("Client.main : Start...");
//Create a metadata of the service
Service serviceModel = new ObjectServiceFactory().create(Test.class);
log("callSoapServiceLocal(): got service model.");
//Create a proxy for the deployed service
XFire xfire = XFireFactory.newInstance().getXFire();
XFireProxyFactory factory = new XFireProxyFactory(xfire);