PublishXmlDoc

Mon 01 January 2018

Syntax

PublishXmlDoc(&XmlDoc, Message.MessageName [, Node.NodeName])

Description

Use the PublishXmlDoc function to send an asynchronous message that is based on an XmlDoc object.

Note: This function has been deprecated and remains for backward compatibility only. Use the IntBroker class Publish method instead.

The XmlDoc object must already be instantiated and populated. The message included in the function call should be an unstructured message, that is, one that isn't based on a hierarchical record structure.

If you want to retrieve an XmlDoc message that was sent asynchronously, use the GetMessageXmlDoc built-in function.

If you want to handle an XmlDoc as a Message object, you need to define a Message object with a hierarchical structure and migrate the data in the XmlDoc object into the Message object.

Parameters

Field or Control

Definition

&XmlDoc

Specify an already instantiated and populated XmlDoc object that you want to send as an asynchronous message.

MessageName

Specify an already existing nonrowset-based message, prefaced with the reserved word Message .

NodeName

Specify a node. This is for Sender Specified Routing (SSR), prefixed with the reserved word Node . The node defines the target for the published message.

Returns

A Boolean value: True if the message was successfully published, False otherwise.