Examples of SampleClient


Examples of org.apache.axis2.jaxws.samples.client.SampleClient

            req.setAttribute("soapdef", soapString);
            req.setAttribute("msgcount", new Integer(count).toString());
            req.setAttribute(svc + "Selected", "selected");

            // Now call the service
            SampleClient client = new SampleClient();
            client.setClientConfigurationFactory(factory);
            System.out.println(">> SERVLET: Request count = " + count);

            // Loop on the count
            for (int index = 0; index < count; index++) {
                System.out.println(">> SERVLET: Request index: " + (index + 1));
                if (0 == soapString.length()) {
                    if (svc.equalsIgnoreCase(("Async"))) {
                        result += client.buildAsync(uriString + ECHO_CONTEXT, getWSDLURL("/WEB-INF/wsdl/Echo.wsdl"), msgString,
                                TIMEOUT, false);
                    } else if (svc.equalsIgnoreCase(("AsyncWire"))) {
                        result += client.buildAsync(uriString + ECHO_CONTEXT, getWSDLURL("/WEB-INF/wsdl/Echo.wsdl"), msgString,
                                TIMEOUT, true);
                    } else if (svc.equalsIgnoreCase("Echo")) {
                        result += client.buildEcho(uriString + ECHO_CONTEXT, getWSDLURL("/WEB-INF/wsdl/Echo.wsdl"), msgString);
                    } else {
                        if (client.buildPing(uriString + PING_CONTEXT, getWSDLURL("/WEB-INF/wsdl/Ping.wsdl"), msgString)) {
                            result += PING_RESPONSE_GOOD;
                        } else {
                            result += PING_RESPONSE_BAD;
                        }
                    }
                } else  // SOAP1.2
                {
                    if (svc.equalsIgnoreCase(("Async"))) {
                        result += client.buildAsync12(uriString + ECHO_CONTEXT12, getWSDLURL("/WEB-INF/wsdl/Echo12.wsdl"), msgString,
                                TIMEOUT, false);
                    } else if (svc.equalsIgnoreCase(("AsyncWire"))) {
                        result += client.buildAsync12(uriString + ECHO_CONTEXT12, getWSDLURL("/WEB-INF/wsdl/Echo12.wsdl"), msgString,
                                TIMEOUT, true);
                    } else if (svc.equalsIgnoreCase("Echo")) {
                        result += client.buildEcho12(uriString + ECHO_CONTEXT12, getWSDLURL("/WEB-INF/wsdl/Echo12.wsdl"), msgString);
                    } else {
                        if (client.buildPing12(uriString + PING_CONTEXT12, getWSDLURL("/WEB-INF/wsdl/Ping12.wsdl"), msgString)) {
                            result += PING_RESPONSE_GOOD;
                        } else {
                            result += PING_RESPONSE_BAD;
                        }
                    }
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.