Examples of IPingService


Examples of interopbaseaddress.interop.IPingService

                    wsdlLocation = getWsdlLocation(portPrefix);
                    svc = new PingService10(wsdlLocation);
                } else {
                    svc = new PingService10();
                }
                final IPingService port =
                    svc.getPort(
                        new QName(
                            "http://InteropBaseAddress/interop",
                            portPrefix + "_IPingService"
                        ),
                        IPingService.class
                    );
               
                final String output = port.echo(INPUT);
                if (!INPUT.equals(output)) {
                    System.err.println(
                        "Expected " + INPUT + " but got " + output
                    );
                    results.add("Expected " + INPUT + " but got " + output);
View Full Code Here

Examples of interopbaseaddress.interop.IPingService

                if (wsdlLocation == null) {
                    svc = new PingService11();
                } else {
                    svc = new PingService11(wsdlLocation);
                }
                final IPingService port =
                    svc.getPort(
                        new QName(
                            "http://InteropBaseAddress/interop",
                            portPrefix + "_IPingService"
                        ),
                        IPingService.class
                    );
               
               
                final String output = port.echo(INPUT);
                if (!INPUT.equals(output)) {
                    System.err.println(
                        "Expected " + INPUT + " but got " + output
                    );
                    results.add("Expected " + INPUT + " but got " + output);
View Full Code Here

Examples of interopbaseaddress.interop.IPingService

                if (isLocal) {
                    svc = new PingService(wsdlLocation);
                } else {
                    svc = new PingService();
                }
                final IPingService port =
                    svc.getPort(
                        new QName(
                            "http://InteropBaseAddress/interop",
                            portPrefix
                        ),
                        IPingService.class
                    );
              
                if (useLocalWCFServices) {
                    ((BindingProvider)port).getRequestContext()
                        .put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, getEndpointName(portPrefix));
                }
               
                if (portPrefix.charAt(0) == '_') {
                    //MS would like the _ versions to send a cancel
                    ((BindingProvider)port).getRequestContext()
                        .put(SecurityConstants.STS_TOKEN_DO_CANCEL, Boolean.TRUE);
                }
                PingRequest params = new PingRequest();
                Ping ping = new Ping();
                ping.setOrigin("CXF");
                ping.setScenario("Scenario5");
                ping.setText("ping");
                params.setPing(ping);
                PingResponse output = port.ping(params);
                if (!OUT.equals(output.getPingResponse().getText())) {
                    System.err.println(
                        "Expected " + OUT + " but got " + output.getPingResponse().getText()
                    );
                    results.add("Unexpected output " + output.getPingResponse().getText());
View Full Code Here

Examples of interopbaseaddress.interop.IPingService

                    wsdlLocation = getWsdlLocation(portPrefix);
                    svc = new PingService10(wsdlLocation);
                } else {
                    svc = new PingService10();
                }
                final IPingService port =
                    svc.getPort(
                        new QName(
                            "http://InteropBaseAddress/interop",
                            portPrefix + "_IPingService"
                        ),
                        IPingService.class
                    );
               
                final String output = port.echo(INPUT);
                if (!INPUT.equals(output)) {
                    System.err.println(
                        "Expected " + INPUT + " but got " + output
                    );
                    results.add("Expected " + INPUT + " but got " + output);
View Full Code Here

Examples of interopbaseaddress.interop.IPingService

                if (wsdlLocation == null) {
                    svc = new PingService11();
                } else {
                    svc = new PingService11(wsdlLocation);
                }
                final IPingService port =
                    svc.getPort(
                        new QName(
                            "http://InteropBaseAddress/interop",
                            portPrefix + "_IPingService"
                        ),
                        IPingService.class
                    );
               
               
                final String output = port.echo(INPUT);
                if (!INPUT.equals(output)) {
                    System.err.println(
                        "Expected " + INPUT + " but got " + output
                    );
                    results.add("Expected " + INPUT + " but got " + output);
View Full Code Here

Examples of interopbaseaddress.interop.IPingService

                    svc = new SymmetricFederatedService();
                } else {
                    svc = new AsymmetricFederatedService();
                }
               
                final IPingService port =
                    svc.getPort(
                        new QName(
                            "http://tempuri.org/",
                            portPrefix
                        ),
                        IPingService.class
                    );
              
                final String output = port.echo(INPUT);
                if (!INPUT.equals(output)) {
                    System.err.println(
                        "Expected " + INPUT + " but got " + output
                    );
                    results.add("Unexpected output " + output);
View Full Code Here

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

Examples of simple.client.IPingService

                    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

Examples of simple.client.IPingService

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

Examples of simple.client.IPingService

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