Examples of SOAPServer


Examples of org.exist.http.SOAPServer

        // Instantiate REST Server
        srvREST = new RESTServer(getPool(), getFormEncoding(), getContainerEncoding(), useDynamicContentType.equalsIgnoreCase("yes")
                || useDynamicContentType.equalsIgnoreCase("true"), isInternalOnly());

        // Instantiate SOAP Server
        srvSOAP = new SOAPServer(getFormEncoding(), getContainerEncoding());

        // XML lib checks....
        XmlLibraryChecker.check();
    }
View Full Code Here

Examples of org.lestr.astenn.cxf.SOAPServer

        PluginsManager.getSingleton().registerPlugin(IPlugin.class, Plugin.class);
        PluginsManager.getSingleton().getConfiguration().getPermissionsManager().exposeLocalPlugin(IPlugin.class, Plugin.class);

        PluginsManager.getSingleton().registerPlugin(IPlugin.class, "soap:http://127.0.0.1:8078/" + IPlugin.class.getName() + "/" + Plugin.class.getName());

        server = new SOAPServer();
        server.start();

    }// END Method setUp
View Full Code Here

Examples of org.lestr.astenn.cxf.SOAPServer

    public static void main(String... args) throws Exception {

        PluginsManager.getSingleton().registerPlugin(IPlugin.class, RemotePlugin.class);
        PluginsManager.getSingleton().getConfiguration().getPermissionsManager().exposeLocalPlugin(IPlugin.class, RemotePlugin.class);

        SOAPServer server = new SOAPServer();
        server.setPort(8067);
        server.start();
       
    }// END Method main
View Full Code Here

Examples of org.reficio.ws.server.core.SoapServer

*/
public class SoapServerExamplesTest {

    @Test
    public void createServer() {
        SoapServer server = SoapServer.builder()
                .httpPort(9090)
                .build();
        server.start();
        server.stop();
    }
View Full Code Here

Examples of org.reficio.ws.server.core.SoapServer

        server.stop();
    }

    @Test
    public void createServer_registerAutoResponder() throws WSDLException {
        SoapServer server = SoapServer.builder()
                .httpPort(9090)
                .build();
        server.start();

        URL wsdlUrl = ResourceUtils.getResourceWithAbsolutePackagePath("/", "wsdl/stockquote-service.wsdl");
        Wsdl parser = Wsdl.parse(wsdlUrl);
        SoapBuilder builder = parser.binding().localPart("StockQuoteSoapBinding").find();
        AutoResponder responder = new AutoResponder(builder);

        server.registerRequestResponder("/service", responder);
        server.stop();
    }
View Full Code Here

Examples of org.reficio.ws.server.core.SoapServer

        server.stop();
    }

    @Test
    public void createServer_registerCustomResponder() throws WSDLException {
        SoapServer server = SoapServer.builder()
                .httpPort(9090)
                .build();
        server.start();

        URL wsdlUrl = ResourceUtils.getResourceWithAbsolutePackagePath("/", "wsdl/stockquote-service.wsdl");
        Wsdl parser = Wsdl.parse(wsdlUrl);
        final SoapBuilder builder = parser.binding().localPart("StockQuoteSoapBinding").find();

        AbstractResponder customResponder = new AbstractResponder(builder) {
            @Override
            public Source respond(SoapOperation invokedOperation, SoapMessage message) {
                try {
                    // build the response using builder
                    String response = builder.buildOutputMessage(invokedOperation);
                    // here you can tweak the response -> for example with XSLT
                    //...
                    return XmlUtils.xmlStringToSource(response);
                } catch (Exception e) {
                    // will automatically generate SOAP-FAULT
                    throw new RuntimeException("my custom error", e);
                }
            }
        };

        server.registerRequestResponder("/service", customResponder);
        server.stop();
    }
View Full Code Here

Examples of org.reficio.ws.server.core.SoapServer

        }
        throw new SoapServerException("Crazy stuff is happening, no free port available");
    }

    public static SoapServer getServer() {
        SoapServer server = SoapServer.builder()
                .httpPort(getFreePort())
                .build();
        return server;
    }
View Full Code Here

Examples of org.reficio.ws.server.core.SoapServer

    @Test
    public void startStop() {
        int port = getFreePort();
        assertTrue(isPortAvailable(port));
        SoapServer server = SoapServer.builder()
                .httpPort(port)
                .build();
        server.start();
        assertFalse(isPortAvailable(port));
        server.stop();
        assertTrue(isPortAvailable(port));
    }
View Full Code Here

Examples of org.reficio.ws.server.core.SoapServer

        assertTrue(isPortAvailable(port));
    }

    @Test
    public void startStopDestroy() {
        SoapServer server = getServer();
        server.start();
        server.stop();
        server.destroy();
    }
View Full Code Here

Examples of org.reficio.ws.server.core.SoapServer

        server.destroy();
    }

    @Test
    public void startStopDestroyCannotResurrect() {
        SoapServer server = getServer();
        server.start();
        server.stop();
        server.destroy();
        RuntimeException caught = null;
        try {
            server.start();
        } catch (RuntimeException ex) {
            caught = ex;
        }
        assertNotNull(caught);
    }
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.