Examples of SOAPServer


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

    }

    @Test
    public void registerCheck() {
        String contextPath = "/test";
        SoapServer server = getServer();
        server.registerRequestResponder(contextPath, new RequestResponder() {
            @Override
            public Source respond(SoapMessage message) {
                return null;
            }
        });
        List<String> paths = server.getRegisteredContextPaths();
        assertEquals(paths.size(), 1);
        assertEquals(paths.toArray(new String[]{})[0], contextPath);
    }
View Full Code Here

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

    }

    @Test
    public void unregisterCheck() {
        String contextPath = "/test";
        SoapServer server = getServer();
        server.registerRequestResponder(contextPath, new RequestResponder() {
            @Override
            public Source respond(SoapMessage message) {
                return null;
            }
        });
        server.unregisterRequestResponder(contextPath);
        List<String> paths = server.getRegisteredContextPaths();
        assertEquals(paths.size(), 0);
    }
View Full Code Here

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

    }

    @Test(expected = ServiceRegistrationException.class)
    public void doubleRegister() {
        String contextPath = "/test";
        SoapServer server = getServer();
        server.registerRequestResponder(contextPath, new RequestResponder() {
            @Override
            public Source respond(SoapMessage message) {
                return null;
            }
        });
        server.registerRequestResponder(contextPath, new RequestResponder() {
            @Override
            public Source respond(SoapMessage message) {
                return null;
            }
        });
View Full Code Here

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

    }

    @Test(expected = NullPointerException.class)
    public void registerNullResponder() {
        String contextPath = "/test";
        SoapServer server = getServer();
        server.registerRequestResponder(contextPath, null);
    }
View Full Code Here

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

        server.registerRequestResponder(contextPath, null);
    }

    @Test(expected = NullPointerException.class)
    public void registerNullContextPath() {
        SoapServer server = getServer();
        server.registerRequestResponder(null, new RequestResponder() {
            @Override
            public Source respond(SoapMessage message) {
                return null;
            }
        });
View Full Code Here

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

    }

    @Test(expected = ServiceRegistrationException.class)
    public void unregisterNotExisting() {
        String contextPath = "/test";
        SoapServer server = getServer();
        server.unregisterRequestResponder(contextPath);
    }
View Full Code Here

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

    }

    @Test
    public void testServerWithKeyLessKeystore_EmptyPwd() {
        URL keyStoreUrl = ResourceUtils.getResourceWithAbsolutePackagePath("/keystores", "keyless.keystore");
        SoapServer server = SoapServer.builder()
                .httpsPort(9696)
                .keyStoreUrl(keyStoreUrl)
                .keyStorePassword("")
                .build();
        server.start();
        server.stop();
    }
View Full Code Here

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

    }

    @Test(expected = SoapServerException.class)
    public void testServerWithKeyLessKeystore_NullPwd() {
        URL keyStoreUrl = ResourceUtils.getResourceWithAbsolutePackagePath("/keystores", "keyless.keystore");
        SoapServer server = SoapServer.builder()
                .httpsPort(9696)
                .keyStoreUrl(keyStoreUrl)
                .keyStorePassword(null)
                .build();
        server.start();
        server.stop();
    }
View Full Code Here

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

    }

    @Test(expected = SoapServerException.class)
    public void testServerWithKeyLessKeystore_WrongPwd() {
        URL keyStoreUrl = ResourceUtils.getResourceWithAbsolutePackagePath("/keystores", "keyless.keystore");
        SoapServer server = SoapServer.builder()
                .httpsPort(9696)
                .keyStoreUrl(keyStoreUrl)
                .keyStorePassword("wrong_password")
                .build();
        server.start();
        server.stop();
    }
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.