at the scripts section of the UCS forum of developer.cisco.com there are two scripts which subscribe to the eventchannel. Both are written in Perl but it should at least point you in the right direction of generating the required XML.
Getting Started
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: