ExchangeMessageWriter.EndWrite

Syntax:

EndWrite()

Description:

Executes normal completion of message writing.
On normal completion an XML element end tag is written to mark the body of the message, and the number of the data exchange message number is recorded in the node's message exchange pattern . The node's exchange pattern releases the blocking state and the message is considered to be sent.

Availability:

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

Example:

RecordOfMessage = ExchangePlans.CreateMessageWriter();
XMLWriter = New XMLWriter;
XMLWriter.OpenFile(FileName);
RecordOfMessage.BeginWrite(XMLWriter, Recipient);
// Writing message body
RecordOfMessage.EndWrite();


    

1C:Enterprise Developer's Community