I'm building a Xamarin client that reads messages from the Azure Service Bus.
My REST code can successfully pull a message off the Service Bus, but what I'm getting back appears to be binary (as in non-Text...I know it's all binary ;) )
This is the test code on Windows:
byte[] response = webClient.UploadData(fullAddress, "DELETE", new byte[0]);
MemoryStream ms = new MemoryStream(response);
BrokeredMessage bm = new BrokeredMessage(ms);
responseStr = bm.GetBody<string>();
My problem is on Xamarin/Mono, I don't have a BrokeredMessage.
So my question is how to I de-serialize a BrokeredMessage by hand?
Here's the first few bytes of the response variable looks like:
40 06 73 74 72 69 6e 67 08 33 68 74 74 70 3a 2f 2f 73 63 68
All the examples, I've found, say that I should be getting back XML....it 'almost' looks like XML but the 06 and the 08 are throwing me off.
I'm sure that I'm missing something simple, but I can't find it.
Any guidance would be welcome.