on 08-14-2014 7:46 AM
Hi Every one I am getting a " NSInvalidArgumentException" Error in IOS while i am performing OData Read Operation by 'POST' or 'GET' method. I am using the offline capability and also Delta Query is written on OData Services. Please held me this error killing me since past one week
The URL is= http://182.87.61.205:8008/com.innova.mtra/BankDetailsCollection('barbarab')
The code i am using to fetch read collection is below
"
[RequestBuilder setRequestType:HTTPRequestType];
[RequestBuilder enableXCSRF:YES];
NSString *string = [NSString stringWithFormat:@"%@%@",self.serviceBaseURl,urlString];
DLog(@"URL String: %@",string);
id<Requesting> request = [RequestBuilder requestWithURL:[[NSURL alloc] initWithString:string]];
[request setRequestMethod:@"GET"];
[request addRequestHeader:@"Accept" value:@"application/xml,application/atom+xml"];
[request addRequestHeader:kX_SUP_APPCID value:self.app_Connection_ID];
[request startAsynchronous];
"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes i am using the port 8080.
There is no error in the url.
I am getting the error only in one case i.e when doing the read operation. example the URL in the formate collectionName('value'). For other than this format URLs its working fine.
Note: This error is coming only when i am fetching the data for send time. for the first time its working good.
Can you share how exactly you are calling GET method in coding?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.