1.打开eclipse-》file》》new》》other》》web service client》》


webService与Spring整合后调用步骤

                                                                                                                                          发布的地址

                                                                                                                                                 ↓↓

在文本框中输入发布的地址例如http://ip地址:8080/项目名称/cxf/hello?wsdl 

然后就可以在新建的项目中调用webservice的接口了例如:

新建一个Test的java类

public static void main(String[] args) throws RemoteException {
        WeatherInterfaceProxy w=new WeatherInterfaceProxy();
        String s=w.getWeather("ss");
        System.out.println(s);
    }

相关文章: