skip to main content
OpenEdge Development: ADM Reference
Messaging Objects and Their Methods and Properties : Methods for router messaging objects
 
Methods for router messaging objects
This section lists and describes the methods for router Messaging objects.
createDocument
Creates an empty document.
Location: router.p
Parameters: None
Returns: LOGICAL
Note: Override of xml.p that does not delete the current document.
initializeObject
Procedure that initializes objects of class Router.
Location: router.p
Parameters: None
Notes: None
internalSchemaFile
Returns the internal Schema filename based on the external and internal file reference definitions.
Location: router.p
Parameters:  
INPUT pcNameSpace AS CHAR
Target Namespace, the XMLNS attribute from the incoming XML document.
Returns: CHARACTER (filename)
Notes: None
obtainInMsgTarget
Procedure that gets the handle of the incoming message and starts some container (containing, for example, a SmartB2BObject and a business object such as a SmartDataObject). It then returns the handle of the INMESSAGE-TARGET from that container.
Location: router.p
Parameters:  
INPUT phMessage AS HANDLE
OUTPUT phInMessageTarget AS HANDLE
Notes: None
processFileRefs
Procedure that creates tFileReference temp-table records from ExternalRefList and InternalRefList property values.
Location: router.p
Parameters: None
Notes: None
routeBytesMessage
Procedure that takes a procedure that has a BytesMessage, loads the message, and sends the document to a SmartB2BObject.
Location: router.p
Parameters:  
INPUT phMessage AS HANDLE
A procedure handle to the object with the BytesMessage and a corresponding getMemptr function to retrieve the message.
OUTPUT phInMessageTarget AS HANDLE
The procedure handle of the SmartB2BObject.
Note: Used for backward compatibility, but it is possible to override if message type requires a different routing. See obtainInMsgTarget (router.p) for details.
routeDocument
Procedure that routes the documentHandle to a SmartB2BObject, including starting the SmartContainer with the SmartB2B if required, and giving it the loaded schema.
Location: router.p
Parameters:  
OUTPUT pohInMessageTarget AS HANDLE
The SmartB2B that received the document.
Notes: None
routeMessage
Procedure that takes a procedure that has a message, loads the message, and sends the document to a B2B object and returns its handle.
Location: router.p
Parameters:  
INPUT phMessage AS HANDLE
A procedure handle to the object with the JMS message or any object with getMessageType and a corresponding get function to retrieve the message.
OUTPUT pohInMessageTarget AS HANDLE
The procedure handle of the SmartB2B that received the document.
Note: Called directly from obtainInMesages or from specific route MessageType procedures.
startB2BObject
Starts the Container with the SmartB2BObject, links it to the consumer, and returns its handle.
Location: router.p
Parameters:  
INPUT pcContainer AS CHARACTER
Returns: HANDLE of the container.
Notes: None