Examples of XFireHttpServer


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

        service = getServiceFactory().create(Echo.class);
        service.setProperty(ObjectInvoker.SERVICE_IMPL_CLASS, EchoImpl.class);
       
        getServiceRegistry().register(service);

        server = new XFireHttpServer(getTestFile("src/etc/keystore"), "password", "password");
        server.setPort(8443);
        server.start();

    }
View Full Code Here

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

        osf.setBindingCreationEnabled(true);
        asyncService = getServiceFactory().create(AsyncService.class);
        getServiceRegistry().register(asyncService);

        server = new XFireHttpServer();
        server.setPort(8391);
        server.start();
    }
View Full Code Here

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

       
        super.tearDown();
    }

    public void testXFireConstructor() throws Exception {
        XFireHttpServer server = new XFireHttpServer(XFireFactory.newInstance().getXFire());
        server.setPort(8392);
        server.start();
        server.stop();
    }
View Full Code Here

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

        assertEquals("hello", response[0]);
    }
   
    public void testHTTPInvoke() throws Exception
    {
        XFireHttpServer server = new XFireHttpServer();
        server.setPort(8191);
        server.start();
       
        Client client = new Client(new URL("http://localhost:8191/Echo?wsdl"));
       
        OperationInfo op = client.getService().getServiceInfo().getOperation("echo");

        Object[] response = client.invoke(op, new Object[] {"hello"});

        assertNotNull(response);
        assertEquals(1, response.length);
       
        server.stop();
    }
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.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.