I'm trying insert an item to Azure Table Storage using a shared access key that has been generated using a secured web service (in order to keep the key secure). My problem is that I am getting a 400 (Bad Request) error. Please can someone tell me what I am doing wrong?
I return a Uri with the SaS on it from the service, e.g.
I then add the information for the table to the request stream in the format as specified on Microsoft's website (EXCEPT that the attribute for the Atom namespace is defined as xmlns:a="http://www.w3.org/2005/Atom"):
http://msdn.microsoft.com/en-us/library/windowsazure/dd894033.aspx
I also add: request.Method = "POST"; request.ContentType ="application/atom+xml" x-ms-date is in RFS1123 format
However, I am not setting the Authorization header (which is probably my downfall), because I am presuming the SaS should do the job for me.
So, any pointers would be very gratefully appreciated...!
Forgive me if I've missed any information...
Steve