ews-javascript-api icon indicating copy to clipboard operation
ews-javascript-api copied to clipboard

Sending raw SOAP requests via XHRApi

Open marcoancona opened this issue 3 years ago • 3 comments
trafficstars

I was wondering, @gautamsi , is it possible to send raw requests through the library, taking advantage of the fact that ews-managed-api already takes care of all the authentication parts?

I would like to try using the FindPeople API, which is not implemented, and it would be convenient to pass the raw request body to an authenticated XHRApi as a workaround. I would be ok with parsing the raw response then.

marcoancona avatar Aug 11 '22 14:08 marcoancona

I guess then you can just use request, got or any http client library and parse yourself.

gautamsi avatar Aug 15 '22 05:08 gautamsi

The tricky think is the authentication (Basic, OAuth, NLTM). What’s the easiest to use the already configured XHRApi module?

marcoancona avatar Aug 15 '22 07:08 marcoancona

basic and oauth are plain only ntlm may be issue

gautamsi avatar Aug 15 '22 07:08 gautamsi