I'm trying to set the password of an acount using Java Soap API from Zimbra, using the following code:

SoapProvisioning sp = new SoapProvisioning();
Account conta = sp.getAccountByName("user@domain.com");
sp.setPassword(conta, "password");


I'm getting the following error:
Code:account.NO_SUCH_ACCOUNT
at com.zimbra.common.soap.Soap12Protocol.soapFault(So ap12Protocol.java:88)
at com.zimbra.common.soap.SoapTransport.extractBodyEl ement(SoapTransport.java:354)
at com.zimbra.common.soap.SoapTransport.parseSoapResp onse(SoapTransport.java:313)
at com.zimbra.common.soap.SoapHttpTransport.invoke(So apHttpTransport.java:260)
at com.zimbra.common.soap.SoapHttpTransport.invoke(So apHttpTransport.java:164)
at com.zimbra.common.soap.SoapTransport.invoke(SoapTr ansport.java:407)
at com.zimbra.common.soap.SoapTransport.invokeWithout Session(SoapTransport.java:393)
at com.zimbra.cs.account.soap.SoapProvisioning.invoke Request(SoapProvisioning.java:342)
at com.zimbra.cs.account.soap.SoapProvisioning.invoke (SoapProvisioning.java:350)
at com.zimbra.cs.account.soap.SoapProvisioning.setPas sword(SoapProvisioning.java:1292)


Also tried using conta.setPassword() but got the same error...

Please help.