Hi all,
I have successfully configured Sybase Hosted Relay server in my SUP 2.1.3 Server but in iOS frontend, m encountering the below error when trying register my app to SUP 2.1.3 through Relay Server.
onConnectionStatusChanged: status = 105, code = 571, message = Error: 571 Detail: Session failed Source: /Users/iotabuilder/svn/Pioneer/MOClients/iPhone/../Common/C/moClient.cpp 1024.
then
[65874:5d03] onHttpCommunicationError: errorCode = 404
While trying to register application.I am doing as follows:
SUPApplication* app = [SUPApplication getInstance];
app.applicationIdentifier = @"MyApp";
CallbackHandler *acb = (CallbackHandler *) [CallbackHandler getInstance];
[acb retain];
[app setApplicationCallback:acb];
SUPConnectionProperties* props = app.connectionProperties;
[props setServerName:@"relayserver.sybase.com"];
[props setPortNumber:80];
[props setNetworkProtocol:@"http"];
[props setUrlSuffix:@""];
[props setFarmId:@"Rehan.FarmMBS"];
SUPLoginCredentials* login = [SUPLoginCredentials getInstance];
login.username = @"rehan";
login.password = nil;
props.activationCode = @"123";
props.securityConfiguration = @"admin";
props.loginCredentials = login;
[app registerApplication:800];
if(![MyApp1DB databaseExists])
{
[MyApp1DB createDatabase];
[MyApp1DB generateEncryptionKey];
[MyApp1DB closeConnection];
SUPConnectionProfile *cp = [MyApp1DB getConnectionProfile];
[SUPPOApprovalVault setString:@"encryptionkey" withValue:[cp getEncryptionKey]];
[cp.syncProfile setDomainName:@"default"];
[cp setAsyncReplay:NO];
[cp setServerName:@"relayserver.sybase.com"];
[cp setPortNumber:[portno intValue]];
[cp setNetworkProtocol:@"http"];
[cp setNetworkStreamParams:@"trusted_certificates=;compression=none;url_suffix=/ias_relay_server/client/rs_client.dll/Rehan.FarmRBS"];
[cp setUser:@"rehan"];
[cp setPassword:@"mypassword"];
[cp enableTrace:NO];
[cp.syncProfile enableTrace:YES];
}
Please guide me where m doing wrong.