ExchangeMessageReader.EndRead

Syntax:

EndRead()

Description:

Attempts to complete reading the message normally. This checks that the message is completed normally. If the end of an XML element is detected, which corresponds to the body of the message, then if the message number exceeds the maximum number of the message received, it places the exchange plan node in the ReceivedNo attribute. The exchange plan node write lock is removed and the message is considered received.

Availability:

Server, thick client, external connection, Mobile application (server).

Note:

Normal completion of reading requires that the EndRead method be called up explicitly. If when the message is read the ExchangeMessageReader object was freed or the BeginRead, method ran again, then the previous reading will be aborted by an implicit call on the CancelRead method.

Example:

ReadingMessage = ExchangePlans.CreateMessageReader();
XMLReader = New XMLReader;
XMLReader.OpenFile(FileName);
ReadingMessage.BeginRead(XMLReader);
// Actions to read message body
ReadingMessage.EndRead();


    

1C:Enterprise Developer's Community