ExchangeMessageReader.BeginRead

Syntax:

BeginRead(<ReadXML>, <PermissibleMessageNumber>)

Parameters:

<ReadXML> (required)

Type: DOMNodeReader, FastInfosetReader, XMLReader.
Object, through which the message is read.

<PermissibleMessageNumber> (optional)

Type: AllowedMessageNo.
Permissible message number that can be processed by the BeginRead method.
Default value: Greater.

Description:

Reads the data exchange message header and checks the data contained in the heading. If any data are shown incorrectly (an unknown exchange plan is assigned, the node shown is not on the exchange plan, the message number is not the one expected) an exception is initiated.
When the message starts to be read, the writing to the database corresponding to the exchange plan node is locked in order to prevent other message read and write operations on the node in question from being performed while the message is being read. Moreover, modifications cannot be made to the node data during this time.

Availability:

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

Example:

ReadingMessage = ExchangePlans.CreateMessageReader();
XMLReader = New XMLReader;
XMLReader.OpenFile(FileName);
ReadingMessage.BeginRead(XMLReader, AllowedMessageNo.Next);


    

1C:Enterprise Developer's Community