Click here to Skip to main content
15,441,149 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more: , +

I have Created WCF REST API which use the EWS Managed API to use the Exchange server functionality. WCF REST API provides the request and and response format in json.

But for each client request, I need to do authentication and to create Exchange service object on WCF Rest API.

Also I can't manage the session for each client.

So is there any way to authenticate the user only one time and creating the service object. and This service object will be used for all other request of that specific user.??

Updated 15-Dec-13 18:18pm

1 solution

Use PerSession instead of PerCall instance mode.
Share this answer
RaisKazi 13-Dec-13 10:35am    
WCF REST is State-less. How does InstanceContextMode will work? Any thought?
[no name] 14-Dec-13 3:29am     CRLF
Yes... RaisKazi is right... We can't use InstanceContextMode in Rest API. So Is there any way to maintain the authenticated users identification on WCF Rest API?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900