Package org.apache.axiom.om

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


                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 = 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

              SandeshaMessageKeys.ackRandDoesNotHaveCorrectValues,
              upperValue + ":" + lowerValue));

    OMFactory factory = sequenceAckElement.getOMFactory();
   
    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

    OMFactory factory = sequenceAckElement.getOMFactory();
   
    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

      Map<String, String> namespaceMap, String serviceName) {
    String property;
    OMFactory omFactory = OMAbstractFactory.getOMFactory();
    OMElement bindingOpElement = omFactory.createOMElement(
        WSDL2Constants.OPERATION_LOCAL_NAME, wsdl);
    bindingOpElement.addAttribute(omFactory.createOMAttribute(
        WSDL2Constants.ATTRIBUTE_REF, null, tns.getPrefix() + ":"
            + this.name.getLocalPart()));

    if (WSDL2Constants.URI_WSDL2_SOAP.equals(type)
        || Constants.URI_SOAP11_HTTP.equals(type)
View Full Code Here

        || Constants.URI_SOAP12_HTTP.equals(type)) {
      // SOAP Binding specific properties
      property = (String) this.options
          .get(WSDL2Constants.ATTR_WSOAP_ACTION);
      if (property != null) {
        bindingOpElement.addAttribute(omFactory.createOMAttribute(
            WSDL2Constants.ATTRIBUTE_ACTION, wsoap, property));
      }
      ArrayList soapModules = (ArrayList) this.options
          .get(WSDL2Constants.ATTR_WSOAP_MODULE);
      if (soapModules != null && soapModules.size() > 0) {
View Full Code Here

        WSDLSerializationUtil.addSOAPModuleElements(omFactory,
            soapModules, wsoap, bindingOpElement);
      }
      property = (String) this.options.get(WSDL2Constants.ATTR_WSOAP_MEP);
      if (property != null) {
        bindingOpElement.addAttribute(omFactory.createOMAttribute(
            WSDL2Constants.ATTRIBUTE_MEP, wsoap, property));
      }
    } else if (WSDL2Constants.URI_WSDL2_HTTP.equals(type)) {

      // HTTP Binding specific properties
View Full Code Here

      // HTTP Binding specific properties
      property = (String) this.options
          .get(WSDL2Constants.ATTR_WHTTP_INPUT_SERIALIZATION);
      if (property != null) {
        bindingOpElement.addAttribute(omFactory.createOMAttribute(
            WSDL2Constants.ATTRIBUTE_INPUT_SERIALIZATION, whttp,
            property));
      }
      property = (String) this.options
          .get(WSDL2Constants.ATTR_WHTTP_OUTPUT_SERIALIZATION);
View Full Code Here

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

            property));
      }
      property = (String) this.options
          .get(WSDL2Constants.ATTR_WHTTP_FAULT_SERIALIZATION);
      if (property != null) {
        bindingOpElement.addAttribute(omFactory.createOMAttribute(
            WSDL2Constants.ATTRIBUTE_FAULT_SERIALIZATION, whttp,
            property));
      }
      Boolean ignoreUncited = (Boolean) this.options
          .get(WSDL2Constants.ATTR_WHTTP_IGNORE_UNCITED);
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.