Hi team ,
when i upload PST file (Note : File larger then 28 GB) to Office 365 using EWES Client after uploading some mail i got The request time out exception and try to reconnect but i am not able to create again connection .
First when we run the program the connection establish successfully then at some random message getting this type (the request time out exception) occurs .
Sample Code :
public IEWSClient conntiontooffice365_output() throws Exception {
client = EWSClient.getEWSClient(mailboxUri, username.getText().trim(),
String.valueOf(userpassword.getPassword()).trim());
EmailClient.setSocketsLayerVersion2(true);
client.setTimeout(5 * 60 * 1000);
EmailClient.setSocketsLayerVersion2DisableSSLCertificateValidation(true);
return client;
}
//add mail
client.appendMessage(path,mapi,true);