JAX-WS client

1.绑定本地接口,自动生成代理对象
复制下面链接代码
http://blessht.iteye.com/blog/1105562
// 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);
System.out.println(hw.sayHi("World"));

2.wsimport生成客户端
参照: http://download.oracle.com/javase/6/docs/technotes/tools/share/wsimport.html
wsimport -p stockquote http://stockquote.xyz/quote?wsdl

3.动态代理
http://publib.boulder.ibm.com/infocenter/wasinfo/v7r0/index.jsp?topic=%2Fcom.ibm.websphere.express.doc%2Finfo%2Fexp%2Fae%2Ftwbs_jaxwsdynclient.html

你可能感兴趣的:(JAX-WS client)