Examples of XFireHttpServer


Examples of org.codehaus.xfire.server.http.XFireHttpServer

  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());
   
    checkHelloServiceSayHello(remoteHelloService);
    checkHelloServiceFault(remoteHelloService);
       
    httpServer.stop();
  }
View Full Code Here

Examples of org.codehaus.xfire.server.http.XFireHttpServer

    Service service = exporter.getXFireService();

        XFire xfire = XFireFactory.newInstance().getXFire();
        xfire.getServiceRegistry().register(service);
       
    XFireHttpServer server = new XFireHttpServer();
    server.setPort(httpPort);
    server.start();
   
    return server;
 
View Full Code Here

Examples of org.codehaus.xfire.server.http.XFireHttpServer

    protected void setUp()
        throws Exception
    {
        super.setUp();
       
        server = new XFireHttpServer();
        server.setPort(8191);
        server.start();
    }
View Full Code Here

Examples of org.codehaus.xfire.server.http.XFireHttpServer

        // Register the service in the ServiceRegistry
        XFire xfire = XFireFactory.newInstance().getXFire();
        xfire.getServiceRegistry().register(service);
       
        // Start the HTTP server
        server = new XFireHttpServer();
        server.setPort(8191);
        server.start();
    }
View Full Code Here

Examples of org.codehaus.xfire.server.http.XFireHttpServer

        service.setProperty(ObjectInvoker.SERVICE_IMPL_CLASS, PictureServiceImpl.class);
        service.setProperty(SoapConstants.MTOM_ENABLED, "true");
       
        getServiceRegistry().register(service);
       
        server = new XFireHttpServer(getXFire());
        server.setPort(8191);
        server.start();

        XFireProxyFactory xpf = new XFireProxyFactory();
        picClient = (PictureService) xpf.create(service, "http://localhost:8191/PictureService");
View Full Code Here

Examples of org.codehaus.xfire.server.http.XFireHttpServer

        m_helper = new XFireHelper(getXFire());
        m_helper.registerService(m_helper.createServiceWS1(), new WS1Impl());
        m_helper.registerService(m_helper.createServiceWS2(), new WS2Impl());

        // Start Jetty server
        xFireHttpServer = new XFireHttpServer(m_helper.getXfire());
        xFireHttpServer.setPort(9035);
        xFireHttpServer.start();
    }
View Full Code Here

Examples of org.codehaus.xfire.server.http.XFireHttpServer

        XFireHelper xFireHelper = new XFireHelper();
        xFireHelper.registerService(xFireHelper.createServiceWS1(), new WS1Impl());
        xFireHelper.registerService(xFireHelper.createServiceWS2(), new WS2Impl());

        // Start Jetty server
        XFireHttpServer xFireHttpServer = new XFireHttpServer(xFireHelper.getXfire());
        xFireHttpServer.setPort(8080);
        xFireHttpServer.start();
    }
View Full Code Here

Examples of org.codehaus.xfire.server.http.XFireHttpServer

    {
        // first ensure we have a WSDL to parse
        super.setUp();
        ServiceFactory serverFact = getServiceFactory();
    
        XFireHttpServer server = new XFireHttpServer(getXFire());
        server.setPort(8191);
        server.start();
       
        Service service = serverFact.create(Echo.class);
        service.setProperty(ObjectInvoker.SERVICE_IMPL_CLASS, EchoImpl.class);

        getServiceRegistry().register(service);

        // now create a special factory that will actually use the created WSDL
        factory = new XFireClientFactoryBean();
        factory.setServiceInterface(Echo.class);
        factory.setWsdlDocumentUrl("http://localhost:8191/Echo?wsdl");
        factory.afterPropertiesSet();
       
        Echo echo = (Echo) factory.getObject();
        assertEquals("hi", echo.echo("hi"));
       
        server.stop();
    }
View Full Code Here

Examples of org.codehaus.xfire.server.http.XFireHttpServer

        super.setUp();
       
        wsdlUrl = "org/codehaus/xfire/spring/remoting/echo.wsdl";
        ServiceFactory serverFact = getServiceFactory();
    
        XFireHttpServer server = new XFireHttpServer(getXFire());
        server.setPort(8191);
        server.start();
       
        Service service = serverFact.create(Echo.class);
        service.setProperty(ObjectInvoker.SERVICE_IMPL_CLASS, EchoImpl.class);

        getServiceRegistry().register(service);

        // now create a special factory that will actually use the created WSDL
        factory = new XFireClientFactoryBean();
        factory.setServiceInterface(Echo.class);
        factory.setWsdlDocumentUrl("http://localhost:8191/Echo?wsdl");
        factory.afterPropertiesSet();
       
        Echo echo = (Echo) factory.getObject();
        assertEquals("hi", echo.echo("hi"));
       
        server.stop();
    }
View Full Code Here

Examples of org.codehaus.xfire.server.http.XFireHttpServer

        service = getServiceFactory().create(AttachmentEcho.class);

        getServiceRegistry().register(service);
       
        server = new XFireHttpServer();
        server.setPort(8191);
        server.start();
    }
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.