SendMessage (SOAP)

The SendMessage action delivers a message to the specified queue. The content of the message is specified in the MessageBody parameter and can be any alphanumeric string.

SendMessage requests are validated on the following:

Returns Success and a string representing the ID of the message sent, which you use as the value of the MessageId parameter when performing actions on that message. This action returns an error response if unsuccessful.

NameDescriptionTypeValue
MessageBody Required. A string representing the body of the message to send. The total string length of the message body cannot exceed 256K.An alphanumeric stringThe content of the message. The message can contain any valid string character, but must be URL-encoded so that the string does not contain any characters that would not be valid in an HTTP URL.

The following example SendMessage request sends a message containing "Your message text" as the body of the message to the specified queue.

ErrorDescription
MissingParameterNo value for MessageBody was supplied.
InvalidURIThe URL for the queue is not valid, or was not an URL returned by a CreateQueue or ListQueues request.
AWS.SimpleQueueService.NonExistentQueueQueue does not exist.