Package org.apache.sandesha2.wsrm

Examples of org.apache.sandesha2.wsrm.CreateSequenceResponse.toOMElement()


      }

    }

    SOAPEnvelope envelope = factory.getDefaultEnvelope();
    response.toOMElement(envelope.getBody());
    outMessage.setWSAAction(SpecSpecificConstants.getCreateSequenceResponseAction(SandeshaUtil.getRMVersion(
        newSequenceID, storageManager)));
    outMessage.setSoapAction(SpecSpecificConstants.getCreateSequenceResponseSOAPAction(SandeshaUtil.getRMVersion(
        newSequenceID, storageManager)));
    outMessage.setProperty(AddressingConstants.WS_ADDRESSING_VERSION, addressingNamespaceValue);
View Full Code Here


      }

    }

    SOAPEnvelope envelope = factory.getDefaultEnvelope();
    response.toOMElement(envelope.getBody());
    outMessage.setWSAAction(SpecSpecificConstants.getCreateSequenceResponseAction(SandeshaUtil.getRMVersion(newSequenceID,configurationContext)));
    outMessage.setSoapAction(SpecSpecificConstants.getCreateSequenceResponseSOAPAction(SandeshaUtil.getRMVersion(newSequenceID,configurationContext)));
    outMessage.setProperty(AddressingConstants.WS_ADDRESSING_VERSION,addressingNamespaceValue);
   
    String newMessageId = SandeshaUtil.getUUID();
View Full Code Here

      }

    }

    SOAPEnvelope envelope = factory.getDefaultEnvelope();
    response.toOMElement(envelope.getBody());
    outMessage
        .setWSAAction(Sandesha2Constants.WSRM.Actions.ACTION_CREATE_SEQUENCE_RESPONSE);
    outMessage
        .setSoapAction(Sandesha2Constants.WSRM.Actions.SOAP_ACTION_CREATE_SEQUENCE_RESPONSE);
View Full Code Here

      }
    }

    applicationMsg.setMessagePart(Sandesha2Constants.MessageParts.SEQ_ACKNOWLEDGEMENT, sequenceAck);

    sequenceAck.toOMElement(envelope.getHeader());
   
    if (applicationMsg.getWSAAction()==null) {
      applicationMsg.setAction(SpecSpecificConstants.getSequenceAcknowledgementAction(SandeshaUtil.getRMVersion(
          sequenceId, storageManager)));
      applicationMsg.setSOAPAction(SpecSpecificConstants.getSequenceAcknowledgementSOAPAction(SandeshaUtil
View Full Code Here

              OMElement ackElement = (OMElement) iter.next();

              SequenceAcknowledgement sequenceAcknowledgement = new SequenceAcknowledgement (Sandesha2Constants.SPEC_NS_URIS[i]);
              sequenceAcknowledgement.fromOMElement(ackElement);
             
              sequenceAcknowledgement.toOMElement(appMsgHeaders);
              acks = true;
            }
          }
        }
       
View Full Code Here

      data.setSubcode(Sandesha2Constants.SOAPFaults.Subcodes.INVALID_ACKNOWLEDGEMENT);
      data.setReason(reason);
     
      SOAPFactory factory = SOAPAbstractFactory.getSOAPFactory(SOAPVersion);
      OMElement dummyElement = factory.createOMElement("dummyElem",null);
      sequenceAcknowledgement.toOMElement(dummyElement);
     
      OMElement sequenceAckElement = dummyElement.getFirstChildWithName(
          new QName (Sandesha2Constants.WSRM_COMMON.SEQUENCE_ACK));
      data.setDetail(sequenceAckElement);
View Full Code Here

      }
    }

    applicationMsg.setMessagePart(Sandesha2Constants.MessageParts.SEQ_ACKNOWLEDGEMENT,sequenceAck);
   
    sequenceAck.toOMElement(envelope.getHeader());
    applicationMsg
        .setAction(SpecSpecificConstants.getSequenceAcknowledgementAction(SandeshaUtil.getRMVersion(sequenceId,ctx)));
    applicationMsg
        .setSOAPAction(SpecSpecificConstants.getSequenceAcknowledgementSOAPAction(SandeshaUtil.getRMVersion(sequenceId,ctx)));
    applicationMsg.setMessageId(SandeshaUtil.getUUID());
View Full Code Here

    while (iterator.hasNext()) {
      AcknowledgementRange ackRange = (AcknowledgementRange) iterator.next();
      sequenceAck.addAcknowledgementRanges(ackRange);
    }

    sequenceAck.toOMElement(envelope.getHeader());
    applicationMsg
        .setAction(Sandesha2Constants.WSRM.Actions.ACTION_SEQUENCE_ACKNOWLEDGEMENT);
    applicationMsg
        .setSOAPAction(Sandesha2Constants.WSRM.Actions.SOAP_ACTION_SEQUENCE_ACKNOWLEDGEMENT);
    applicationMsg.setMessageId(SandeshaUtil.getUUID());
View Full Code Here

        data.setSubcode(Sandesha2Constants.SOAPFaults.Subcodes.INVALID_ACKNOWLEDGEMENT);
        data.setReason(reason);

        SOAPFactory factory = SOAPAbstractFactory.getSOAPFactory(SOAPVersion);
        OMElement dummyElement = factory.createOMElement("dummyElem", null);
        sequenceAcknowledgement.toOMElement(dummyElement);

        OMElement sequenceAckElement = dummyElement.getFirstChildWithName(new QName(
            Sandesha2Constants.WSRM_COMMON.SEQUENCE_ACK));
        data.setDetail(sequenceAckElement);
View Full Code Here

      faultCode.setDetailOMElement(faultData.getDetail());
      faultCode.setExtendedDetailOMElement(faultData.getDetail2());
    }
    sequenceFault.setFaultCode(faultCode);
   
    sequenceFault.toOMElement(faultMessageContext.getEnvelope().getHeader());
  }

  /**
   * Building the envelope with SOAP 1.1
   *
 
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.