Hi All,
I am trying to do "httpBasicAuthentication" from front-end through SUP. I have done the following configuration and trying to hit the same from front-end coding part.
1. I have a SAP Ping Url for authentication. It is working fine and checked it by hitting the Url on browser from the system where i have access to SAP system. It displaying the following message once hit on browser by providing the credentials.
"Server reached Successfully"
2. I have created a Domain, Security Configuration in Sybase Control Center and configured the above Url by choosing httpBasicAuthentication
3. I don't have any MBO in SUP Middle ware for Login . I created MBO's for remaining Function modules and deployed the project by selecting created Domain and Security Configuration and can see the same in Sybase Control Center --> Created Domain--> Packages.
4. Referring to the deployed project from coding part. app.ApplicationIdentifier = "Deployed proj name" as mentioned in below step.
3. Now trying to connect to SUP Server and hit the Url from front -end as below :
publicvoid connect()
{
Sybase.Mobile.Application app = Sybase.Mobile.Application.GetInstance();
if (app.ApplicationIdentifier == null)
{
app.ApplicationIdentifier = "Deployed Proj Name";
//app.ResetApplication();
}
//ABCInventorySUPDB.RegisterCallbackHandler(m_SUPCallbackHandler);
ABCInventorySUPDB.SetApplication(app);
ABCInventorySUPDB.GetSynchronizationProfile().ServerName = HOST;
ConnectionProperties connProps = app.ConnectionProperties;
// httpBasicAuthetication starts (Device Automatic Registration) //
LoginCredentials loginCredentials = newLoginCredentials(SAP System UserName, SAP System Password);
connProps.LoginCredentials = loginCredentials;
connProps.ServerName = HOST;
connProps.PortNumber = PORT;
//connProps.ActivationCode = ACT;
connProps.FarmId = "0";
connProps.SecurityConfiguration= "Created Security in SCC";
connProps.NetworkProtocol= "http";
if (app.RegistrationStatus != RegistrationStatus.REGISTERED)
{
//AddString("Application registering ... ");
try
{
app.RegisterApplication(TIMEOUT);
}
catch (Exception e)
{
Console.WriteLine(e.Message.ToString());
}
//AddString("Application registered");
}
else
{
//AddString("Connecting to server ...");
app.StartConnection(TIMEOUT);
//AddString("Connected to server");
}
AlestraInventorySUPDB.EnableChangeLog();
}
Now, my Emulator is not connecting to SUP Server and also not authenticating with SAP system through SUP. Please check the following error.
Kindly anyone, Please suggest how i can proceed with this.
Thanks,
Hemagiri Seerapu