Package simple.client

Examples of simple.client.IPingService


public class PingServiceClientMS {
   
    public static void main (String[] args) {
           
            SymmetricFederatedService service = new SymmetricFederatedService();
            IPingService stub = service.getScenario1IssuedTokenOverTransportUsernameOverTransport();
                   
            // use static stubs to override endpoint property of WSDL      
            String serviceURL = System.getProperty("service.url");

            System.out.println("Service URL=" + serviceURL);
     
            ((BindingProvider)stub).getRequestContext().
                put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, serviceURL);

            stub.ping(new Holder("1"), new Holder("sun"), new Holder("Passed!"));
           
    }
View Full Code Here


                    return true;
                }
            });
           
            PingService service = new PingService();
            IPingService stub = service.getCustomBindingIPingService();
                   
            // use static stubs to override endpoint property of WSDL      
            String serviceURL = System.getProperty("service.url");

            System.out.println("Service URL=" + serviceURL);
     
            ((BindingProvider)stub).getRequestContext().
                put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, serviceURL);

            stub.ping(new Holder("1"), new Holder("sun"), new Holder("Passed!"));
           
    }
View Full Code Here

public class PingServiceClientMS {
   
    public static void main (String[] args) {
           
            SymmetricFederatedService service = new SymmetricFederatedService();
            IPingService stub = service.getScenario2IssuedTokenMutualCertificate10();
                   
            // use static stubs to override endpoint property of WSDL      
            String serviceURL = System.getProperty("service.url");

            System.out.println("Service URL=" + serviceURL);
     
            ((BindingProvider)stub).getRequestContext().
                put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, serviceURL);

            stub.ping(new Holder("1"), new Holder("sun"), new Holder("Passed!"));
           
    }
View Full Code Here

public class PingServiceClient {
   
    public static void main (String[] args) {
           
            PingService service = new PingService();
            IPingService stub = service.getCustomBindingIPingService();
                   
            // use static stubs to override endpoint property of WSDL      
            String serviceURL = System.getProperty("service.url");

            System.out.println("Service URL=" + serviceURL);
     
            ((BindingProvider)stub).getRequestContext().
                put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, serviceURL);

            stub.ping(new Holder("1"), new Holder("sun"), new Holder("Passed!"));
           
    }
View Full Code Here

public class PingServiceClientMS {
   
    public static void main (String[] args) {
           
            SymmetricFederatedService service = new SymmetricFederatedService();
            IPingService stub = service.getScenario6IssuedTokenForCertificateSecureConversationMutualCertificate11();
                   
            // use static stubs to override endpoint property of WSDL      
            String serviceURL = System.getProperty("service.url");

            System.out.println("Service URL=" + serviceURL);
     
            ((BindingProvider)stub).getRequestContext().
                put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, serviceURL);

            stub.ping(new Holder("1"), new Holder("sun"), new Holder("Passed!"));
           
    }
View Full Code Here

public class PingServiceClientMS {
   
    public static void main (String[] args) {
           
            SymmetricFederatedService service = new SymmetricFederatedService();
            IPingService stub = service.getScenario5IssuedTokenForCertificateMutualCertificate11();
                   
            // use static stubs to override endpoint property of WSDL      
            String serviceURL = System.getProperty("service.url");

            System.out.println("Service URL=" + serviceURL);
     
            ((BindingProvider)stub).getRequestContext().
                put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, serviceURL);

            stub.ping(new Holder("1"), new Holder("sun"), new Holder("Passed!"));
           
    }
View Full Code Here

public class PingServiceClient {
   
    public static void main (String[] args) {
           
            SymmetricFederatedService service = new SymmetricFederatedService();
            IPingService stub = service.getScenario5IssuedTokenForCertificateMutualCertificate11();
                   
            // use static stubs to override endpoint property of WSDL      
            String serviceURL = System.getProperty("service.url");

            System.out.println("Service URL=" + serviceURL);
     
            ((BindingProvider)stub).getRequestContext().
                put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, serviceURL);

            stub.ping(new Holder("1"), new Holder("sun"), new Holder("Passed!"));
           
    }
View Full Code Here

public class PingServiceClient {
   
    public static void main (String[] args) {
           
            SymmetricFederatedService service = new SymmetricFederatedService();
            IPingService stub = service.getScenario6IssuedTokenForCertificateSecureConversationMutualCertificate11();
                   
            // use static stubs to override endpoint property of WSDL      
            String serviceURL = System.getProperty("service.url");

            System.out.println("Service URL=" + serviceURL);
     
            ((BindingProvider)stub).getRequestContext().
                put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, serviceURL);

            stub.ping(new Holder("1"), new Holder("sun"), new Holder("Passed!"));
           
    }
View Full Code Here

    }

    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

        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

TOP

Related Classes of simple.client.IPingService

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.