This function takes the following parameters:
The notification message as an XML string.
Length of the notification message.