Independentsoft
- any library, any programming language
Home
Purchase
Support
Company
Contact
JWebServices for Exchange
>
Tutorial
> Find conversation
The following example shows you how to find conversation.
import com.independentsoft.exchange.Conversation; import com.independentsoft.exchange.FindConversationResponse; import com.independentsoft.exchange.RequestServerVersion; import com.independentsoft.exchange.Service; import com.independentsoft.exchange.ServiceException; import com.independentsoft.exchange.StandardFolder; public class Example { public static void main(String[] args) { try { Service service = new Service("https://myserver/ews/Exchange.asmx", "username", "password"); service.setRequestServerVersion(RequestServerVersion.EXCHANGE_2010_SP1); FindConversationResponse response = service.findConversation(StandardFolder.INBOX); for (Conversation conversation : response.getConversations()) { System.out.println(conversation.getTopic()); System.out.println(conversation.getLastDeliveryTime()); System.out.println("--------------------------------------------"); } } catch (ServiceException e) { System.out.println(e.getMessage()); System.out.println(e.getXmlMessage()); e.printStackTrace(); } } }
Need help? Ask our developers:
Name*
Email*
Message*