use of com.zimbra.cs.client.soap.LmcAuthResponse in project zm-mailbox by Zimbra.
the class TestUtil method getSoapSession.
public static LmcSession getSoapSession(String userName) throws ServiceException, LmcSoapClientException, IOException, SoapFaultException {
LmcAuthRequest auth = new LmcAuthRequest();
auth.setUsername(getAddress(userName));
auth.setPassword(DEFAULT_PASSWORD);
LmcAuthResponse authResp = (LmcAuthResponse) auth.invoke(getSoapUrl());
return authResp.getSession();
}
Aggregations