Posted on 2011-09-16 16:58
Qzi 閱讀(616)
評(píng)論(0) 編輯 收藏
1.綁定本地接口,自動(dòng)生成代理對(duì)象
復(fù)制下面鏈接代碼
// 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);