Package org.objectweb.hello_world_soap_http

Examples of org.objectweb.hello_world_soap_http.SOAPService


            System.exit(1);
        }
       
        try {
            File wsdl = new File(args[0]);
            SOAPService service = new SOAPService(wsdl.toURL(), SERVICE_NAME);
            Greeter port = service.getSoapPort();

            implicitPropagation(port);

            explicitPropagation(port);
View Full Code Here


            System.exit(1);
        }

        File wsdl = new File(args[0]);
       
        SOAPService ss = new SOAPService(wsdl.toURL(), SERVICE_NAME);
        Greeter port = ss.getSoapPort();
        String resp;

        System.out.println("Invoking sayHi...");
        resp = port.sayHi();
        System.out.println("Server responded with: " + resp);
View Full Code Here

        } else {
            wsdlURL = new URL(args[0]);
        }
       
        System.out.println(wsdlURL);
        SOAPService ss = new SOAPService(wsdlURL, SERVICE_NAME);
        Greeter port;
       
        if ((args[1] != null) && (args[1].equalsIgnoreCase("secure_user"))) {
            System.out.println("The secure_user credentials will be used for the invocation.");
            System.out.println();
            port = ss.getPort(SECURE_PORT_NAME, Greeter.class);
        } else if ((args[1] != null) && (args[1].equalsIgnoreCase("strict_secure_user"))) {
            String configurerProperty = "celtix.security.configurer"
                        + ".celtix.{http://objectweb.org/hello_world_soap_http}"
                        + "SOAPService/StrictSecurePort.http-client";
            String configurerClass = "demo.hw_https.common.DemoSecurityConfigurer";
            System.setProperty(configurerProperty, configurerClass);
            System.out.println("The strict_secure_user credentials will be used for the invocation.");
            System.out.println("Extra security data will be provided by the class, " + configurerClass
                               + " because the system property  " + configurerProperty
                               + " has been set.");
            System.out.println();
            port = ss.getPort(STRICT_SECURE_PORT_NAME, Greeter.class);
        } else {
            System.out.println("The insecure_user credentials will be used for the invocation.");
            System.out.println();
            port = ss.getPort(INSECURE_PORT_NAME, Greeter.class);
        }
       
        String resp;

        System.out.println("Invoking greetMe...");
View Full Code Here

            System.exit(1);
        }
       
        try {
            File wsdl = new File(args[0]);
            SOAPService service = new SOAPService(wsdl.toURL(), SERVICE_NAME);
            Greeter port = service.getSoapPort();

            // make a sequence of 8 invocations
            for (int i = 0; i < 4; i++) {
                System.out.println("Invoking sayHi...");
                String resp = port.sayHi();
View Full Code Here

        } else {
            wsdlURL = new URL(args[0]);
        }
       
        System.out.println(wsdlURL);
        SOAPService ss = new SOAPService(wsdlURL, SERVICE_NAME);
        Greeter port = ss.getSoapPort();
        String resp;

        System.out.println("Invoking sayHi...");
        resp = port.sayHi();
        System.out.println("Server responded with: " + resp);
View Full Code Here

    public void setUp() {
        try {
            super.setUp();
           
            wsdl = RegistrationTest.class.getResource("/wsdl/hello_world.wsdl");
            service = new SOAPService(wsdl, serviceName);
            greeter = service.getPort(portName, Greeter.class);
        } catch (Exception ex) {
            ex.printStackTrace();
            fail(ex.toString());
        }
View Full Code Here

        } else {
            wsdlURL = new URL(args[0]);
        }
       
        System.out.println(wsdlURL);
        SOAPService ss = new SOAPService(wsdlURL, SERVICE_NAME);
        Greeter port = ss.getSoapPort();
        String resp;

        System.out.println("Invoking sayHi...");
        resp = port.sayHi();
        System.out.println("Server responded with: " + resp);
View Full Code Here

            System.exit(1);
        }

        File wsdl = new File(args[0]);
       
        SOAPService ss = new SOAPService(wsdl.toURL(), SERVICE_NAME);
        Greeter port = ss.getSoapPort();
        String resp;

        System.out.println("Invoking sayHi...");
        resp = port.sayHi();
        System.out.println("Server responded with: " + resp);
View Full Code Here

        Bus bus = Bus.init();
        QName endpoint = new QName("http://objectweb.org/hello_world_soap_http",
                                   "SoapPort");
       
        try {
            SOAPService hwService = new SOAPService();
            assertNotNull(hwService);
            Iterator iter = hwService.getPorts();
            assertFalse("Should have no element", iter.hasNext());

            Greeter port = hwService.getSoapPort();
            assertNotNull(port);
            assertTrue("Should be a proxy class. "
                        + port.getClass().getName(),
                        Proxy.isProxyClass(port.getClass()));
           
            iter = hwService.getPorts();
            assertTrue("Should have one element", iter.hasNext());           
            assertEquals("Activated EndPoints are not the same", endpoint, iter.next());           
        } finally {
            bus.shutdown(true);
        }
View Full Code Here

   
    public void testCreateDispatch() throws Exception {
        QName endpoint = new QName("http://objectweb.org/hello_world_soap_http",
                                   "SoapPort");
       
        SOAPService service = new SOAPService();
        assertNotNull(service);
        Dispatch<SOAPMessage> disp = service.createDispatch(endpoint,
                                                                SOAPMessage.class, Service.Mode.MESSAGE);
        assertNotNull(disp);
        assertTrue("Should be DispatchImpl class", disp.getClass().isAssignableFrom(DispatchImpl.class));
       
        Dispatch<DOMSource> disp2 = service.createDispatch(endpoint,
                                                           DOMSource.class, Service.Mode.PAYLOAD);
        assertNotNull(disp2);
        assertTrue("Should be DispatchImpl class", disp2.getClass().isAssignableFrom(DispatchImpl.class));
    }
View Full Code Here

TOP

Related Classes of org.objectweb.hello_world_soap_http.SOAPService

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.