Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Developers

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-12-2008, 05:46 AM
New Member
 
Posts: 3
Unhappy How to optimize the response time of web services

Hi,

I'm a new user of Zimbra. I've tried to make un client Java who could invoke the web service from Zimbra to find the mails for a user, but it takes too much time for the response.
Code:
SoapHttpTransport trans = new SoapHttpTransport("URL");
Element request = Element.XMLElement.mFactory.createElement(AccountService.AUTH_REQUEST);
request.addAttribute(AccountService.E_ACCOUNT, "LOGIN", Element.DISP_CONTENT);
request.addAttribute(AccountService.E_PASSWORD, "XXX", Element.DISP_CONTENT);
Element	response = trans.invoke(request);
......
Element accRequest = Element.XMLElement.mFactory.createElement(MailService.SEARCH_REQUEST);
accRequest.addAttribute(MailService.E_QUERY, "is:unread",Element.DISP_CONTENT);
accRequest.addAttribute(MailService.A_SEARCH_TYPES, "message");
Element accResponse = trans.invoke(accRequest);
...
Could you, please,to tell me, how could I reduce the time of response from the Zimbra Web Service?
Thank you very much.
Cris.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.