Package org.apache.axiom.om

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


            property));
      }
      Boolean ignoreUncited = (Boolean) this.options
          .get(WSDL2Constants.ATTR_WHTTP_IGNORE_UNCITED);
      if (ignoreUncited != null) {
        bindingOpElement.addAttribute(omFactory.createOMAttribute(
            WSDL2Constants.ATTRIBUTE_IGNORE_UNCITED, whttp,
            ignoreUncited.toString()));
      }
      property = (String) this.options
          .get(WSDL2Constants.ATTR_WHTTP_METHOD);
View Full Code Here


            ignoreUncited.toString()));
      }
      property = (String) this.options
          .get(WSDL2Constants.ATTR_WHTTP_METHOD);
      if (property != null) {
        bindingOpElement.addAttribute(omFactory.createOMAttribute(
            WSDL2Constants.ATTRIBUTE_METHOD, whttp, property));
      }
    }

    // Common properties
View Full Code Here

    // Common properties
    property = (String) this.options
        .get(WSDL2Constants.ATTR_WHTTP_LOCATION);
    if (property != null) {
      bindingOpElement.addAttribute(omFactory.createOMAttribute(
          WSDL2Constants.ATTRIBUTE_LOCATION, whttp, property));
    }
    property = (String) this.options
        .get(WSDL2Constants.ATTR_WHTTP_CONTENT_ENCODING);
    if (property != null) {
View Full Code Here

    }
    property = (String) this.options
        .get(WSDL2Constants.ATTR_WHTTP_CONTENT_ENCODING);
    if (property != null) {
      bindingOpElement
          .addAttribute(omFactory.createOMAttribute(
              WSDL2Constants.ATTRIBUTE_CONTENT_ENCODING, whttp,
              property));
    }
    property = (String) this.options
        .get(WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR);
View Full Code Here

              property));
    }
    property = (String) this.options
        .get(WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR);
    if (property != null) {
      bindingOpElement.addAttribute(omFactory.createOMAttribute(
          WSDL2Constants.ATTRIBUTE_QUERY_PARAMETER_SEPERATOR, whttp,
          property));
    }
   
    // Add the input element
View Full Code Here

    }

    protected void setMustUnderstand(OMElement headerElement, OMNamespace omNamespace) {
        OMFactory omFactory = OMAbstractFactory.getOMFactory();
        OMAttribute mustUnderstandAttribute =
                omFactory.createOMAttribute(SOAP12Constants.ATTR_MUSTUNDERSTAND, omNamespace,
                                            "true");
        headerElement.addAttribute(mustUnderstandAttribute);
    }

    protected void addHeader(OMElement omElementToadd,
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

    OMFactory factory = sequenceAckElement.getOMFactory();
    if (factory==null)
      factory = defaultFactory;
   
    OMAttribute lowerAttrib = factory.createOMAttribute(
        Sandesha2Constants.WSRM_COMMON.LOWER, null, Long.toString(lowerValue));
    OMAttribute upperAttrib = factory.createOMAttribute(
        Sandesha2Constants.WSRM_COMMON.UPPER, null, Long.toString(upperValue));

    OMNamespace rmNamespace = factory.createOMNamespace(namespaceValue,Sandesha2Constants.WSRM_COMMON.NS_PREFIX_RM);
View Full Code Here

    if (factory==null)
      factory = defaultFactory;
   
    OMAttribute lowerAttrib = factory.createOMAttribute(
        Sandesha2Constants.WSRM_COMMON.LOWER, null, Long.toString(lowerValue));
    OMAttribute upperAttrib = factory.createOMAttribute(
        Sandesha2Constants.WSRM_COMMON.UPPER, null, Long.toString(upperValue));

    OMNamespace rmNamespace = factory.createOMNamespace(namespaceValue,Sandesha2Constants.WSRM_COMMON.NS_PREFIX_RM);
    OMElement acknowledgementRangeElement = factory.createOMElement(Sandesha2Constants.WSRM_COMMON.ACK_RANGE, rmNamespace);
   
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

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.