Examples of lookupPrefix()


Examples of org.w3c.dom.Element.lookupPrefix()

                                            QName name,
                                            SoapMessage msg,
                                            AddressingPropertiesImpl maps) {
        if (maps.getMustUnderstand().contains(name)) {
            Element lastAdded = (Element)header.getLastChild();
            String pfx = lastAdded.lookupPrefix(msg.getVersion().getNamespace());
            if (StringUtils.isEmpty(pfx)) {
                pfx = "soap";
            }
            if (msg.hasAdditionalEnvNs()) {
                String ns = msg.getVersion().getNamespace();
View Full Code Here

Examples of org.w3c.dom.Element.lookupPrefix()

                                            QName name,
                                            SoapMessage msg,
                                            AddressingPropertiesImpl maps) {
        if (maps.getMustUnderstand().contains(name)) {
            Element lastAdded = (Element)header.getLastChild();
            String pfx = lastAdded.lookupPrefix(msg.getVersion().getNamespace());
            if (StringUtils.isEmpty(pfx)) {
                pfx = "soap";
            }
            if (msg.hasAdditionalEnvNs()) {
                String ns = msg.getVersion().getNamespace();
View Full Code Here

Examples of org.w3c.dom.Element.lookupPrefix()

        assertEquals("Response should be : Hello TestSOAPInputMessage", expected, domResMsg.getNode()
            .getFirstChild().getTextContent().trim());
       
        Element el = (Element)domResMsg.getNode().getFirstChild();
        System.out.println(DOMUtils.getElementQName(el));
        assertEquals("gmns", el.lookupPrefix("http://apache.org/hello_world_soap_http/types"));
        assertEquals("http://apache.org/hello_world_soap_http/types",
                     el.lookupNamespaceURI("gmns"));

        // Test invoke oneway
        InputStream is1 = getClass().getResourceAsStream("resources/GreetMeDocLiteralReq1.xml");
View Full Code Here

Examples of org.w3c.dom.Element.lookupPrefix()

                                            QName name,
                                            SoapMessage msg,
                                            AddressingProperties maps) {
        if (maps.getMustUnderstand().contains(name)) {
            Element lastAdded = (Element)header.getLastChild();
            String pfx = lastAdded.lookupPrefix(msg.getVersion().getNamespace());
            if (StringUtils.isEmpty(pfx)) {
                pfx = "soap";
            }
            if (msg.hasAdditionalEnvNs()) {
                String ns = msg.getVersion().getNamespace();
View Full Code Here

Examples of org.w3c.dom.Element.lookupPrefix()

                Node targetNode = queryXPathNode(schemaNode, ctx, xpathExpress);
                //@@TODO - copy namespaces
                Element schemaElement = (Element)schemaNode;
                // Element targetElement = (Element)targetNode;

                String jaxbPrefix = schemaElement.lookupPrefix(ToolConstants.NS_JAXB_BINDINGS);
                if (jaxbPrefix == null) {
                    schemaElement.setAttribute("xmlns:jaxb", ToolConstants.NS_JAXB_BINDINGS);
                    schemaElement.setAttribute("jaxb:version", "2.0");
                }
View Full Code Here

Examples of org.w3c.dom.Element.lookupPrefix()

                    targetNode.appendChild(annoElement);
                }                   
            } else if (node != null && nestedJaxbSchemaBindingNodes.getLength() != 0) {
                Element schemaElement = (Element)node;
                Node jaxbNode = nestedJaxbSchemaBindingNodes.item(0);
                String jaxbPrefix = schemaElement.lookupPrefix(ToolConstants.NS_JAXB_BINDINGS);
                if (jaxbPrefix == null) {
                    schemaElement.setAttribute("xmlns:jaxb", ToolConstants.NS_JAXB_BINDINGS);
                    schemaElement.setAttribute("jaxb:version", "2.0");
                }
                // append jaxb appinfo for value node
View Full Code Here

Examples of org.w3c.dom.Element.lookupPrefix()

        assertEquals("Response should be : Hello TestSOAPInputMessage", expected, domResMsg.getNode()
            .getFirstChild().getTextContent().trim());
       
        Element el = (Element)domResMsg.getNode().getFirstChild();
        System.out.println(DOMUtils.getElementQName(el));
        assertEquals("gmns", el.lookupPrefix("http://apache.org/hello_world_soap_http/types"));
        assertEquals("http://apache.org/hello_world_soap_http/types",
                     el.lookupNamespaceURI("gmns"));

        // Test invoke oneway
        InputStream is1 = getClass().getResourceAsStream("resources/GreetMeDocLiteralReq1.xml");
View Full Code Here

Examples of org.w3c.dom.Element.lookupPrefix()

                                            QName name,
                                            SoapMessage msg,
                                            AddressingPropertiesImpl maps) {
        if (maps.getMustUnderstand().contains(name)) {
            Element lastAdded = (Element)header.getLastChild();
            String pfx = lastAdded.lookupPrefix(msg.getVersion().getNamespace());
            if (StringUtils.isEmpty(pfx)) {
                pfx = "soap";
            }
            if (msg.hasAdditionalEnvNs()) {
                String ns = msg.getVersion().getNamespace();
View Full Code Here

Examples of org.w3c.dom.Element.lookupPrefix()

        assertEquals("Response should be : Hello TestSOAPInputMessage", expected,
                     DOMUtils.getAllContent(domResMsg.getNode().getFirstChild()).trim());
       
        Element el = (Element)domResMsg.getNode().getFirstChild();
        assertEquals("gmns", el.lookupPrefix("http://apache.org/hello_world_soap_http/types"));
        assertEquals("http://apache.org/hello_world_soap_http/types",
                     el.lookupNamespaceURI("gmns"));

        // Test invoke oneway
        InputStream is1 = getClass().getResourceAsStream("resources/GreetMeDocLiteralReq1.xml");
View Full Code Here

Examples of org.w3c.dom.Element.lookupPrefix()

                                            QName name,
                                            SoapMessage msg,
                                            AddressingProperties maps) {
        if (maps.getMustUnderstand().contains(name)) {
            Element lastAdded = (Element)header.getLastChild();
            String pfx = lastAdded.lookupPrefix(msg.getVersion().getNamespace());
            if (StringUtils.isEmpty(pfx)) {
                pfx = "soap";
            }
            if (msg.hasAdditionalEnvNs()) {
                String ns = msg.getVersion().getNamespace();
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.