I am using a REST service client plugin in Mozilla firefox to execute the REST URI for rnabling storage analytics. Also I tried to execute the REST URI using a java program. but both give me now 403 error - Forbidden for the authentication failure.
The other thing is, i want to do all these things using java client libs of azure and not the .net or c#.
Also, as one of the folks asked me abt azure storage explorere -let me clear here that i am able to exploere my storage account using Azure storage explorer. that is not a problem. there is no confusion on that.
I am using following request properties in my REST service call in order to enable the storage analytic
{"requestUrl":"http://<myaccount>.table.core.windows.net/?restype=service&comp=properties",
"requestMethod":"PUT",
"requestBody":"
<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<StorageServiceProperties>\n <Logging>\n <Version>1.0</Version>\n <Delete>true</Delete>\n
<Read>false</Read>\n <Write>true</Write>\n <RetentionPolicy>\n <Enabled>true</Enabled>\n
<Days>7</Days>\n </RetentionPolicy>\n </Logging>\n <Metrics>\n <Version>1.0</Version>\n
<Enabled>true</Enabled>\n <IncludeAPIs>false</IncludeAPIs>\n <RetentionPolicy>\n <Enabled>true</Enabled>\n
<Days>7</Days>\n </RetentionPolicy>\n </Metrics>\n</StorageServiceProperties>","headers":["Authorization","SharedKey <myaccountname>:<myaccountkey>","x-ms-version","2011-08-18","x-ms-date","Sun,
25 Sep 2011 22:50:32 GMT","Range","","If-Unmodified-Since","","If-None-Match","","If-Match","","If-Modified-Since","","Date","","Content-Type","","Content-MD5","","Content-Length","","Content-Language","","Content-Encoding",""]}
I tried to use fiddler for checking my http request -response details..did not get a root cause yet..I get 403 forbidden with the message of "Authentication failed..." while the same credentials do work for azure storage explorer.
I am not sure if i am making any mistakes on calling the REST API..
Please do ask for the details if you need to resolve my problem