Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class WS_Birst_wwwBirstCom {
- public String Login(String username,String password) {
- WS_Birst_wwwBirstCom.Login_element request_x = new WS_Birst_wwwBirstCom.Login_element();
- request_x.username = username;
- request_x.password = password;
- WS_Birst_wwwBirstCom.LoginResponse_element response_x;
- Map<String, WS_Birst_wwwBirstCom.LoginResponse_element> response_map_x =
- new Map<String, WS_Birst_wwwBirstCom.LoginResponse_element>();
- response_map_x.put('response_x', response_x);
- WebServiceCallout.invoke(
- this,
- request_x,
- response_map_x,
- new String[]{endpoint_x,
- 'http://www.birst.com/Login',
- 'http://www.birst.com/',
- 'Login',
- 'http://www.birst.com/',
- 'LoginResponse',
- 'WS_Birst_wwwBirstCom.LoginResponse_element'}
- );
- response_x = response_map_x.get('response_x');
- return response_x.LoginResult;
- }
- }
- public void func()
- {
- String username='username';
- String ssopassword='password';
- String response;
- WS_Birst_wwwBirstCom birstInstance = new WS_Birst_wwwBirstCom();
- token = birstInstance.Login(username, ssopassword);
- }
Add Comment
Please, Sign In to add comment