Saturday, August 16, 2014

EWS for Android

So I have a task to incorporate EWS and Android and found these two post (pretty much identical)
SO
Android SE



After downloading the Microsoft API I followed the "Compiling the EWS Java API.rtf" doc included in the download.

The first problem I had is that the directions for compiling the EWS Java API wanted a few older versions of the jars file dependencies

-        Apache Commons Codec 1.4 - The most current is 1.9 (link to older versions)
-        Apache Commons Logging 1.1.1 - The most current is 1.2 (link to older versions)


So in line with the doc, I downloaded all needed jar files and placed them in the lib directory.  Then started a new project in Eclipse and copied both folders to that project [ lib, src & the build.xml].

*set projects "Use an execution environment" value to J2SE-1.4
did this because the two main post above say that the project must be built on Java 1.4

It seemed apparent after this step that it still needed the other 2 libraries there for it to (though after these steps it still wont build, but at least it'll get rid of a few errors).

  1. Download source code of javax.* package available in below URLhttp://www.java2s.com/Code/Jar/j/Downloadjsr17310srcjar.htm jsr173_1.0_src.jar.zip
  2. Download source code of stax API available in below URL,http://dist.codehaus.org/stax/distributions stax-src-1.2.0.zip
A strange these too is that there is a duplicated namespace for javax in both packages and there are still some packages missing that are needed
javax.xml.bind
javax.xml.validate
javax.xml.ws