Examples of PingService


Examples of simple.client.PingService

       
        return balance;
    }

    private void ping(){
        PingService service = new PingService();

        IPingService stub = service.getCustomBindingIPingService();
        ((BindingProvider)stub).getRequestContext().put("userSAMLAssertion", getSAMLAssertion());
        stub.ping(new Holder("1"), new Holder("sun"), new Holder("Passed!"));
    }
View Full Code Here

Examples of simple.client.PingService

       
        return balance;
    }

    private void ping(){
        PingService service = new PingService();

        STSIssuedTokenConfiguration config = new DefaultSTSIssuedTokenConfiguration();
        Token actAsToken = getActAsToken();
        config.getOtherOptions().put(STSIssuedTokenConfiguration.ACT_AS, actAsToken);
        STSIssuedTokenFeature feature = new STSIssuedTokenFeature(config);

        IPingService stub = service.getCustomBindingIPingService(new WebServiceFeature[]{feature});
        stub.ping(new Holder("1"), new Holder("sun"), new Holder("Passed!"));
    }
View Full Code Here

Examples of simple.client.PingService

import org.xmlsoap.ping.Ping;

public class PingServiceClient {
    public static void main (String[] args) {
      try {
            PingService service = new PingService();
            IPingService stub = service.getPingPort();
            //IPingService stub = service.getIPingService();
           
            // use static stubs to override endpoint property of WSDL      
            String serviceHost = System.getProperty("endpoint.host");
            String servicePort = System.getProperty("endpoint.port");
View Full Code Here

Examples of wssec.wssc.PingService

        final Bus bus =
            new SpringBusFactory().createBus("org/apache/cxf/systest/ws/wssc/client/client.xml");
        BusFactory.setDefaultBus(bus);
        BusFactory.setThreadDefaultBus(bus);
       
        PingService svc = new PingService();
        for (String portPrefix : argv) {
            final IPingService port =
                svc.getPort(
                    new QName(
                        "http://WSSec/wssc",
                        portPrefix
                    ),
                    IPingService.class
View Full Code Here

Examples of wssec.wssc.PingService

        BusFactory.setDefaultBus(bus);
        BusFactory.setThreadDefaultBus(bus);
        URL wsdlLocation = null;
       
        for (String portPrefix : argv) {
            PingService svc;
            wsdlLocation = new URL("http://localhost:9001/" + portPrefix + "?wsdl");
           
            svc = new PingService(wsdlLocation);
            final IPingService port =
                svc.getPort(
                    new QName(
                        "http://WSSec/wssc",
                        portPrefix
                    ),
                    IPingService.class
View Full Code Here

Examples of wssec.wssec10.PingService

        }
        BusFactory.setDefaultBus(bus);
        BusFactory.setThreadDefaultBus(bus);
        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
View Full Code Here

Examples of wssec.wssec10.PingService

        }
        BusFactory.setDefaultBus(bus);
        BusFactory.setThreadDefaultBus(bus);
        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
View Full Code Here

Examples of wssec.wssec10.PingService

    private static IPingService getComplexPolicyPort(String configName) {
        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"
                ),
                IPingService.class
View Full Code Here

Examples of wssec.wssec10.PingService

    private static IPingService getUTOnlyPort(String configName, boolean hashed) {
        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"
                ),
                IPingService.class
View Full Code Here

Examples of wssec.wssec10.PingService

        }
        BusFactory.setDefaultBus(bus);
        BusFactory.setThreadDefaultBus(bus);
        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
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.