SendAMQPMessage
Structure
SendAMQPMessage(sHost, sPort, sUser, sPassword, sContainer, sSession, sSender, sTarget, bSSL, sMessage)
Parameters
| Parameter | Type | Description |
|---|---|---|
sHost | String | Host of the server to connect to. |
sPort | String | Port to send the message to. |
sUser | String | User to connect as |
sPassword | String | Password to connect as |
sContainer | String | AMQP container to use |
sSession | String | AMQP session to use |
sSender | String | AMQP sender to use |
sTarget | String | Target Queue to send message to |
bSSL | Boolean | Whether to use SSL when connecting |
sMessage | String | The message to send. |
Return value
"Message Sent." or error message describing the problem sending.
Description
This function connects to a server using the AMQP protocol and attempts to send a message to it.
Example
SendAMQPMessage("localhost", "5672", "", "", "IndyContainer", "IndySession", "IndySender", "DemoTarget", false, "Test message from IndySoft")