From 792ede8756e83642eabffe93dec1a416de3db5ee Mon Sep 17 00:00:00 2001 From: Matt Guo Date: Tue, 27 Sep 2016 10:00:22 -0700 Subject: [PATCH] Fix a typo, We should read EWS error info from erviceRequestBase.getResponseErrorStream rather than ServiceRequestBase.getResponseStream --- .../webservices/data/core/request/ServiceRequestBase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/microsoft/exchange/webservices/data/core/request/ServiceRequestBase.java b/src/main/java/microsoft/exchange/webservices/data/core/request/ServiceRequestBase.java index aafd48cf6..e0e377478 100644 --- a/src/main/java/microsoft/exchange/webservices/data/core/request/ServiceRequestBase.java +++ b/src/main/java/microsoft/exchange/webservices/data/core/request/ServiceRequestBase.java @@ -501,7 +501,7 @@ protected void processWebException(Exception webException, HttpWebRequest req) t soapFaultDetails = this.readSoapFault(reader); memoryStream.close(); } else { - InputStream serviceResponseStream = ServiceRequestBase.getResponseStream(req); + InputStream serviceResponseStream = ServiceRequestBase.getResponseErrorStream(req); EwsServiceXmlReader reader = new EwsServiceXmlReader(serviceResponseStream, this.service); soapFaultDetails = this.readSoapFault(reader); serviceResponseStream.close();