Package org.apache.axiom.om

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


        OMNamespace emptyNs = fac.createOMNamespace("", "");

        OMElement validateRequestEle = fac.createOMElement("ValidateRequest",
                ns);
        validateRequestEle.declareNamespace(Constants.SignatureSpecNS, "ds");
        validateRequestEle.declareNamespace(
                "http://www.w3.org/2001/04/xmlenc#", "xenc");
        validateRequestEle.addAttribute("Id",
                "Ie26380bfeb9d0c5bc526d5213a162d46", emptyNs);
        validateRequestEle.addAttribute("Service",
                "http://www.example.org/XKMS", emptyNs);
View Full Code Here


        OMFactory fac = DOOMAbstractFactory.getOMFactory();
        OMNamespace ns = fac.createOMNamespace(XKMS2Constants.XKMS2_NS, "");
        OMNamespace emptyNs = fac.createOMNamespace("", "");

        OMElement validateResultEle = fac.createOMElement("ValidateResult", ns);
        validateResultEle.declareNamespace(Constants.SignatureSpecNS, "ds");
        validateResultEle.declareNamespace("http://www.w3.org/2001/04/xmlenc#",
                "xenc");
        validateResultEle.addAttribute("Id",
                "I34ef61b96f7db2250c229d37a17edfc0", emptyNs);
        validateResultEle.addAttribute("Service",
View Full Code Here

        OMNamespace ns = fac.createOMNamespace(XKMS2Constants.XKMS2_NS, "");
        OMNamespace emptyNs = fac.createOMNamespace("", "");

        OMElement validateResultEle = fac.createOMElement("ValidateResult", ns);
        validateResultEle.declareNamespace(Constants.SignatureSpecNS, "ds");
        validateResultEle.declareNamespace("http://www.w3.org/2001/04/xmlenc#",
                "xenc");
        validateResultEle.addAttribute("Id",
                "I34ef61b96f7db2250c229d37a17edfc0", emptyNs);
        validateResultEle.addAttribute("Service",
                "http://www.example.org/XKMS", emptyNs);
View Full Code Here

        OMFactory fac = DOOMAbstractFactory.getOMFactory();
        OMNamespace ns = fac.createOMNamespace(XKMS2Constants.XKMS2_NS, "");
        OMNamespace emptyNs = fac.createOMNamespace("", "");

        OMElement locateResultEle = fac.createOMElement("LocateResult",ns);
        locateResultEle.declareNamespace(Constants.SignatureSpecNS,"ds");
        locateResultEle.declareNamespace("http://www.w3.org/2001/04/xmlenc#","xenc");
        locateResultEle.addAttribute("Id","I04cd4f17d0656413d744f55488369264",emptyNs);
        locateResultEle.addAttribute("Service","http://www.example.org/XKMS",emptyNs);
        locateResultEle.addAttribute("ResultMajor",ResultMajor.SUCCESS.getAnyURI(),emptyNs);
        locateResultEle.addAttribute("RequestId","I045c66f6c525a9bf3842ecd3466cd422",emptyNs);
View Full Code Here

        OMNamespace ns = fac.createOMNamespace(XKMS2Constants.XKMS2_NS, "");
        OMNamespace emptyNs = fac.createOMNamespace("", "");

        OMElement locateResultEle = fac.createOMElement("LocateResult",ns);
        locateResultEle.declareNamespace(Constants.SignatureSpecNS,"ds");
        locateResultEle.declareNamespace("http://www.w3.org/2001/04/xmlenc#","xenc");
        locateResultEle.addAttribute("Id","I04cd4f17d0656413d744f55488369264",emptyNs);
        locateResultEle.addAttribute("Service","http://www.example.org/XKMS",emptyNs);
        locateResultEle.addAttribute("ResultMajor",ResultMajor.SUCCESS.getAnyURI(),emptyNs);
        locateResultEle.addAttribute("RequestId","I045c66f6c525a9bf3842ecd3466cd422",emptyNs);
View Full Code Here

    public SubscriptionStub subscribe(EndpointReference consumerReference, OMElement topicExpression,
            OMElement xpathExpression, boolean useNotfy, boolean wsrm) throws AxisFault {

        OMElement message = factory.createOMElement("SubscribeRequest", NameSpaceConstants.WSNT_NS);

        message.declareNamespace(NameSpaceConstants.WSNT_NS);

        OMElement eprCrEl = EndpointReferenceHelper.toOM(factory, consumerReference, new QName("ConsumerReference"),
                NameSpaceConstants.WSA_NS.getNamespaceURI());

        message.addChild(eprCrEl);
View Full Code Here

        OMElement topicExpressionEl = null;

        if (topic != null) {
            topicExpressionEl = factory.createOMElement("Topic", NameSpaceConstants.WSNT_NS);
            topicExpressionEl.addAttribute("Dialect", WsmgCommonConstants.TOPIC_EXPRESSION_SIMPLE_DIALECT, null);
            topicExpressionEl.declareNamespace(NameSpaceConstants.WIDGET_NS);
            topicExpressionEl.setText(WIDGET_NS_PREFIX + topic);

        }

        try {
View Full Code Here

            filterEl = factory.createOMElement("Filter", NameSpaceConstants.WSE_NS);

            filterEl.addAttribute("Dialect", WsmgCommonConstants.TOPIC_AND_XPATH_DIALECT, null);
            OMElement topicExpressionEl = factory.createOMElement("TopicExpression", NameSpaceConstants.WSNT_NS);
            topicExpressionEl.addAttribute("Dialect", WsmgCommonConstants.TOPIC_EXPRESSION_SIMPLE_DIALECT, null);
            topicExpressionEl.declareNamespace(NameSpaceConstants.WIDGET_NS);
            topicExpressionEl.setText(NameSpaceConstants.WIDGET_NS.getPrefix() + ":" + topicExpression);
            filterEl.addChild(topicExpressionEl);
            OMElement xpathEl = factory.createOMElement("MessageContent", NameSpaceConstants.WSNT_NS);
            xpathEl.addAttribute("Dialect", WsmgCommonConstants.XPATH_DIALECT, null);
            xpathEl.setText(xpathExpression);
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

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.