使用IDE进行webservices客户端调用
1)、首先, 你要先把你的WS服务启动起来,比如http://localhost:8080/Example/services/HelloWorldService?wsdl ???????? 1、用java调用webservice客户端 public static void main(String[] args) throws MalformedURLException { ??? SimpleService simpleService=new SimpleService(); ??? SimpleServicePortType type=simpleService.getSimpleServiceHttpSoap11Endpoint(); ??? int price=type.getPrice().getReturn(); ??? String greet=type.getGreeting("ljq"); ??? System.out.println(price+" : "+greet); } (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |