Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Cody Moore
@dotCipher
Ahh ok
Is the release repo being published to maven?
or sonatype?
Erik van Paassen
@evpaassen
@dotCipher It will be on Maven Central.
elarbi
@elarbi
Hi,
I need to know if a login,password pair is correct. Could I use
                    ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010_SP2);
                    ExchangeCredentials credentials = new WebCredentials(LOGIN_WINDOWS, PASSWORD);
                    credentials.preAuthenticate();
André Behrens
@serious6
@elarbi dont think there is something implemented like preAuthentication. Looking at the code declares there is just this method which does nothing. If you want to have this enabled please open an issue for it. My suggestion would also be to declare this method as abstract in ExchangeCredentials and keep Implementations to the inherited classes.
if you want to check the credentials yourself try to bind to a WellKnownFolder
Cody Moore
@dotCipher
Thanks @evpaassen, also what is the best way to check to see if user A has permissions to view user B's calendar? Is there a way to get an enumerated list of calendars that user A can view that may have been shared with him/her?
Erik van Paassen
@evpaassen
I don't know about listing accessible calendars, but you can check permissions on a folder by binding to it while connected as the delegated user, and then checking the permissions with folder.getEffectiveRights(). You'll have to catch a ServiceResponseException (with e.getErrorCode() == ErrorFolderNotFound or ErrorItemNotFound, afaik) while binding, which would mean the folder is not accessible by this user at all.
cocteau604
@cocteau604

Does anyone have Version 1.1.5 source laying around? It used to be hosted at 'http://archive.msdn.microsoft.com/ewsjavaapi EWSJavaAPI_1.1.5.zip'

Here's what the page used to look like, but you could also download the file:
https://web.archive.org/web/20120622114558/http://archive.msdn.microsoft.com/ewsjavaapi/Release/ProjectReleases.aspx?ReleaseId=5754

André Behrens
@serious6
This version you requested is really outdated.
cocteau604
@cocteau604
That's precisely the point: I needed to see what, if anything, has changed since that version.
But a co-worker had a copy, so I have what I need.
Thanks for your reply and all your hard work on the project.
Jose Carlos
@josecyn
I found something trying to "getUserAvailability" using Exchange Server 2007 SP1. The method "writeElementsToXml" of class "GetUserAvailabilityRequest" is using a LegacyAvailabilityTimeZone. The constructor of this class sets by default the Bias and both Deltas to 0, which in my case leads to an error. Should I create an issue?
Jose Carlos
@josecyn
Ok, I answer myself, I just found the issue #241
André Behrens
@serious6
You are welcome ;-)
elarbi
@elarbi
Hi, my code for connecting to Exchange works well from the office. But when I'm outside I cannot authenticate. But Outlook can. Is there any configuration to do to enable the same behavior ?
bah7303
@bah7303
Two questions: Is there any fix in sight for issue OfficeDev/ews-java-api#371 ? When will a full official 2.0 release come out?
elarbi
@elarbi
my server uri is an https uri : https://mycompany.com/EWS/Exchange.asmx
Craig Andrews
@candrews
@bah7303 I submitted a PR to fix OfficeDev/ews-java-api#371 , see OfficeDev/ews-java-api#428
I'm hoping someone will review and let me know what needs to be done for it to be merged, or merge it as is.
bah7303
@bah7303
Can anyone tell me where I can get the 1.2 source code?
Craig Andrews
@candrews
@bah7303 unfortunately, the git repository only goes back to version 1.3-NAPSHOT. I have no idea where to find version 1.2, or even if it's available.
On a related note, @serious6 and others - can you please use tags for released versions going forward?
André Behrens
@serious6
We will use tags once release is deployed. 2.0 is first release for long time
André Behrens
@serious6
First stable release of ews-java-api 2.0 Version has been deployed to maven central
site content can be found here
javaDocs can be found here
Cody Moore
@dotCipher
Yay! @serious6
Cody Moore
@dotCipher
When pulling recurring calendar appointments, how do you distinguish between the occurrence / master / exception ? I assumed the uidwould be different for each occurrence, but it isn't.
Whats the difference between the uid and ICalUid ?
Cody Moore
@dotCipher
Or rather, why is the recurring id a DateTime ?
Jose Carlos
@josecyn

Does anyone ever had problems trying to get the user's availability using impersonation? In my case, impersonation is not working at all with the 'GetUserAvailability' Operation.
I'm working with Exchange 2007 SP1, setting the impersonation like follows:

service.setImpersonatedUserId(new ImpersonatedUserId(ConnectingIdType.PrincipalName, "Ursula@litwareinc.com"));

The SOAP request includes the impersonation in the header and the execution is successful, but the results are not correct. I don't get full details on the impersonated user's appointments (Ursula). Other operations are working fine.

Any idea? Thanks in advance!

Cody Moore
@dotCipher
Does anyone know if there is a way to programmatically request access to a different user? Like "Request to view this person's calendar"
@serious6 @evpaassen
venkatrangan
@venkatrangan
I am trying to use EWS API with NTLM Authentication that is built into HTTP Client 4.4.1 and it is failing with 401 Unauthorized error.
My call sequence is as follows:
        String username = "mydomain\\username";
        String password = "mypassword";
        String exchangeServer = "exchangeserver";
        String domain = "mydomain";
        boolean performAutodiscovery = false;

        ExchangeCredentials credentials = new WebCredentials(username, password, domain);
        service.setCredentials(credentials);
        try {
            service.setUrl(new URI("https://" + exchangeServer + "/EWS/Exchange.asmx"));
        } catch(Exception e) {

        }
venkatrangan
@venkatrangan
Using the external ExRCA with the NTLM style name and credentials works fine.
This message was deleted
Kausd
@Kausd
Do we support IRM capabilities with this API ?
thanhlv93
@thanhlv93
Hi , I using EWS API but when my run application then exeption HTTP Client not connect . Plz help me.
I am using Http client 3-1 .
Micha Roon
@drgorb
without some code, no one can help you
thanhlv93
@thanhlv93
I am trying EWS with version 1.0 and i user to get infomation by NameResolutionCollection but exeption thrown : "microsoft.exchange.webservices.data.EWSHttpException: Connection not established" .
Code :
NameResolutionCollection nameResolutions = service.resolveName(username, ResolveNameSearchLocation.ContactsOnly, true);
thanhlv93
@thanhlv93
i want get accout profile(ex : account Name) when login to server .. You have the solution for me ?.
Micha Roon
@drgorb
here is a simple connection class that works
public class TestConnect {
    public static void main(String[] args){
        ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010_SP2);
        ExchangeCredentials credentials = new WebCredentials("address@server.net", "password");
        service.setCredentials(credentials);

        try {
            service.autodiscoverUrl("address@server.net");
            ItemView view = new ItemView(10);
            FindItemsResults<Item> findResults = service.findItems(WellKnownFolderName.Inbox, view);

            for (Item item : findResults.getItems()) {
                // Do something with the item as shown
                System.out.println("id==========" + item.getId());
                System.out.println("sub==========" + item.getSubject());
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
but this is with the 2.0 version
my dependency looks like this
        <dependency>
            <groupId>com.microsoft.ews-java-api</groupId>
            <artifactId>ews-java-api</artifactId>
            <version>2.0</version>
        </dependency>