Package javax.xml.soap

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


        x.setName("Name x");
        x.setAddress("Some Address x");
        x.setAny(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 second node");

        StructWithAnyStrict yOrig = new StructWithAnyStrict();
        yOrig.setName("Name y");
        yOrig.setAddress("Some Address y");
View Full Code Here


    @Test
    public void testStructWithAnyStrictComplex() throws Exception {
        SOAPFactory factory = SOAPFactory.newInstance();
        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.5");
        elem.addChildElement(floatElem);
        SOAPElement intElem = factory.createElement("varInt", "tns", "http://apache.org/type_test/types1");
View Full Code Here

    @Test
    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");
View Full Code Here

        x.setName("Name x");
        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");
View Full Code Here

    @Test
    public void testStructWithAnyArrayLaxComplex() throws Exception {
        SOAPFactory factory = SOAPFactory.newInstance();
        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");
View Full Code Here

            = 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");
        stringdata.addTextNode("text content " + timestamp);
        SOAPElement intdata = cd.addChildElement("newpkg_wp1_integer", "pd");
View Full Code Here

            = Basic.createActionElement(message, "CreateInstanceRq");
        SOAPElement start = action.addChildElement("StartImmediately", "as");
        start.addTextNode("NO");

        SOAPElement cd = action.addChildElement("ContextData", "as");
        cd.addNamespaceDeclaration("pd",
                "http://localhost:8080/wfxml/dummy-pd.xsd");       

        SOAPElement name = action.addChildElement("Name", "as");
        name.addTextNode("wfxmltest factory " + timestamp);
        SOAPElement stringdata = cd.addChildElement("newpkg_wp1_string", "pd");
View Full Code Here

        SOAPMessage message = Basic.createMessage();
        Basic.fillRequestHeadet(message, testFactory, sender, id);
        SOAPElement action
            = Basic.createActionElement(message, "CreateInstanceRq");
        SOAPElement cd = action.addChildElement("ContextData", "as");
        cd.addNamespaceDeclaration("pd",
                "http://localhost:8080/wfxml/dummy-pd.xsd");       

        SOAPElement start = action.addChildElement("StartImmediately", "as");
        start.addTextNode("YES");
        SOAPElement name = action.addChildElement("Name", "as");
View Full Code Here

        Basic.fillRequestHeadet(message, instance, sender, id);
        SOAPElement action
            = Basic.createActionElement(message, "SetPropertiesRq");
       
        SOAPElement cd = action.addChildElement("Data", "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");
View Full Code Here

            = Basic.createActionElement(message, "CreateInstanceRq");
        SOAPElement start = action.addChildElement("StartImmediately", "as");
        start.addTextNode("NO");

        SOAPElement cd = action.addChildElement("ContextData", "as");
        cd.addNamespaceDeclaration("pd",
                "http://localhost:8080/wfxml/dummy-pd.xsd");       

        SOAPElement name = action.addChildElement("Name", "as");
        name.addTextNode("wfxmltest factory " + timestamp);
        SOAPElement stringdata = cd.addChildElement("newpkg_wp1_string", "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.