Package org.apache.hello_world_soap_http.any

Examples of org.apache.hello_world_soap_http.any.Greeter


    public void testAny() throws Exception {
        URL wsdl = getClass().getResource("/wsdl/any.wsdl");
        assertNotNull(wsdl);

        SOAPService ss = new SOAPService(wsdl, serviceName);
        Greeter port = ss.getSoapPort();

        List<Port> any = new ArrayList<Port>();
        Port anyPort = new Port();
        Port anyPort1 = new Port();
        JAXBElement<String> ele1 = new JAXBElement<String>(
            new QName("http://apache.org/hello_world_soap_http/other", "port"),
            String.class, "hello");
       
        anyPort.setAny(ele1);
        JAXBElement<String> ele2 = new JAXBElement<String>(
            new QName("http://apache.org/hello_world_soap_http/other", "port"),
            String.class, "Bon");
        anyPort1.setAny(ele2);
       
        any.add(anyPort);
        any.add(anyPort1);
        String rep = port.sayHi(any);
        assertEquals(rep, "helloBon");
    }
View Full Code Here


    public void testList() throws Exception {
        URL wsdl = getClass().getResource("/wsdl/any.wsdl");
        assertNotNull(wsdl);

        SOAPService ss = new SOAPService(wsdl, serviceName);
        Greeter port = ss.getSoapPort();
        List<org.apache.hello_world_soap_http.any_types.SayHi1.Port> list =
                new ArrayList<org.apache.hello_world_soap_http.any_types.SayHi1.Port>();
        org.apache.hello_world_soap_http.any_types.SayHi1.Port port1 =
            new org.apache.hello_world_soap_http.any_types.SayHi1.Port();
        port1.setRequestType("hello");
        org.apache.hello_world_soap_http.any_types.SayHi1.Port port2 =
            new org.apache.hello_world_soap_http.any_types.SayHi1.Port();
        port2.setRequestType("Bon");
        list.add(port1);
        list.add(port2);
        String rep = port.sayHi1(list);
        assertEquals(rep, "helloBon");
    }
View Full Code Here

    public void testAny() throws Exception {
        URL wsdl = getClass().getResource("/wsdl/any.wsdl");
        assertNotNull(wsdl);

        SOAPService ss = new SOAPService(wsdl, serviceName);
        Greeter port = ss.getSoapPort();

        List<Port> any = new ArrayList<Port>();
        Port anyPort = new Port();
        Port anyPort1 = new Port();
        JAXBElement<String> ele1 = new JAXBElement<String>(
            new QName("http://apache.org/hello_world_soap_http/other", "port"),
            String.class, "hello");
       
        anyPort.setAny(ele1);
        JAXBElement<String> ele2 = new JAXBElement<String>(
            new QName("http://apache.org/hello_world_soap_http/other", "port"),
            String.class, "Bon");
        anyPort1.setAny(ele2);
       
        any.add(anyPort);
        any.add(anyPort1);
        String rep = port.sayHi(any);
        assertEquals(rep, "helloBon");
    }
View Full Code Here

    public void testList() throws Exception {
        URL wsdl = getClass().getResource("/wsdl/any.wsdl");
        assertNotNull(wsdl);

        SOAPService ss = new SOAPService(wsdl, serviceName);
        Greeter port = ss.getSoapPort();
        List<org.apache.hello_world_soap_http.any_types.SayHi1.Port> list =
                new ArrayList<org.apache.hello_world_soap_http.any_types.SayHi1.Port>();
        org.apache.hello_world_soap_http.any_types.SayHi1.Port port1 =
            new org.apache.hello_world_soap_http.any_types.SayHi1.Port();
        port1.setRequestType("hello");
        org.apache.hello_world_soap_http.any_types.SayHi1.Port port2 =
            new org.apache.hello_world_soap_http.any_types.SayHi1.Port();
        port2.setRequestType("Bon");
        list.add(port1);
        list.add(port2);
        String rep = port.sayHi1(list);
        assertEquals(rep, "helloBon");
    }
View Full Code Here

    public void testAny() throws Exception {
        URL wsdl = getClass().getResource("/wsdl/any.wsdl");
        assertNotNull(wsdl);

        SOAPService ss = new SOAPService(wsdl, serviceName);
        Greeter port = ss.getSoapPort();
        updateAddressPort(port, PORT);
       
        List<Port> any = new ArrayList<Port>();
        Port anyPort = new Port();
        Port anyPort1 = new Port();
        JAXBElement<String> ele1 = new JAXBElement<String>(
            new QName("http://apache.org/hello_world_soap_http/other", "port"),
            String.class, "hello");
       
        anyPort.setAny(ele1);
        JAXBElement<String> ele2 = new JAXBElement<String>(
            new QName("http://apache.org/hello_world_soap_http/other", "port"),
            String.class, "Bon");
        anyPort1.setAny(ele2);
       
        any.add(anyPort);
        any.add(anyPort1);
        String rep = port.sayHi(any);
        assertEquals(rep, "helloBon");
    }
View Full Code Here

    public void testList() throws Exception {
        URL wsdl = getClass().getResource("/wsdl/any.wsdl");
        assertNotNull(wsdl);

        SOAPService ss = new SOAPService(wsdl, serviceName);
        Greeter port = ss.getSoapPort();
        updateAddressPort(port, PORT);

        List<org.apache.hello_world_soap_http.any_types.SayHi1.Port> list =
                new ArrayList<org.apache.hello_world_soap_http.any_types.SayHi1.Port>();
        org.apache.hello_world_soap_http.any_types.SayHi1.Port port1 =
            new org.apache.hello_world_soap_http.any_types.SayHi1.Port();
        port1.setRequestType("hello");
        org.apache.hello_world_soap_http.any_types.SayHi1.Port port2 =
            new org.apache.hello_world_soap_http.any_types.SayHi1.Port();
        port2.setRequestType("Bon");
        list.add(port1);
        list.add(port2);
        String rep = port.sayHi1(list);
        assertEquals(rep, "helloBon");
    }
View Full Code Here

    public void testAny() throws Exception {
        URL wsdl = getClass().getResource("/wsdl/any.wsdl");
        assertNotNull(wsdl);

        SOAPService ss = new SOAPService(wsdl, serviceName);
        Greeter port = ss.getSoapPort();

        List<Port> any = new ArrayList<Port>();
        Port anyPort = new Port();
        Port anyPort1 = new Port();
        JAXBElement<String> ele1 = new JAXBElement<String>(
            new QName("http://apache.org/hello_world_soap_http/other", "port"),
            String.class, "hello");
       
        anyPort.setAny(ele1);
        JAXBElement<String> ele2 = new JAXBElement<String>(
            new QName("http://apache.org/hello_world_soap_http/other", "port"),
            String.class, "Bon");
        anyPort1.setAny(ele2);
       
        any.add(anyPort);
        any.add(anyPort1);
        String rep = port.sayHi(any);
        assertEquals(rep, "helloBon");
    }
View Full Code Here

    public void testList() throws Exception {
        URL wsdl = getClass().getResource("/wsdl/any.wsdl");
        assertNotNull(wsdl);

        SOAPService ss = new SOAPService(wsdl, serviceName);
        Greeter port = ss.getSoapPort();
        List<org.apache.hello_world_soap_http.any_types.SayHi1.Port> list =
                new ArrayList<org.apache.hello_world_soap_http.any_types.SayHi1.Port>();
        org.apache.hello_world_soap_http.any_types.SayHi1.Port port1 =
            new org.apache.hello_world_soap_http.any_types.SayHi1.Port();
        port1.setRequestType("hello");
        org.apache.hello_world_soap_http.any_types.SayHi1.Port port2 =
            new org.apache.hello_world_soap_http.any_types.SayHi1.Port();
        port2.setRequestType("Bon");
        list.add(port1);
        list.add(port2);
        String rep = port.sayHi1(list);
        assertEquals(rep, "helloBon");
    }
View Full Code Here

    public void testAny() throws Exception {
        URL wsdl = getClass().getResource("/wsdl/any.wsdl");
        assertNotNull(wsdl);

        SOAPService ss = new SOAPService(wsdl, serviceName);
        Greeter port = ss.getSoapPort();
        updateAddressPort(port, PORT);
       
        List<Port> any = new ArrayList<Port>();
        Port anyPort = new Port();
        Port anyPort1 = new Port();
        JAXBElement<String> ele1 = new JAXBElement<String>(
            new QName("http://apache.org/hello_world_soap_http/other", "port"),
            String.class, "hello");
       
        anyPort.setAny(ele1);
        JAXBElement<String> ele2 = new JAXBElement<String>(
            new QName("http://apache.org/hello_world_soap_http/other", "port"),
            String.class, "Bon");
        anyPort1.setAny(ele2);
       
        any.add(anyPort);
        any.add(anyPort1);
        String rep = port.sayHi(any);
        assertEquals(rep, "helloBon");
    }
View Full Code Here

    public void testList() throws Exception {
        URL wsdl = getClass().getResource("/wsdl/any.wsdl");
        assertNotNull(wsdl);

        SOAPService ss = new SOAPService(wsdl, serviceName);
        Greeter port = ss.getSoapPort();
        updateAddressPort(port, PORT);

        List<org.apache.hello_world_soap_http.any_types.SayHi1.Port> list =
                new ArrayList<org.apache.hello_world_soap_http.any_types.SayHi1.Port>();
        org.apache.hello_world_soap_http.any_types.SayHi1.Port port1 =
            new org.apache.hello_world_soap_http.any_types.SayHi1.Port();
        port1.setRequestType("hello");
        org.apache.hello_world_soap_http.any_types.SayHi1.Port port2 =
            new org.apache.hello_world_soap_http.any_types.SayHi1.Port();
        port2.setRequestType("Bon");
        list.add(port1);
        list.add(port2);
        String rep = port.sayHi1(list);
        assertEquals(rep, "helloBon");
    }
View Full Code Here

TOP

Related Classes of org.apache.hello_world_soap_http.any.Greeter

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.