Package org.apache.axiom.om

Examples of org.apache.axiom.om.OMFactory.createOMAttribute()


    OMElement str = factory.createOMElement("SecurityTokenReference", secNS);
   
    OMElement ref = factory.createOMElement("Reference", secNS);
    str.addChild(ref);
   
    OMAttribute uriAttr = factory.createOMAttribute("URI", null, uri);
    OMAttribute typeAttr = factory.createOMAttribute("ValueType", null, type);
   
    ref.addAttribute(uriAttr);
    ref.addAttribute(typeAttr);
   
View Full Code Here


   
    OMElement ref = factory.createOMElement("Reference", secNS);
    str.addChild(ref);
   
    OMAttribute uriAttr = factory.createOMAttribute("URI", null, uri);
    OMAttribute typeAttr = factory.createOMAttribute("ValueType", null, type);
   
    ref.addAttribute(uriAttr);
    ref.addAttribute(typeAttr);
   
    log.debug("Exit: UnitTestSecurityManager::createSecurityTokenReference " + str);
View Full Code Here

                factory.createOMNamespace("http://schemas.xmlsoap.org/ws/2004/08/eventing", "wse");

        if (mode.equals("subscribe")) {
            OMElement subscribeOm = factory.createOMElement("Subscribe", nswse);
            OMElement deliveryOm = factory.createOMElement("Delivery", nswse);
            deliveryOm.addAttribute(factory.createOMAttribute("Mode", null,
                    "http://schemas.xmlsoap.org/ws/2004/08/eventing/DeliveryModes/Push"));
            OMElement notifyToOm = factory.createOMElement("NotifyTo", nswse);
            OMElement addressOm = factory.createOMElement("Address", nswsa);
            factory.createOMText(addressOm, address);
            OMElement expiresOm = factory.createOMElement("Expires", nswse);
View Full Code Here

            OMElement addressOm = factory.createOMElement("Address", nswsa);
            factory.createOMText(addressOm, address);
            OMElement expiresOm = factory.createOMElement("Expires", nswse);
            factory.createOMText(expiresOm, expires);
            OMElement filterOm = factory.createOMElement("Filter", nswse);
            filterOm.addAttribute(factory.createOMAttribute("Dialect", null,
                    "http://synapse.apache.org/eventing/dialect/topicFilter"));
            factory.createOMText(filterOm, topic);


            notifyToOm.addChild(addressOm);
View Full Code Here

        OMElement element1 = factory.createOMElement(new QName("a"));
        element1.declareNamespace(ns1);
        OMElement element2 = factory.createOMElement(new QName("b"), element1);
        element2.declareNamespace(ns2);
        OMElement element3 = factory.createOMElement(new QName("c"), element2);
        OMAttribute att = factory.createOMAttribute("attr", ns1, "test");
        element3.addAttribute(att);
        Iterator it = element3.getAllDeclaredNamespaces();
        assertTrue(it.hasNext());
        assertEquals(ns1, it.next());
        assertFalse(it.hasNext());
View Full Code Here

    sequenceElem.setText(sequenceKey);
    echoStringElement.addChild(textElem);
    echoStringElement.addChild(sequenceElem);
   
    OMNamespace namespace = fac.createOMNamespace(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI,"env");
    OMAttribute attr = fac.createOMAttribute("encodingStyle", namespace,"http://schemas.xmlsoap.org/soap/encoding/");
   
    echoStringElement.addAttribute(attr);
   
    return echoStringElement;
  }
View Full Code Here

    OMFactory factory = header.getOMFactory();
    OMNamespace namespace = factory.createOMNamespace(namespaceValue,Sandesha2Constants.WSRM_COMMON.NS_PREFIX_RM);
   
    SOAPHeaderBlock headerBlock = header.addHeaderBlock(Sandesha2Constants.WSRM_COMMON.MESSAGE_PENDING,namespace);
   
    OMAttribute attribute = factory.createOMAttribute(Sandesha2Constants.WSRM_COMMON.PENDING,null,new Boolean (pending).toString());
    headerBlock.addAttribute(attribute);
   
    return headerElement;
  }
View Full Code Here

    OMElement str = factory.createOMElement("SecurityTokenReference", secNS);
   
    OMElement ref = factory.createOMElement("Reference", secNS);
    str.addChild(ref);
   
    OMAttribute uriAttr = factory.createOMAttribute("URI", null, uri);
    OMAttribute typeAttr = factory.createOMAttribute("ValueType", null, type);
   
    ref.addAttribute(uriAttr);
    ref.addAttribute(typeAttr);
   
View Full Code Here

   
    OMElement ref = factory.createOMElement("Reference", secNS);
    str.addChild(ref);
   
    OMAttribute uriAttr = factory.createOMAttribute("URI", null, uri);
    OMAttribute typeAttr = factory.createOMAttribute("ValueType", null, type);
   
    ref.addAttribute(uriAttr);
    ref.addAttribute(typeAttr);
   
    return str;
View Full Code Here

                factory.createOMElement(SecurityTokenReference.SECURITY_TOKEN_REFERENCE,
                                        WSConstants.WSSE_NS,
                                        WSConstants.WSSE_PREFIX);
        OMElement refEle =
                factory.createOMElement(Reference.TOKEN);
        refEle.addAttribute(factory.createOMAttribute(RahasConstants.CancelBindingLocalNames.URI,
                                                      null, tokenId));
        secTokenRefEle.addChild(refEle);
        cancelTargetEle.addChild(secTokenRefEle);

        return rst;
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.