Examples of doStuff()


Examples of org.apache.cxf.systest.ws.policy.javafirst.NoAlternativesOperationSimpleService.doStuff()

        wssOut.setProperties(getNoPasswordProperties("alice"));
        simpleService.doStuff();

        wssOut.setProperties(getPasswordProperties("alice", "password"));
        try {
            simpleService.doStuff();
            fail("Expected exception as password not allowed");
        } catch (SOAPFaultException e) {
            assertTrue(true);
        }
View Full Code Here

Examples of org.apache.cxf.systest.ws.policy.javafirst.OperationSimpleService.doStuff()

        // no security on ping!
        simpleService.ping();
       
        try {
            simpleService.doStuff();
            fail("Expected exception as no credentials");
        } catch (SOAPFaultException e) {
            assertTrue(true);
        }
View Full Code Here

Examples of org.apache.cxf.systest.ws.policy.javafirst.OperationSimpleService.doStuff()

        WSS4JOutInterceptor wssOut = addToClient(simpleService);

        wssOut.setProperties(getNoPasswordProperties("alice"));
        try {
            simpleService.doStuff();
            fail("Expected exception as no password and no client cert");
        } catch (SOAPFaultException e) {
            assertTrue(true);
        }
View Full Code Here

Examples of org.apache.cxf.systest.ws.policy.javafirst.OperationSimpleService.doStuff()

            assertTrue(true);
        }

        // this is successful because the alternative policy allows a password to be specified.
        wssOut.setProperties(getPasswordProperties("alice", "password"));
        simpleService.doStuff();
    }

    @Test
    public void testOperationClientCertAlternativePolicy() {
        System.setProperty("testutil.ports.JavaFirstPolicyServer.3", PORT3);
View Full Code Here

Examples of org.apache.cxf.systest.ws.policy.javafirst.OperationSimpleService.doStuff()

        // no security on ping!
        simpleService.ping();
       
        try {
            simpleService.doStuff();
            fail("Expected exception as no credentials");
        } catch (SOAPFaultException e) {
            assertTrue(true);
        }
View Full Code Here

Examples of org.apache.cxf.systest.ws.policy.javafirst.OperationSimpleService.doStuff()

        }

        WSS4JOutInterceptor wssOut = addToClient(simpleService);

        wssOut.setProperties(getNoPasswordProperties("alice"));
        simpleService.doStuff();

        // this is successful because the alternative policy allows a password to be specified.
        wssOut.setProperties(getPasswordProperties("alice", "password"));
        simpleService.doStuff();
    }
View Full Code Here

Examples of org.apache.cxf.systest.ws.policy.javafirst.OperationSimpleService.doStuff()

        wssOut.setProperties(getNoPasswordProperties("alice"));
        simpleService.doStuff();

        // this is successful because the alternative policy allows a password to be specified.
        wssOut.setProperties(getPasswordProperties("alice", "password"));
        simpleService.doStuff();
    }

    private WSS4JOutInterceptor addToClient(Object svc) {
        Client client = ClientProxy.getClient(svc);
        WSS4JOutInterceptor wssOut = new WSS4JOutInterceptor();
View Full Code Here

Examples of org.apache.cxf.systest.ws.policy.javafirst.OperationSimpleService.doStuff()

        // no security on ping!
        simpleService.ping();
       
        try {
            simpleService.doStuff();
            fail("Expected exception as no credentials");
        } catch (SOAPFaultException e) {
            assertTrue(true);
        }
View Full Code Here

Examples of org.apache.cxf.systest.ws.policy.javafirst.OperationSimpleService.doStuff()

        WSS4JOutInterceptor wssOut = addToClient(simpleService);

        wssOut.setProperties(getNoPasswordProperties("alice"));
        try {
            simpleService.doStuff();
            fail("Expected exception as no password and no client cert");
        } catch (SOAPFaultException e) {
            assertTrue(true);
        }
View Full Code Here

Examples of org.apache.cxf.systest.ws.policy.javafirst.OperationSimpleService.doStuff()

            assertTrue(true);
        }

        // this is successful because the alternative policy allows a password to be specified.
        wssOut.setProperties(getPasswordProperties("alice", "password"));
        simpleService.doStuff();
       
        clientContext.close();
    }

    @Test
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.