Guest User

Untitled

a guest
Feb 15th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. public class WS_Birst_wwwBirstCom {
  2. public String Login(String username,String password) {
  3. WS_Birst_wwwBirstCom.Login_element request_x = new WS_Birst_wwwBirstCom.Login_element();
  4. request_x.username = username;
  5. request_x.password = password;
  6. WS_Birst_wwwBirstCom.LoginResponse_element response_x;
  7. Map<String, WS_Birst_wwwBirstCom.LoginResponse_element> response_map_x =
  8. new Map<String, WS_Birst_wwwBirstCom.LoginResponse_element>();
  9. response_map_x.put('response_x', response_x);
  10. WebServiceCallout.invoke(
  11. this,
  12. request_x,
  13. response_map_x,
  14. new String[]{endpoint_x,
  15. 'http://www.birst.com/Login',
  16. 'http://www.birst.com/',
  17. 'Login',
  18. 'http://www.birst.com/',
  19. 'LoginResponse',
  20. 'WS_Birst_wwwBirstCom.LoginResponse_element'}
  21. );
  22. response_x = response_map_x.get('response_x');
  23. return response_x.LoginResult;
  24. }
  25. }
  26.  
  27. public void func()
  28. {
  29. String username='username';
  30. String ssopassword='password';
  31. String response;
  32. WS_Birst_wwwBirstCom birstInstance = new WS_Birst_wwwBirstCom();
  33. token = birstInstance.Login(username, ssopassword);
  34. }
Add Comment
Please, Sign In to add comment