on 01-28-2016 2:31 PM
Hi Experts,
I am creating an iOS application which uses OfflineStore to store the data offline. Relay server is used to connect to the SMP server. I am able to onboard the user successfully. But while trying to open the store, stuck with error "Communication with the server failed with error code 404".
The server version used is SP09 and the SDK version is SP10 PL10.
Following is the code for assigning the StoreOptions values:
- (SODataOfflineStoreOptions *)offlinestoreOptions
{
NSError* localError = nil;
SODataOfflineStoreOptions *storeOptions = [[SODataOfflineStoreOptions alloc] init];
self.data = [self.logonManager registrationDataWithError:&localError];
NSLog(@"%@", self.data.applicationEndpointURL);
NSLog(@"%@", self.data.applicationEndpointURL);
storeOptions.enableHttps = self.data.isHttps;
storeOptions.host = self.data.serverHost;
storeOptions.port = self.data.serverPort;
storeOptions.serviceRoot = [NSString stringWithFormat:@"/%@", self.data.applicationId];
storeOptions.urlSuffix = [NSString stringWithFormat:@"%@/%@",self.data.resourcePath, self.data.farmId];
[storeOptions addDefiningRequestWithName:@"Authorizations" url: [NSString stringWithFormat:@"%@/Authorizations", self.data.applicationEndpointURL] retrieveStreams:FALSE];
[storeOptions addDefiningRequestWithName:@"Visits" url:[NSString stringWithFormat:@"%@/Visits", self.data.applicationEndpointURL] retrieveStreams:FALSE];
storeOptions.conversationManager = self.conversationManager;
storeOptions.enableRepeatableRequests = NO;
storeOptions.storeName = @"OfflineStore";
return storeOptions;
}
Can anyone please help to find out where I am going wrong?
Regards,
Dhani
Can you share the plaintext (ok if anonymized) of the SODataOfflineStoreOptions values?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please check whether the urlSuffix parameter is set correctly.
Examples:
For IIS Relay server, it should be of the form: /rs/client/rs_client.dll/<farmid>
For Apache relay server, it should be of the form: /cli/iarelayserver/<farmid>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
25 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.