Package javax.xml.soap

Examples of javax.xml.soap.Name


           if("xmlns".equals(nodename))
              continue;
           //Special case:  xml:lang
           if("xml:lang".equals(nodename))
           {
              Name xmlLang = factory.createName("lang","xml",
                    "http://www.w3.org/TR/REC-xml/");
              bodyElement.addAttribute(xmlLang, nodevalue);
           }
           else
               bodyElement.addAttribute(factory.createName(nodename), nodevalue);
View Full Code Here


           Node node = nlist.item(i);
           short nodeType = node != null ? node.getNodeType() : -100;
           if (Node.ELEMENT_NODE == nodeType)
           {
              Element el = (Element)node;
              Name name = factory.createName(el.getNodeName(), prefix,uddins);
              SOAPElement attachedEl = bodyElement.addChildElement(name);
              appendAttributes(attachedEl, el.getAttributes(), factory);
              appendElements(attachedEl, el.getChildNodes(), factory);
           } else if (nodeType == Node.TEXT_NODE)
           {
View Full Code Here

       message.getSOAPHeader().detachNode();
       SOAPPart soapPart = message.getSOAPPart();
       SOAPBody soapBody = soapPart.getEnvelope().getBody();
       //Create the outer body element
       String uddins = IRegistry.UDDI_V2_NAMESPACE;
       Name bodyName = factory.createName(elem.getNodeName(),prefix,uddins);
       SOAPBodyElement bodyElement = soapBody.addBodyElement(bodyName);
       bodyElement.addNamespaceDeclaration(prefix,uddins);     
       appendAttributes(bodyElement, elem.getAttributes(), factory);
       appendElements(bodyElement,elem.getChildNodes(), factory);
       return message;
View Full Code Here

           if("xmlns".equals(nodename))
              continue;
           //Special case:  xml:lang
           if("xml:lang".equals(nodename))
           {
              Name xmlLang = factory.createName("lang","xml",
                    "http://www.w3.org/TR/REC-xml/");
              bodyElement.addAttribute(xmlLang, nodevalue);
           }
           else
               bodyElement.addAttribute(factory.createName(nodename), nodevalue);
View Full Code Here

           Node node = nlist.item(i);
           short nodeType = node != null ? node.getNodeType() : -100;
           if (Node.ELEMENT_NODE == nodeType)
           {
              Element el = (Element)node;
              Name name = factory.createName(el.getNodeName(), prefix,uddins);
              SOAPElement attachedEl = bodyElement.addChildElement(name);
              appendAttributes(attachedEl, el.getAttributes(), factory);
              appendElements(attachedEl, el.getChildNodes(), factory);
           } else if (nodeType == Node.TEXT_NODE)
           {
View Full Code Here

       message.getSOAPHeader().detachNode();
       SOAPPart soapPart = message.getSOAPPart();
       SOAPBody soapBody = soapPart.getEnvelope().getBody();
       //Create the outer body element
       String uddins = IRegistry.UDDI_V2_NAMESPACE;
       Name bodyName = factory.createName(elem.getNodeName(),prefix,uddins);
       SOAPBodyElement bodyElement = soapBody.addBodyElement(bodyName);
       bodyElement.addNamespaceDeclaration(prefix,uddins);     
       appendAttributes(bodyElement, elem.getAttributes(), factory);
       appendElements(bodyElement,elem.getChildNodes(), factory);
       return message;
View Full Code Here

           if("xmlns".equals(nodename))
              continue;
           //Special case:  xml:lang
           if("xml:lang".equals(nodename))
           {
              Name xmlLang = factory.createName("lang","xml","");
              bodyElement.addAttribute(xmlLang, nodevalue);
           }
           else
               bodyElement.addAttribute(factory.createName(nodename), nodevalue);
       }
View Full Code Here

           Node node = nlist.item(i);
           short nodeType = node != null ? node.getNodeType() : -100;
           if (Node.ELEMENT_NODE == nodeType)
           {
              Element el = (Element)node;
              Name name = factory.createName(el.getNodeName(), prefix,uddins);
              SOAPElement attachedEl = bodyElement.addChildElement(name);
              appendAttributes(attachedEl, el.getAttributes(), factory);
              appendElements(attachedEl, el.getChildNodes(), factory);
           } else if (nodeType == Node.TEXT_NODE)
           {
View Full Code Here

        int size = reader.getAttributeCount();
        for (int i = 0; i < size; i++) {
            QName qName = reader.getAttributeName(i);
            String prefix = reader.getAttributePrefix(i);
            String value = reader.getAttributeValue(i);
            Name name = nc.createName(qName.getLocalPart(), prefix, qName.getNamespaceURI());
            element.addAttribute(name, value);
           
            try {
              if (log.isDebugEnabled()) {
                log.debug("Setting attrType");
View Full Code Here

        SOAPElementImpl childEle =
                new SOAPElementImpl((ElementImpl) getOwnerDocument().createElementNS(namespaceURI,
                                                                                     localName));
        for (Iterator iter = soapElement.getAllAttributes(); iter.hasNext();) {
            Name name = (Name) iter.next();
            childEle.addAttribute(name, soapElement.getAttributeValue(name));
        }

        for (Iterator iter = soapElement.getChildElements(); iter.hasNext();) {
            Object o = iter.next();
View Full Code Here

TOP

Related Classes of javax.xml.soap.Name

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.