I want to create a web application, using html and JS, and I will be accessing EWS managed API. So can we access EWS API via javascript or any other language? If yes how to do so?
I want to create a web application, using html and JS, and I will be accessing EWS managed API. So can we access EWS API via javascript or any other language? If yes how to do so?
Share Improve this question edited Jul 12, 2014 at 19:17 JasonMArcher 15k22 gold badges59 silver badges53 bronze badges asked Sep 5, 2013 at 6:24 amrit_neoamrit_neo 1,7594 gold badges20 silver badges39 bronze badges 1- Have a similar problem at the time. Maybe you can find something useful in my questions: here, here – Martin Commented Sep 5, 2013 at 6:30
2 Answers
Reset to default 21If anyone still looking for JavaScript version, I am author of ews-javascript-api
at https://github.com/gautamsi/ews-javascript-api, this is functional and have many operations supported. mostly most common calls. open issue at GitHub for anything not implemented I usually take next weekend to publish that feature in npm if not complex.
Published as npm ews-javascript-api
Due to Exchange CAS server CORS limitation (HTTP OPTIONS verb not implemented) you can not use it in browser. Node.js works fine. You can also use it in Electron (Atom Shell) or in NW.JS (Node-WebKit)
Support Office 365 and on-prem Exchange, all version supported by ews-managed-api (official repo).
Supported Authentication mechanism:
- Basic (provide HTTPS url when calling)
- Kerberos (with provided sample link in readme)
- Cookies with ISA/TMG (with provided sample link in readme)
The EWS Managed API is a .NET wrapper around the EWS API (SOAP and POX Web Services).
If you're using a .NET language such as C# then you should use the EWS Managed API on the server-side and create your own JSON services (I recommend ASP.NET Web API) for your client-side JavaScript to call.
If you're only using JavaScript, you may be able to use node-soap to call the EWS SOAP services.