MessageOrder

public class MessageOrder extends HeaderElement

An ebXML MessageOrder in the SOAP Header of a HeaderContainer [ebMSS 9.1].

Author:tslam

Fields

ATTRIBUTE_STATUS

static final String ATTRIBUTE_STATUS

Name of the status attribute

ELEMENT_SEQUENCE_NUMBER

static final String ELEMENT_SEQUENCE_NUMBER

SequenceNumber element name

MESSAGE_ORDER

static final String MESSAGE_ORDER

MessageOrder element name

STATUS_CONTINUE

public static final int STATUS_CONTINUE

Subsequent messages in the conversation and the sequence number is not reset.

STATUS_RESET

public static final int STATUS_RESET

First mesage in conversation / reset the sequence number counter.

VALUE_STATUS_CONTINUE

static final String VALUE_STATUS_CONTINUE

Name of the “Continue” status

VALUE_STATUS_RESET

static final String VALUE_STATUS_RESET

Name of the “Reset” status

Constructors

MessageOrder

MessageOrder(SOAPEnvelope soapEnvelope, int status, int sequenceNo)

Constructs a MessageOrder with the given mandatory fields.

Parameters:
  • soapEnvelopeSOAPEnvelope, the header container of which the MessageOrder is attached to.
  • status – Status of the sequence number.
  • sequenceNo – The sequence number in the converstaion.
Throws:
  • SOAPException

MessageOrder

MessageOrder(SOAPEnvelope soapEnvelope, SOAPElement soapElement)

Constructs an MessageOrder object by parsing the given SOAPElement.

Parameters:
  • soapEnvelopeSOAPEnvelope, the header container of which the MessageOrder is attached to.
  • soapElementSOAPElement containing SequenceNumber element.
Throws:
  • SOAPException

Methods

getSequenceNumber

public int getSequenceNumber()

Get the sequence number in the conversation. Note that although the word “conversation” is used in the specification, the sequence number is set and incremented by one party only. It means that both parties need to keep their own sequence numbers for all outgoing messages.

Returns:sequence number.

getStatus

public int getStatus()

Get the status of the sequence number which can be “Reset” or “Continue”.

Returns:Status of the sequence number.