Quantcast
Channel: Forum SQL Server Database Engine
Viewing all articles
Browse latest Browse all 15889

Windows Azure Table Service Signature Access From Program

$
0
0

i need to access the GET Query Tables operation in Windows Azure through RestApi.I am not able to get the signature of table service under version 2009-10-01.apart from i check all request and url is correct.

i request the authorization, date and version headers here is code

Authorization : SharedKey mystorageaccount:peljtyeewzcc4dbmU7+tgyTwhQcPoBxfuPtBA++UPbuckd7c=

x-ms-date : UTC Current Time

x-ms-version : 2009-09-19

Also i used dataservice version and maxDataService Version Headers.. 

the result is

HTTP/1.1 403 Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.

so i think the signature generation is problem..pls any one help me how to generate sinature for ios.

here is my code

NSURL *url = [NSURL URLWithString:@"https://myaccount.table.core.windows.net/Tables"];
    self.request = [ASIHTTPRequest requestWithURL:url];
    [self.request setDelegate:self];
    [self.request setRequestMethod:@"GET"];
    [self.request setClientCertificateIdentity:identity];
    [self.request addRequestHeader:@"Authorization" value:@"SharedKey mystorageaccount:pWiljtkdgfier+tgysjvlirjt38t4589whQcPoBxfuPtBA++UPbuckd7c="];

self.request addRequestHeader:@"x-ms-date" value:timeStamp];

    NSLog(@"%@",timeStamp);

    [self.request addRequestHeader:@"x-ms-version" value:@"2009-09-19"];

    [self.request addRequestHeader:@"DataServiceVersion" value:@"1.0;NetFx"];

    [self.request addRequestHeader:@"MaxDataServiceVersion" value:@"1.0;NetFx"];

    

    [self.request startAsynchronous];

    url = nil; identity = nil; trust = nil; PKCS12Data = nil;path=nil;

    

}




Viewing all articles
Browse latest Browse all 15889

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>