I had to get the Exchange Web Service (Exchange Version: 2010) APIs consumed from a Java program. Here is a set of preconditions, that I had, to start working on this.
- Need to use Apache Axis2 web service stack, version 1.4
- Consume mail and calendar APIs from Java
I did some research on any existing work for the same. I couldn’t find anything specific for Axis2. However, I found this great wiki page from imap2exchange project, which explains how to do it from Metro. In this blog series, I am trying to put together the sequence of actions I had to do to get the proxy code working from Axis2.
To get the email from user’s inbox, I had to do the following sequence.
- Setup your development environment
- Customize the WSDL & Schema to get Axis2 generate the proxy
- Fix compilation issues of Axis2 generated proxy
- Remove some namespace attaching in the request to avoid EWS complaining about the request format
- Edit the schema to resolve bugs in Axis2, regenerate proxy code and fix compilation issues
No comments:
Post a Comment