Package org.apache.hello_world_soap_http_source.source

Examples of org.apache.hello_world_soap_http_source.source.Greeter.greetMe()


            "ns1:requestType");
        el2.appendChild(doc.createTextNode("Willem"));
        el.appendChild(el2);
        doc.appendChild(el);
        ds = new DOMSource(doc);
        resp = port.greetMe(ds);
        assertEquals("We should get the right response", "Hello Willem",
                     DOMUtils.getContent(DOMUtils.getFirstElement(getElement(resp.getNode()))));

        try {
            doc = XMLUtils.newDocument();
View Full Code Here


                "ns1:requestType");
            el2.appendChild(doc.createTextNode("fault"));
            el.appendChild(el2);
            doc.appendChild(el);
            ds = new DOMSource(doc);
            port.greetMe(ds);
            fail("Should have been a fault");
        } catch (GreetMeFault ex) {
            assertEquals("Some fault detail", DOMUtils.getContent(getElement(ex.getFaultInfo().getNode())));
        }
View Full Code Here

            "ns1:requestType");
        el2.appendChild(doc.createTextNode("Willem"));
        el.appendChild(el2);
        doc.appendChild(el);
        ds = new DOMSource(doc);
        resp = port.greetMe(ds);
        assertEquals("We should get the right response", "Hello Willem",
                     DOMUtils.getContent(DOMUtils.getFirstElement(getElement(resp.getNode()))));

        try {
            doc = DOMUtils.newDocument();
View Full Code Here

                "ns1:requestType");
            el2.appendChild(doc.createTextNode("fault"));
            el.appendChild(el2);
            doc.appendChild(el);
            ds = new DOMSource(doc);
            port.greetMe(ds);
            fail("Should have been a fault");
        } catch (GreetMeFault ex) {
            assertEquals("Some fault detail", DOMUtils.getContent(getElement(ex.getFaultInfo().getNode())));
        }
View Full Code Here

            "ns1:requestType");
        el2.appendChild(doc.createTextNode("Willem"));
        el.appendChild(el2);
        doc.appendChild(el);
        ds = new DOMSource(doc);
        resp = port.greetMe(ds);
        assertEquals("We should get the right response", "Hello Willem",
                     DOMUtils.getContent(DOMUtils.getFirstElement(getElement(resp.getNode()))));

        try {
            doc = XMLUtils.newDocument();
View Full Code Here

                "ns1:requestType");
            el2.appendChild(doc.createTextNode("fault"));
            el.appendChild(el2);
            doc.appendChild(el);
            ds = new DOMSource(doc);
            port.greetMe(ds);
            fail("Should have been a fault");
        } catch (GreetMeFault ex) {
            assertEquals("Some fault detail", DOMUtils.getContent(getElement(ex.getFaultInfo().getNode())));
        }
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.