package test; import java.net.*; import fibonacci.ws.*;//webservice client stub to access service object import cgl.narada.soapapps.soapclient.Config; public class JobRequest { public static int calcRemoteJob(int inval) { Config c = new Config("Property.txt"); String soaphost = c.GetSoapStubHost(); int soapport = c.GetSoapStubPort(); String webservive_path = "/axis/services/fibonacci"; String host = "http://"+soaphost+":"+soapport+webservive_path; try { URL url = new URL(host); fibonacci.ws.FibonacciService service = new FibonacciServiceLocator(); fibonacci.ws.Fibonacci sjb = service.getfibonacci(url); int message = sjb.calculateFibonacci(inval); return message; } catch (Exception ex) { System.out.println("Url defined badly or axis exception is thrown..."); return 0; } } }