Search in sources :

Example 1 with LmcAuthRequest

use of com.zimbra.cs.client.soap.LmcAuthRequest 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();
}
Also used : LmcAuthRequest(com.zimbra.cs.client.soap.LmcAuthRequest) LmcAuthResponse(com.zimbra.cs.client.soap.LmcAuthResponse)

Aggregations

LmcAuthRequest (com.zimbra.cs.client.soap.LmcAuthRequest)1 LmcAuthResponse (com.zimbra.cs.client.soap.LmcAuthResponse)1