Examples of MixedTest


Examples of org.apache.cxf.systest.jaxws.ServerMixedStyle.MixedTest

        }
    }
    @Test
    public void testCXF885() throws Exception {
        Service serv = Service.create(new QName("http://example.com", "MixedTest"));
        MixedTest test = serv.getPort(MixedTest.class);
        ((BindingProvider)test).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
                                                        "http://localhost:" + PORT + "/cxf885");
        String ret = test.hello("A", "B");
        assertEquals("Hello A and B", ret);
       
        String ret2 = test.simple("Dan");
        assertEquals("Hello Dan", ret2);
       
        String ret3 = test.tripple("A", "B", "C");
        assertEquals("Tripple: A B C", ret3);
       
        String ret4 = test.simple2(24);
        assertEquals("Int: 24", ret4);
       
        serv = Service.create(new URL("http://localhost:" + PORT + "/cxf885?wsdl"),
                              new QName("http://example.com", "MixedTestImplService"));
        test = serv.getPort(new QName("http://example.com", "MixedTestImplPort"),
                            MixedTest.class);
       
        ret = test.hello("A", "B");
        assertEquals("Hello A and B", ret);
       
        ret2 = test.simple("Dan");
        assertEquals("Hello Dan", ret2);
       
        ret3 = test.tripple("A", "B", "C");
        assertEquals("Tripple: A B C", ret3);
       
        ret4 = test.simple2(24);
        assertEquals("Int: 24", ret4);
    }
View Full Code Here

Examples of org.apache.cxf.systest.jaxws.ServerMixedStyle.MixedTest

        }
    }
    @Test
    public void testCXF885() throws Exception {
        Service serv = Service.create(new QName("http://example.com", "MixedTest"));
        MixedTest test = serv.getPort(MixedTest.class);
        ((BindingProvider)test).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
                                                        "http://localhost:9027/cxf885");
        String ret = test.hello("A", "B");
        assertEquals("Hello A and B", ret);
       
        String ret2 = test.simple("Dan");
        assertEquals("Hello Dan", ret2);
       
        String ret3 = test.tripple("A", "B", "C");
        assertEquals("Tripple: A B C", ret3);
       
        String ret4 = test.simple2(24);
        assertEquals("Int: 24", ret4);
       
        serv = Service.create(new URL("http://localhost:9027/cxf885?wsdl"),
                              new QName("http://example.com", "MixedTestImplService"));
        test = serv.getPort(new QName("http://example.com", "MixedTestImplPort"),
                            MixedTest.class);
       
        ret = test.hello("A", "B");
        assertEquals("Hello A and B", ret);
       
        ret2 = test.simple("Dan");
        assertEquals("Hello Dan", ret2);
       
        ret3 = test.tripple("A", "B", "C");
        assertEquals("Tripple: A B C", ret3);
       
        ret4 = test.simple2(24);
        assertEquals("Int: 24", ret4);
    }
View Full Code Here

Examples of org.apache.cxf.systest.jaxws.ServerMixedStyle.MixedTest

        }
    }
    @Test
    public void testCXF885() throws Exception {
        Service serv = Service.create(new QName("http://example.com", "MixedTest"));
        MixedTest test = serv.getPort(MixedTest.class);
        ((BindingProvider)test).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
                                                        "http://localhost:" + PORT + "/cxf885");
        String ret = test.hello("A", "B");
        assertEquals("Hello A and B", ret);
       
        String ret2 = test.simple("Dan");
        assertEquals("Hello Dan", ret2);
       
        String ret3 = test.tripple("A", "B", "C");
        assertEquals("Tripple: A B C", ret3);
       
        String ret4 = test.simple2(24);
        assertEquals("Int: 24", ret4);
       
        serv = Service.create(new URL("http://localhost:" + PORT + "/cxf885?wsdl"),
                              new QName("http://example.com", "MixedTestImplService"));
        test = serv.getPort(new QName("http://example.com", "MixedTestImplPort"),
                            MixedTest.class);
       
        ret = test.hello("A", "B");
        assertEquals("Hello A and B", ret);
       
        ret2 = test.simple("Dan");
        assertEquals("Hello Dan", ret2);
       
        ret3 = test.tripple("A", "B", "C");
        assertEquals("Tripple: A B C", ret3);
       
        ret4 = test.simple2(24);
        assertEquals("Int: 24", ret4);
    }
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.