Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Exchange Web Services

 
Patrick Noah
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 1776
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JWebServices for Exchange supports NTLM authentication: http://www.independentsoft.de/jwebservices/index.html

/Markus
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic