Package org.reficio.ws.server.core

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


        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

    }

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

    }

    @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

    }

    @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

    }

    @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

Related Classes of org.reficio.ws.server.core.SoapServer

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.