qqjianyue代码工

砌java代码
posts - 62, comments - 9, trackbacks - 0, articles - 10
  BlogJava :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理

JAX-WS client

Posted on 2011-09-16 16:58 Qzi 阅读(600) 评论(0)  编辑  收藏
1.绑定本地接口,自动生成代理对象
复制下面链接代码
// Endpoint Address
String endpointAddress = "http://localhost:8111/helloWorld";
// Add a port to the Service
service.addPort(PORT_NAME, SOAPBinding.SOAP11HTTP_BINDING, endpointAddress);
HelloService hw = service.getPort(HelloService.class);

只有注册用户登录后才能发表评论。


网站导航: