Examples of HelloWorld_Service


Examples of org.apache.juddi.samples.HelloWorld_Service

          String endpoint2 = serviceLocator.lookupEndpoint(helloWorldServiceKey);
          long duration2 = System.currentTimeMillis() - startTime2;
          System.out.println("2. Cache Lookup - Elapsed time: " + duration2 + "[milliseconds] Endpoint=" + endpoint2);
         
          //Invoke the endpoint using 'endpoint2'
          HelloWorld_Service helloWorldService = new HelloWorld_Service();
          HelloWorld helloWorld = helloWorldService.getHelloWorldImplPort();
          Map<String, Object> requestContext = ((BindingProvider) helloWorld).getRequestContext();
      requestContext.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, endpoint2);
      String reply = helloWorld.sayHi("Judy");
          System.out.println("*************** Service reply: " + reply);
      //need to call shutdown to take down the LiveCache Callback Endpoint.
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.