Package demo.common

Examples of demo.common.Greeter


public class Client {

  public static void main(String[] args) throws Exception {
    ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("/client.xml");
    Greeter client = (Greeter) context.getBean("greeterService");

    String response = null;
    for (int i = 0; i < 10; i++) {
      System.out.println("BEGIN...");

      response = client.greetMe("MyName#" + i);
      System.out.println("Response from the service: ");
      System.out.println(response);
     
      System.out.println("END...");
View Full Code Here


        System.out.println(endpointReference.toString());

        javax.xml.ws.Service jaxwsServiceObject = Service.create(new QName(
                "http://talend.org/esb/examples/", "GreeterService"));

        Greeter greeterProxy = jaxwsServiceObject.getPort(endpointReference,
                Greeter.class);
        String reply = greeterProxy.greetMe("HI");
        System.out.println("Server said: " + reply);

    }
View Full Code Here

TOP

Related Classes of demo.common.Greeter

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.