14 Ağustos 2009 Cuma

configuring service endpoint at runtime

i want to keep my generated stubs when the web service deployment point changes. here is how to configure service end point at runtime: http://tugdualgrall.blogspot.com/2009/02/jax-ws-how-to-configure-service-end_17.html
i prefer the second method:

org.me.calculator.CalculatorWSService service = new org.me.calculator.CalculatorWSService(
new URL("http://10.1.70.59:9080/CalculatorApp/CalculatorWSService?wsdl"), new QName("http://calculator.me.org/", "CalculatorWSService"));

org.me.calculator.CalculatorWS port = service.getCalculatorWSPort();

Hiç yorum yok:

Yorum Gönder