Reputation: 550
How can I get events from a specific Exchange account using Delphi (without using Outlook)?
Upvotes: 1
Views: 1484
Reputation: 9096
I'm doing it through Exchange Web Services (EWS) with SOAP XML calls. I failed to get it to work using the WSDL from the server (Delphi XE2), so now I'm doing it all through my own SOAP generation, using tools like SOAPUI for testing/debugging. This is all 'from the ground up', so a lot of work.
If you only need to get events it may be simpler than what I'm doing (full synchronization, already working on it for weeks).
If you can communicate through Outlook instead of communicating directly to Exchange (i.e. when running from a client machine) I can recommend DevExpress Scheduler component.
--- UPDATE 2 OKT 2023 ---
I no longer recommended this path:
"On October 1, 2026, we will start blocking EWS requests from non-Microsoft apps to Exchange Online"
Source: https://techcommunity.microsoft.com/t5/exchange-team-blog/retirement-of-exchange-web-services-in-exchange-online/ba-p/3924440
With this in mind, MS Graph is the (only) way to go.
Upvotes: 6