Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Pathikrit Bhowmick
@pathikrit
This message was deleted
This message was deleted
ok i cant format code for some reason
elarbi
@elarbi
Hi, I'm trying to reuse a service to access different folder but I get an Exception:
        FolderId folderId = new FolderId(WellKnownFolderName.Calendar, new Mailbox(email));
        CalendarFolder cf = CalendarFolder.bind(service, folderId);
        findResults = cf.findAppointments(new CalendarView(startDate, endDate));
When I call the CalendarFolder.bind method I get : microsoft.exchange.webservices.data.core.exception.service.remote.ServiceRequestException: The request failed. Connection is still allocated
Erik van Paassen
@evpaassen
Are you reusing the service in multiple threads?
elarbi
@elarbi
I'm in a JEE context (JBoss 5) and yes it uses different threads
Erik van Paassen
@evpaassen
The ExchangeService is not thread-safe, so you'll have to create one service per thread.
elarbi
@elarbi
Ok, thanks
Vladislav Bauer
@vbauer
I think it will be useful to add this information in javadoc.
elarbi
@elarbi
+1 :)
elarbi
@elarbi
Hi,
Erik van Paassen
@evpaassen
hi
elarbi
@elarbi
I want to create an appointment into a colleague calendar. I have editor acces to his calendar.
With the following code
        ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010_SP2);
        ExchangeCredentials credentials = new WebCredentials("mylogin", PASSWORD);
        service.setCredentials(credentials);
        service.setUrl(new URI("https://blabla/EWS/Exchange.asmx"));
        appointment = new Appointment(service);

        appointment.getRequiredAttendees().add(email);
It's only an invitation.
Erik van Paassen
@evpaassen
Do you want to create the appointment only in the other calendar, or do you want the other to be an attendee?
André Behrens
@serious6
FYI: AS you might have noticed I was not that much involved in project processes within the last two weeks. Due to some other workload this will keep on for the next 3 weeks. Nevertheless I will keep in touch with created PullRequests. Thanks for your understanding.
donbixler
@donbixler
Very new to the API, I'm trying to do a simple retrieve if information from a server. Pieced together snippets from your examples, creating an ExchangeService and setting the credentials, but when I try to access the Inbox, the server responds "unauthorized". Am I missing a step? Can you point me to some more complete examples?
z80pio
@z80pio
Just curious, is there anyway I can use GetUserConfigurationResponse (need auto discovery) in Java ews api? Any idea when this lib will be updated in par with .NET?
elarbi
@elarbi
@evpaassen I want to create the appointment only in the other calendar
elarbi
@elarbi
Hi
I'm still trying to create an appointment into a colleague calendar, is there any way to do it ? thx
Erik van Paassen
@evpaassen
Yes, but you'll need to create the appointment in the Calendar folder of the colleague.
This is the documentation for the C# library, but it can be done in a similar way with this Java lib.
elarbi
@elarbi
Thanks it works :
appointment.save(new FolderId(WellKnownFolderName.Calendar, new Mailbox(ownerEmail)), SendInvitationsMode.SendToNone);
udaysrinath
@udaysrinath
Anyone had any luck with setting the startTimeZone and endTimeZone on an appointment? I am using EWS Java API 2.0
I have the same issue as GHI : OfficeDev/ews-java-api#360
donbixler
@donbixler
I have an email with Japanese characters in the subject. The email properly encodes the subject header. However, when I retrieve the subject, the header has been decoded and all the Japanese characters replaces with question marks (?). Is this expected behavior? Is there a setting to change this. Please forgive my ignorance, I'm to learn EWS and the Java interface at the same time.
André Behrens
@serious6
Hi there,
I will try to create a 2.0 branch on the weekend. So if there are any comments on the current PR please address them in the next days. The reason for doing this is to deploy a beta release from that branch.
Cody Moore
@dotCipher
@serious6 Are there any breaking changes we should be aware of when upgrading from 2.0-SNAPSHOT to 2.0-Beta?
Erik van Paassen
@evpaassen
@dotCipher, since it's a snapshot, 2.0-SNAPSHOT doesn't point to a specific build. If you're using a an early snapshot, there will most certainly be changes. If you're using the latest snapshot, however...
André Behrens
@serious6
Main difference to latest snapshot is that it will appear in the release repo.
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