View Single Post
  #26 (permalink)  
Old 10-14-2008, 09:23 AM
eheb eheb is offline
Junior Member
 
Posts: 8
Default

Quote:
Originally Posted by nbobfin View Post
OK that's it
Thank you very much

Here is the code to log in zimbra as a user :
Code:
SoapProvisioning sp = new SoapProvisioning();
sp.soapSetURI("https://Zimbraserver:7071" + ZimbraServlet.ADMIN_SERVICE_URI);
sp.soapAdminAuthenticate(adminLogin, adminPassword);
ZAuthToken authToken = sp.delegateAuth(AccountBy.name, userLogin, durationInSecond).getAuthToken();
Options options = new Options(authToken.getValue(), "http://Zimbraserver" + ZimbraServlet.USER_SERVICE_URI);
ZMailbox zimbraMailbox = new ZMailbox(options);
And then you have access to all methods described in previous posts.
I am beginner wtih zimbra soap service uses.
Your solution seems to be the rignt way to write these services.
I read some codes from marinew. What is you opinion ?
Would you please publish your entire source code to test quicky my first service. Il is a main java class ?
I don't know which jars are necessary (zimbracommon.jar and zimbrastore.jar) . I just have finished to install a ZCS 5
Where do you find information about the zclient api ?
Best regards
Reply With Quote