Package org.apache.axiom.om

Examples of org.apache.axiom.om.OMElement.declareNamespace()


        topicExpEl.addAttribute("Dialect", WsmgCommonConstants.TOPIC_EXPRESSION_SIMPLE_DIALECT, null);
        topicExpEl.declareNamespace(NameSpaceConstants.WIDGET_NS);
        topicExpEl.setText(NameSpaceConstants.WIDGET_NS.getPrefix() + ":" + topic);

        OMElement messageToNotify = factory.createOMElement("Notify", NameSpaceConstants.WSNT_NS);
        messageToNotify.declareNamespace(NameSpaceConstants.WSNT_NS);
        messageToNotify.declareNamespace(NameSpaceConstants.WSA_NS);
        OMElement notificationMesssageEl = factory.createOMElement("NotificationMessage",
                messageToNotify.getNamespace(), messageToNotify);

        notificationMesssageEl.addChild(topicExpEl);
View Full Code Here


        topicExpEl.declareNamespace(NameSpaceConstants.WIDGET_NS);
        topicExpEl.setText(NameSpaceConstants.WIDGET_NS.getPrefix() + ":" + topic);

        OMElement messageToNotify = factory.createOMElement("Notify", NameSpaceConstants.WSNT_NS);
        messageToNotify.declareNamespace(NameSpaceConstants.WSNT_NS);
        messageToNotify.declareNamespace(NameSpaceConstants.WSA_NS);
        OMElement notificationMesssageEl = factory.createOMElement("NotificationMessage",
                messageToNotify.getNamespace(), messageToNotify);

        notificationMesssageEl.addChild(topicExpEl);
View Full Code Here

        factory.createOMText(messageEl, textQName);

        if (qn.getPrefix() != null) {
            OMNamespace ns = factory.createOMNamespace(qn.getNamespaceURI(), qn.getPrefix());
            messageEl.declareNamespace(ns);
        }

        ServiceClient client = new ServiceClient();

        if (client.getAxisConfiguration().getModule(WsmgCommonConstants.AXIS_MODULE_NAME_ADDRESSING) != null) {
View Full Code Here

            if (topicExpression != null) {
                OMElement topicExpEl = factory.createOMElement("TopicExpression", NameSpaceConstants.WSNT_NS, message);

                topicExpEl.addAttribute("Dialect", WsmgCommonConstants.TOPIC_EXPRESSION_SIMPLE_DIALECT,
                        NameSpaceConstants.WSNT_NS);
                topicExpEl.declareNamespace(NameSpaceConstants.WIDGET_NS);
                topicExpEl.setText(NameSpaceConstants.WIDGET_NS.getPrefix() + ":" + topicExpression);
            }

            if (xpathExpression != null) {
                OMElement xpathExpEl = factory.createOMElement("Selector", NameSpaceConstants.WSNT_NS, message);
View Full Code Here

                throws AxisFault {
            OMFactory factory = OMAbstractFactory.getOMFactory();

            OMElement topicExpEl = factory.createOMElement("Topic", NameSpaceConstants.WSNT_NS);
            topicExpEl.addAttribute("Dialect", WsmgCommonConstants.TOPIC_EXPRESSION_SIMPLE_DIALECT, null);
            topicExpEl.declareNamespace(NameSpaceConstants.WIDGET_NS);
            topicExpEl.setText(NameSpaceConstants.WIDGET_NS.getPrefix() + ":" + topic);

            OMElement messageToNotify = factory.createOMElement("Notify", NameSpaceConstants.WSNT_NS);
            messageToNotify.declareNamespace(NameSpaceConstants.WSNT_NS);
            messageToNotify.declareNamespace(NameSpaceConstants.WSA_NS);
View Full Code Here

            topicExpEl.addAttribute("Dialect", WsmgCommonConstants.TOPIC_EXPRESSION_SIMPLE_DIALECT, null);
            topicExpEl.declareNamespace(NameSpaceConstants.WIDGET_NS);
            topicExpEl.setText(NameSpaceConstants.WIDGET_NS.getPrefix() + ":" + topic);

            OMElement messageToNotify = factory.createOMElement("Notify", NameSpaceConstants.WSNT_NS);
            messageToNotify.declareNamespace(NameSpaceConstants.WSNT_NS);
            messageToNotify.declareNamespace(NameSpaceConstants.WSA_NS);
            OMElement notificationMesssageEl = factory.createOMElement("NotificationMessage",
                    messageToNotify.getNamespace(), messageToNotify);

            notificationMesssageEl.addChild(topicExpEl);
View Full Code Here

            topicExpEl.declareNamespace(NameSpaceConstants.WIDGET_NS);
            topicExpEl.setText(NameSpaceConstants.WIDGET_NS.getPrefix() + ":" + topic);

            OMElement messageToNotify = factory.createOMElement("Notify", NameSpaceConstants.WSNT_NS);
            messageToNotify.declareNamespace(NameSpaceConstants.WSNT_NS);
            messageToNotify.declareNamespace(NameSpaceConstants.WSA_NS);
            OMElement notificationMesssageEl = factory.createOMElement("NotificationMessage",
                    messageToNotify.getNamespace(), messageToNotify);

            notificationMesssageEl.addChild(topicExpEl);
View Full Code Here

                    int count = reader.getNamespaceCount();
                    for (int i = 0; i < count; i++) {
                        String prefix = reader.getNamespacePrefix(i);
                        String ns = reader.getNamespaceURI(i);
                        child.declareNamespace(ns, prefix);
                    }

                    if(!"".equals(name.getNamespaceURI())) {
                        child.declareNamespace(name.getNamespaceURI(), name.getPrefix());
                    }
View Full Code Here

                        String ns = reader.getNamespaceURI(i);
                        child.declareNamespace(ns, prefix);
                    }

                    if(!"".equals(name.getNamespaceURI())) {
                        child.declareNamespace(name.getNamespaceURI(), name.getPrefix());
                    }

                    // add the attributes for this element
                    count = reader.getAttributeCount();
                    for (int i = 0; i < count; i++) {
View Full Code Here

                        String qname = reader.getAttributeLocalName(i);
                        String value = reader.getAttributeValue(i);
                       
                        if (ns != null) {
                            child.addAttribute(qname, value, fac.createOMNamespace(ns, prefix));
                            child.declareNamespace(ns, prefix);
                        } else {
                            child.addAttribute(qname, value, null);
                        }
                    }
                    current = child;
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.