MessageOrder¶
-
public class
MessageOrder
extends HeaderElement¶ An ebXML
MessageOrder
in the SOAP Header of aHeaderContainer
[ebMSS 9.1].Author: tslam
Fields¶
STATUS_CONTINUE¶
-
public static final int
STATUS_CONTINUE
¶ Subsequent messages in the conversation and the sequence number is not reset.
Constructors¶
MessageOrder¶
-
MessageOrder
(SOAPEnvelope soapEnvelope, int status, int sequenceNo)¶ Constructs a
MessageOrder
with the given mandatory fields.Parameters: - soapEnvelope –
SOAPEnvelope
, the header container of which theMessageOrder
is attached to. - status – Status of the sequence number.
- sequenceNo – The sequence number in the converstaion.
Throws: - SOAPException –
- soapEnvelope –
MessageOrder¶
-
MessageOrder
(SOAPEnvelope soapEnvelope, SOAPElement soapElement)¶ Constructs an
MessageOrder
object by parsing the givenSOAPElement
.Parameters: - soapEnvelope –
SOAPEnvelope
, the header container of which theMessageOrder
is attached to. - soapElement –
SOAPElement
containing SequenceNumber element.
Throws: - SOAPException –
- soapEnvelope –
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.