Message Objects

InMessage and OutMessage are extendable COM objects.

InMessage

This is an incoming message. Whenever a bus adapter receives an incoming message, it transfers the message to the communication component. This fires a COM event with the message as the parameter.

OutMessage

This is an outgoing message. It is created using the CreateOutMessage function on the Navision Communication Component object, or by using the CreateReply method on the InMessage object. To add contents to the message, the save method on the Microsoft XML DOM (or any other object that can write to a COM IStream interface) can write data directly to the message.

When sending a message, you must choose either to wait for the message to be handed over to the message transportation service, or to wait for a response from the recipient of the message.

More information:

IInMessage Interface

IOutMessage Interface