jQuery in Action, 3rd edition
The moose likes Beginning Java and the fly likes Exchange Web Services Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Exchange Web Services" Watch "Exchange Web Services" New topic

Exchange Web Services

Patrick Noah

Joined: Aug 22, 2011
Posts: 28
Has anyone used this with java? I am trying to get it to work. I downloaded the EWS Managed API and the following jars:
commons-httpclient.jar, commons-codec-1.4.jar, and jcifs-1.3.15.jar. I added the jars to my library in netbeans 7.

I tried "import microsoft.exchange.webservices.data;" and get an error saying the package does not exist.
John Jai

Joined: May 31, 2011
Posts: 1776
import microsoft.exchange.webservices.data;

From the naming "microsoft" I guess it won't be in either of the commons jar. I doubt the same with the other jcifs jar - see its API don't have anything with the microsoft package naming - http://jcifs.samba.org/src/docs/api/

One more you can only import classes and not packages... so if you want all classes under data package then give
import microsoft.exchange.webservices.data.*;
Patrick Noah

Joined: Aug 22, 2011
Posts: 28
Thank you. Do I need to add a jar or something? I already downloaded the EWS API for java. I added the src folder that has the microsoft... package to the library in netbeans but that didn't work.
markus gross

Joined: Oct 17, 2011
Posts: 1
JWebServices for Exchange supports NTLM authentication: http://www.independentsoft.de/jwebservices/index.html

I agree. Here's the link: http://aspose.com/file-tools
subject: Exchange Web Services
It's not a secret anymore!