Language Reference - XML - Sending Data Messages


The message to be sent is represented by an XML Message Out object. Attributes of the XML Message Out object are used to decide the destination of the message, the CCOM type of the data message (Data or Event), the origin of the publication (i.e., JGrafchart), etc.

To send a data message the following steps are performed:

  1. The content of the message is built up using ordinary actions. For example, the values of the different elements and attributes within the XML Message out object are set using assignment actions.
  2. The necessary XML Message out attributes are set either interactively or programmatically.
  3. The message is sent by calling the method sendMessage() of the XML Message Out object. When this is done an XML Message structure is created from the XML Message Out object. The XML Message is embedded in an CCOM envelope and then send to the CCOM server.