-
-
Save SADANANDKUMAR/4ef46f1eba06edda17b6e21071d44bc8 to your computer and use it in GitHub Desktop.
login
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//login | |
//setting up parameters for login method | |
User_auth auth = new User_auth(); | |
auth.setUser_name(USER_NAME); | |
auth.setPassword(PASSWORD); | |
//sending an empty name_value_list | |
Name_value nameValueListLogin[] = null; | |
//trying to login | |
Entry_value loginResponse = null; | |
try { | |
loginResponse = stub.login(auth, APPLICATION_NAME , nameValueListLogin); | |
} catch (RemoteException e) { | |
System.out.println("login failed. Message: "+e.getMessage()); | |
e.printStackTrace(); | |
} | |
System.out.println("login successful! login id: "+loginResponse.getId()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment