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);
    }

相关文章:

  • 2021-04-08
  • 2021-12-26
  • 2022-02-10
  • 2022-12-23
  • 2022-12-23
  • 2021-09-02
  • 2021-06-08
  • 2021-06-07
猜你喜欢
  • 2021-10-22
  • 2021-03-31
  • 2021-05-26
  • 2022-12-23
  • 2021-05-31
  • 2022-01-04
  • 2021-03-31
相关资源
相似解决方案