Package org.something.services.hello.ws

Examples of org.something.services.hello.ws.HelloService


   * Remote as in localhost HTTP call; the test starts a local (embedded Jetty) for this.
   *
   * @throws Exception
   */
  public void testViaXFireServer() throws Exception {
    HelloService remoteHelloService = getClient();
    XFireExporter exporter = (XFireExporter) serverCtx.getBean("hello.server");

    // Use XFire-specific XFireHttpServer; JAX-WS javax.xml.ws.Endpoint doesn't work... ;-(
    XFireHttpServer httpServer = this.startXFireServer(LOCALHOST_PORT, exporter);
    // Endpoint httpServer = Endpoint.publish(LOCALHOST_URL, exporter.getServiceBean());
View Full Code Here


   
    return server;
 
 
  private HelloService getClient() {
    HelloService remoteHelloService = (HelloService) remoteClientCtx.getBean("hello.client");
    // Change the URL ('Service Endpoint') of the remote service
    Client client = ((XFireProxy) Proxy.getInvocationHandler(remoteHelloService)).getClient();
    client.setUrl(LOCALHOST_URL);
    return remoteHelloService;
  }
View Full Code Here

TOP

Related Classes of org.something.services.hello.ws.HelloService

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.