The login call takes a user name and a password and logs you in to the Zuora server.
login(username, password)
The arguments are as shown in the following table. For information on the field types, see Field Types.
| Argument | Description |
|---|---|
| username | The login name of the user who is logging in. |
| password | The password for that user. |
Use this call to log in to the Zuora server. The call returns a session ID, which you then use for subsequent calls for authenticating with the system.
Login login = new Login();
login.setUsername("username@company.com");
login.setPassword("password");LoginResponse resp = stub.login(login); LoginResult result = resp.getResult();
// set new endpoint ServiceClient client = stub._getServiceClient(); client.getOptions().getTo().setAddress(result.getServerUrl());
// create session for all subsequent calls SessionHeader header = new SessionHeader(); header.setSession(result.getSession());
Logging In to the Zuora System
Copyright © 2008-2009 Zuora, Inc.