title: Java EWS API - reading non default mailbox
body: <p>I would like to read a non default mailbox on an exchange server with the Java EWS API, but something is wrong with my code. Here is an excerpt with the relevant part:</p>
  
  <pre><code>ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2007_SP1);
  ExchangeCredentials credentials = new WebCredentials("&lt;user&gt;", "&lt;pass&gt;");
  service.setCredentials(credentials);
  service.setUrl(new URI("https://&lt;URL&gt;/EWS/Exchange.asmx"));
  ItemView iview = new ItemView(3);
  Mailbox mb = new Mailbox();
  mb.setAddress("&lt;mailbox_address&gt;");
  FolderId folderId = new FolderId(WellKnownFolderName.Root, mb);
  FindItemsResults&lt;Item&gt; findResults = service.findItems(folderId, iview);
  </code></pre>
  
  <p>And the error message is:</p>
  
  <pre><code>Exception in thread "main" microsoft.exchange.webservices.data.EWSHttpException: Connection not established
      at microsoft.exchange.webservices.data.HttpClientWebRequest.throwIfConnIsNull(Unknown Source)
      at microsoft.exchange.webservices.data.HttpClientWebRequest.getResponseHeaders(Unknown Source)
      at microsoft.exchange.webservices.data.ExchangeServiceBase.processHttpResponseHeaders(Unknown Source)
      at microsoft.exchange.webservices.data.SimpleServiceRequestBase.internalExecute(Unknown Source)
      at microsoft.exchange.webservices.data.MultiResponseServiceRequest.execute(Unknown Source)
      at microsoft.exchange.webservices.data.ExchangeService.findItems(Unknown Source)
      at microsoft.exchange.webservices.data.ExchangeService.findItems(Unknown Source)
  </code></pre>
  
  <p>Btw. I am able to read my default mailbox, send emails, etc...</p>
  
  <p>Could you please advise? Thanks in advance!</p>