try { String endpoint = "http://localhost:8080/axis/Test.jws"; //你写的那个文件 Service service = new Service(); Call call = (Call) service.createCall(); call.setTargetEndpointAddress ( new java.net.URL(endpoint) ); call.setOperationName("getAge"); //填写你要调用的方法名称 int ret =Integer.parseInt (("" + call.invoke( new Object[] {} )));