Package javax.xml.soap

Examples of javax.xml.soap.SOAPElement.addTextNode()


    public void testStructWithAnyArrayLax() throws Exception {
        SOAPFactory factory = SOAPFactory.newInstance();
        SOAPElement elem = factory.createElement("StringElementQualified", "tns",
                "http://apache.org/type_test/types1");
        elem.addNamespaceDeclaration("tns", "http://apache.org/type_test/types1");
        elem.addTextNode("This is the text of the node");

        StructWithAnyArrayLax x = new StructWithAnyArrayLax();
        x.setName("Name x");
        x.setAddress("Some Address x");
        x.getAny().add(elem);
View Full Code Here


        x.setAddress("Some Address x");
        x.getAny().add(elem);

        elem = factory.createElement("StringElementQualified", "tns", "http://apache.org/type_test/types1");
        elem.addNamespaceDeclaration("tns", "http://apache.org/type_test/types1");
        elem.addTextNode("This is the text of the node for the second struct");

        StructWithAnyArrayLax yOrig = new StructWithAnyArrayLax();
        yOrig.setName("Name y");
        yOrig.setAddress("Some Other Address y");
        yOrig.getAny().add(elem);
View Full Code Here

        SOAPElement elem = factory.createElement("AnonTypeElementQualified", "tns",
                "http://apache.org/type_test/types1");
        elem.addNamespaceDeclaration("tns", "http://apache.org/type_test/types1");
        SOAPElement floatElem = factory
                .createElement("varFloat", "tns", "http://apache.org/type_test/types1");
        floatElem.addTextNode("12.76");
        elem.addChildElement(floatElem);
        SOAPElement intElem = factory.createElement("varInt", "tns", "http://apache.org/type_test/types1");
        intElem.addTextNode("56");
        elem.addChildElement(intElem);
        SOAPElement stringElem = factory.createElement("varString", "tns",
View Full Code Here

        SOAPElement floatElem = factory
                .createElement("varFloat", "tns", "http://apache.org/type_test/types1");
        floatElem.addTextNode("12.76");
        elem.addChildElement(floatElem);
        SOAPElement intElem = factory.createElement("varInt", "tns", "http://apache.org/type_test/types1");
        intElem.addTextNode("56");
        elem.addChildElement(intElem);
        SOAPElement stringElem = factory.createElement("varString", "tns",
                "http://apache.org/type_test/types1");
        stringElem.addTextNode("test string");
        elem.addChildElement(stringElem);
View Full Code Here

        SOAPElement intElem = factory.createElement("varInt", "tns", "http://apache.org/type_test/types1");
        intElem.addTextNode("56");
        elem.addChildElement(intElem);
        SOAPElement stringElem = factory.createElement("varString", "tns",
                "http://apache.org/type_test/types1");
        stringElem.addTextNode("test string");
        elem.addChildElement(stringElem);

        StructWithAnyArrayLax x = new StructWithAnyArrayLax();
        x.setName("Name x");
        x.setAddress("Some Address x");
View Full Code Here

     */
    public void endElement(String uri, String loc, String raw)
    throws SAXException {
        try {
            SOAPElement current = (SOAPElement)elemStack.remove(0);
            current.addTextNode (text());
        } catch (SOAPException e) {
            throw new SAXException (e);
        }
    }
}
View Full Code Here

        Basic.fillRequestHeadet(message, factory, sender, id);
        SOAPElement action
            = Basic.createActionElement(message, "CreateInstanceRq");
                           
        SOAPElement name = action.addChildElement("Name", "as");
        name.addTextNode("wfxmltest factory " + timestamp);
        SOAPElement cd = action.addChildElement("ContextData", "as");
        cd.addNamespaceDeclaration("pd",
                "http://localhost:8080/wfxml/dummy-pd.xsd");     
       
        SOAPElement stringdata = cd.addChildElement("newpkg_wp1_string", "pd");
View Full Code Here

        SOAPElement cd = action.addChildElement("ContextData", "as");
        cd.addNamespaceDeclaration("pd",
                "http://localhost:8080/wfxml/dummy-pd.xsd");     
       
        SOAPElement stringdata = cd.addChildElement("newpkg_wp1_string", "pd");
        stringdata.addTextNode("text content " + timestamp);
        SOAPElement intdata = cd.addChildElement("newpkg_wp1_integer", "pd");
        intdata.addTextNode("42");
        SOAPElement floatdata = cd.addChildElement("newpkg_wp1_float", "pd");
        floatdata.addTextNode("42.42");
        SOAPElement booldata = cd.addChildElement("newpkg_wp1_boolean", "pd");
View Full Code Here

                "http://localhost:8080/wfxml/dummy-pd.xsd");     
       
        SOAPElement stringdata = cd.addChildElement("newpkg_wp1_string", "pd");
        stringdata.addTextNode("text content " + timestamp);
        SOAPElement intdata = cd.addChildElement("newpkg_wp1_integer", "pd");
        intdata.addTextNode("42");
        SOAPElement floatdata = cd.addChildElement("newpkg_wp1_float", "pd");
        floatdata.addTextNode("42.42");
        SOAPElement booldata = cd.addChildElement("newpkg_wp1_boolean", "pd");
        booldata.addTextNode("true");
        SOAPElement datedata = cd.addChildElement("newpkg_wp1_date", "pd");
View Full Code Here

        SOAPElement stringdata = cd.addChildElement("newpkg_wp1_string", "pd");
        stringdata.addTextNode("text content " + timestamp);
        SOAPElement intdata = cd.addChildElement("newpkg_wp1_integer", "pd");
        intdata.addTextNode("42");
        SOAPElement floatdata = cd.addChildElement("newpkg_wp1_float", "pd");
        floatdata.addTextNode("42.42");
        SOAPElement booldata = cd.addChildElement("newpkg_wp1_boolean", "pd");
        booldata.addTextNode("true");
        SOAPElement datedata = cd.addChildElement("newpkg_wp1_date", "pd");
        datedata.addTextNode(timestamp);
        SOAPElement schemadata = cd.addChildElement("newpkg_wp1_schema", "pd");
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.