Package interopbaseaddress.interop

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


                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

                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

                    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

                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

                    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

                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

                    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

                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

                    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

TOP

Related Classes of interopbaseaddress.interop.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.