Meaningless Drivel is fun!*
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
Author

Exchange Web Services

Patrick Noah
Greenhorn

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
Bartender

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
Greenhorn

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
Greenhorn

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

/Markus
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Exchange Web Services