I had to work a bit with the REST API for the Azure Service Bus, I will save you guys the trouble of copying the silverlight chat example provided in the accepted answer and give you the actual reduction.
You need only two things:
1) BrokerProperties HTTP request header is not equivalent to BrokeredMessage.Properties collection
The BrokeredMessage object property dictionary is a set of custom properties, while the BrokerProperties HTTP request header specifies built-in properties typically associated with BrokeredMessage, such as Label, TimeToLive, etc.
2) All custom HTTP request headers are treated as custom properties
From MSDN: in addition to these properties (BrokerProperties link), you can specify custom properties. If one message is sent or received, each custom property is placed in its own HTTP header. If a message packet is sent, custom properties are part of the HTTP body encoded by JSON.
So this means that all you have to do to add your custom properties is to add a title, for example:
public static void SendMessageHTTP(string bodyContent, params KeyValuePair<string,object>[] properties) {
The MSDN link at the endpoint of the send API and an introduction to the REST API itself are considered very useful (here we are talking about custom properties). There's also an article with sample code here on the Azure Website documentation .
source share