Package org.jboss.tutorial.webservice.bean

Examples of org.jboss.tutorial.webservice.bean.Calculator


      QName qname = new QName("http://bean.webservice.tutorial.jboss.org/", "CalculatorBeanService");

      ServiceFactory factory = ServiceFactory.newInstance();
      Service service = factory.createService(url, qname);

      Calculator calculator = (Calculator) service.getPort(Calculator.class);

      System.out.println("1 + 1 = " + calculator.add(1, 1));
      System.out.println("1 - 1 = " + calculator.subtract(1, 1));
   }
View Full Code Here

TOP

Related Classes of org.jboss.tutorial.webservice.bean.Calculator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.