public class WsCalcClient {
public static void main(String[] args) throws Exception {
URL url = new URL("http://localhost:8181/calculator?wsdl");
QName name = new QName("http://calculator.ws.samples.fabric3.org/", "CalculatorServiceService");
CalculatorServiceService service = new CalculatorServiceService(url, name);
CalculatorService calculator = service.getCalculatorServicePort();
System.out.println("1 + 2 = " + calculator.add(1, 2));
}