ExchangeMessageReader

Properties:

MessageNo
ReceivedNo
Sender
XMLReader

Methods:

BeginRead
CancelRead
EndRead

Description:

Use for receiving data exchange messages. When reading begins, it checks whether or not the message header attributes are correct and discards incorrect messages. When reading is complete, the object modifies the ReceivedNo attribute of the corresponding exchange plan node in relation to the number of the message received.

Availability:

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

Example:

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

See also:

ExchangePlansManager, method CreateMessageReader
ExchangePlansManager, method ReadChanges

    

1C:Enterprise Developer's Community