Examples of IPingService


Examples of wssec.wssec10.IPingService

    }
   
    @Test
    public void testClientServerComplexPolicyAuthorized() {

        IPingService port = getComplexPolicyPort(
            "org/apache/cxf/systest/ws/wssec10/client/client_restricted.xml");
       
        final String output = port.echo(INPUT);
        assertEquals(INPUT, output);
    }
View Full Code Here

Examples of wssec.wssec10.IPingService

    }
   
    @Test
    public void testClientServerComplexPolicyUnauthorized() {

        IPingService port = getComplexPolicyPort(
            "org/apache/cxf/systest/ws/wssec10/client/client_restricted_unauthorized.xml");
       
        try {
            port.echo(INPUT);
            fail("Frank is unauthorized");
        } catch (Exception ex) {
            assertEquals("Unauthorized", ex.getMessage());
        }
    }
View Full Code Here

Examples of wssec.wssec10.IPingService

        Bus bus = new SpringBusFactory().createBus(configName);
       
        BusFactory.setDefaultBus(bus);
        BusFactory.setThreadDefaultBus(bus);
        PingService svc = new PingService(getWsdlLocation("UserNameOverTransport"));
        final IPingService port =
            svc.getPort(
                new QName(
                    "http://WSSec/wssec10",
                    "UserNameOverTransport" + "_IPingService"
                ),
View Full Code Here

Examples of wssec.wssec10.IPingService

        Bus bus = new SpringBusFactory().createBus(configName);
       
        BusFactory.setDefaultBus(bus);
        BusFactory.setThreadDefaultBus(bus);
        PingService svc = new PingService(getWsdlLocation(hashed));
        final IPingService port =
            svc.getPort(
                new QName(
                    "http://WSSec/wssec10",
                    hashed ? "UserName_IPingService_hashed" : "UserName_IPingService"
                ),
View Full Code Here

Examples of wssec.wssec10.IPingService

        URL wsdlLocation = null;
        for (String portPrefix : argv) {
            PingService svc = null;
            wsdlLocation = getWsdlLocation(portPrefix);
            svc = new PingService(wsdlLocation);
            final IPingService port =
                svc.getPort(
                    new QName(
                        "http://WSSec/wssec10",
                        portPrefix + "_IPingService"
                    ),
                    IPingService.class
                );
        
            Client cl = ClientProxy.getClient(port);
           
            HTTPConduit http = (HTTPConduit) cl.getConduit();
            
            HTTPClientPolicy httpClientPolicy = new HTTPClientPolicy();
            httpClientPolicy.setConnectionTimeout(0);
            httpClientPolicy.setReceiveTimeout(0);
            
            http.setClient(httpClientPolicy);
            final String output = port.echo(INPUT);
            assertEquals(INPUT, output);
        }
    }
View Full Code Here

Examples of wssec.wssec10.IPingService

    }
   
    @Test
    public void testClientServerComplexPolicyAuthorized() {

        IPingService port = getComplexPolicyPort(
            "org/apache/cxf/systest/ws/wssec10/client/client_restricted.xml");
       
        final String output = port.echo(INPUT);
        assertEquals(INPUT, output);
    }
View Full Code Here

Examples of wssec.wssec10.IPingService

    }
   
    @Test
    public void testClientServerComplexPolicyUnauthorized() {

        IPingService port = getComplexPolicyPort(
            "org/apache/cxf/systest/ws/wssec10/client/client_restricted_unauthorized.xml");
       
        try {
            port.echo(INPUT);
            fail("Frank is unauthorized");
        } catch (Exception ex) {
            assertEquals("Unauthorized", ex.getMessage());
        }
    }
View Full Code Here

Examples of wssec.wssec10.IPingService

        Bus bus = new SpringBusFactory().createBus(configName);
       
        BusFactory.setDefaultBus(bus);
        BusFactory.setThreadDefaultBus(bus);
        PingService svc = new PingService(getWsdlLocation("UserNameOverTransport"));
        final IPingService port =
            svc.getPort(
                new QName(
                    "http://WSSec/wssec10",
                    "UserNameOverTransport" + "_IPingService"
                ),
View Full Code Here

Examples of wssec.wssec10.IPingService

    }

    @Test
    public void testClientServerUTOnlyAuthorized() {

        IPingService port = getUTOnlyPort(
            "org/apache/cxf/systest/ws/wssec10/client/client_restricted.xml", false);
       
        final String output = port.echo(INPUT);
        assertEquals(INPUT, output);
    }
View Full Code Here

Examples of wssec.wssec10.IPingService

    }
   
    @Test
    public void testClientServerUTOnlyUnauthorized() {

        IPingService port = getUTOnlyPort(
            "org/apache/cxf/systest/ws/wssec10/client/client_restricted_unauthorized.xml", true);
       
        try {
            port.echo(INPUT);
            fail("Frank is unauthorized");
        } catch (Exception ex) {
            assertEquals("Unauthorized", ex.getMessage());
        }
    }
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.