on 05-05-2013 9:44 AM
Hi All,
We are using SUP 2.1.3 patch 02. for developing ODATA based application. Can any one help us out.
Problem 1:
SUP connect to ECC using the HTTP authentication mechanism if the credential is success user is getting registered.
The API that we can to perform the above activity Is RegisterUser available in liteuserManager. We are using Automatic registration.
Problem we face: When user is logging on for second time we don’t know which method to invoke and continue to use the same registerUser but it is not authenticating the user, even if user’s credential is wrong application is not throwing any error.
Please suggest the correct API that we need to call for subsequent User authentication
Problem 2:
We are working on Android
Devices ICS and above.
Thanks
-Arun
Hi Arun,
FOR YOUR PROBLEM 1:
When you register for the first time, in your Sybase Control Center, one entry gets connected.
You will be able to get the data only when you have successfully registered and your entry is online.
for the Second time on-wards , call LiteUsermanger RegisterUser Method.
It will check whether the entry is registered, If yes, Then it will make the connection online.
Please Check the code below:
private LiteUserManager manager;
LiteUserManager liteUserManager = LiteUserManager.getInstance();
liteUserManager.setConnectionProfile(supHost, supPort, farmID);
// when using the Data Vault option, need to initialize it with the context
PrivateDataVault.init(context);
manager = liteUserManager;
if (!manager.isRegistered()) //This will check if user is registered or not
{
// notice the order of the parameters!!
manager.registerUser(username, securityConfig, password);
}
FOR YOUR PROBLEM 2:
When you use HTTPConnection, Your Registered username should be mapped to Gateway server username.
So when you pass SUP Username , it directly finds your gateway Username and password.
And enters your gateway server to fetch the data.
You dont need to explicitely pass Gateway Server Username And Password through the URL If using HTTPConnection inSUP.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.