Package javax.xml.soap

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


            // TODO: Check other values for schema type.
            if (type.equals(org.w3c.dom.Element.class)) {
                SOAPElement var = sequence.addChildElement("any", "xsd");
                Name namespaceAttribute = env.createName("namespace");
                var.addAttribute(namespaceAttribute, "##other");
            } else {
                if (type.equals(String.class)) {
                    prefix = "xsd";
                    xsdtype = "string";
                } else if (type.equals(Long.class)) {
View Full Code Here


                    xsdtype = "string";
                }

                SOAPElement var = sequence.addChildElement("element", "xsd");
                Name nameAttribute = env.createName("name");
                var.addAttribute(nameAttribute, name);
                Name typeAttribute = env.createName("type");
                var.addAttribute(typeAttribute, prefix + ":" + xsdtype);
                Name minAttribute = env.createName("minOccurs");
                var.addAttribute(minAttribute, "0");
                Name maxAttribute = env.createName("maxOccurs");
View Full Code Here

                SOAPElement var = sequence.addChildElement("element", "xsd");
                Name nameAttribute = env.createName("name");
                var.addAttribute(nameAttribute, name);
                Name typeAttribute = env.createName("type");
                var.addAttribute(typeAttribute, prefix + ":" + xsdtype);
                Name minAttribute = env.createName("minOccurs");
                var.addAttribute(minAttribute, "0");
                Name maxAttribute = env.createName("maxOccurs");
                var.addAttribute(maxAttribute, "1");
            }
View Full Code Here

                Name nameAttribute = env.createName("name");
                var.addAttribute(nameAttribute, name);
                Name typeAttribute = env.createName("type");
                var.addAttribute(typeAttribute, prefix + ":" + xsdtype);
                Name minAttribute = env.createName("minOccurs");
                var.addAttribute(minAttribute, "0");
                Name maxAttribute = env.createName("maxOccurs");
                var.addAttribute(maxAttribute, "1");
            }
        }
    }
View Full Code Here

                Name typeAttribute = env.createName("type");
                var.addAttribute(typeAttribute, prefix + ":" + xsdtype);
                Name minAttribute = env.createName("minOccurs");
                var.addAttribute(minAttribute, "0");
                Name maxAttribute = env.createName("maxOccurs");
                var.addAttribute(maxAttribute, "1");
            }
        }
    }

    /*
 
View Full Code Here

        while (attributes.hasNext()) {
            Name attribute = (Name) attributes.next();
            String value = imported.getAttributeValue(attribute);
            Name newName = factory.createName(attribute.getLocalName(),
                    attribute.getPrefix(), attribute.getURI());
            newChild.addAttribute(newName, value);
        }
       
        Iterator children = imported.getChildElements();
        while (children.hasNext()) {
            Object o = children.next();
View Full Code Here

        org.w3c.dom.NamedNodeMap attributes = imported.getAttributes();
        for(int i=0; i<attributes.getLength(); i++) {
            org.w3c.dom.Node attribute = attributes.item(i);
            Name newName = factory.createName(attribute.getLocalName(),
                    attribute.getPrefix(), attribute.getNamespaceURI());
            newChild.addAttribute(newName, attribute.getNodeValue());
        }
       
        org.w3c.dom.NodeList children = imported.getChildNodes();
        for(int i=0; i<children.getLength(); i++) {
            Object o = children.item(i);
View Full Code Here

        SOAPElement mainChildEle = bodyElement.addChildElement(nameMain);

        Name ns2 = env.createName("text");
        SOAPElement textReference = mainChildEle.addChildElement(ns2);
        Name hrefAttr = env.createName("href");
        textReference.addAttribute(hrefAttr, "cid:submitSampleText@apache.org");

        Name ns3 = env.createName("image");
        SOAPElement imageReference = mainChildEle.addChildElement(ns3);
        Name ns31 = env.createName("inner");
        final SOAPElement img = imageReference.addChildElement(ns31);
View Full Code Here

        Name ns3 = env.createName("image");
        SOAPElement imageReference = mainChildEle.addChildElement(ns3);
        Name ns31 = env.createName("inner");
        final SOAPElement img = imageReference.addChildElement(ns31);
        img.addAttribute(hrefAttr, "cid:submitSampleImage@apache.org");

        Name ns4 = env.createName("plaintxt");
        SOAPElement plainTxt = mainChildEle.addChildElement(ns4);
        plainTxt.addTextNode("This is simple plain text");
View Full Code Here

                                                    omChildQName.getNamespaceURI());
                    for (Iterator attribIter = omChildEle.getAllAttributes();
                         attribIter.hasNext();) {
                        OMAttribute attr = (OMAttribute)attribIter.next();
                        final QName attrQName = attr.getQName();
                        saajChildEle.addAttribute(saajSOAPMsg.getSOAPPart().getEnvelope().
                                createName(attrQName.getLocalPart(),
                                           attrQName.getPrefix(),
                                           attrQName.getNamespaceURI()),
                                                  attr.getAttributeValue());
                    }
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.