How to call Office365 web service in a Console application using WCF

2013.02.18 11:43 개발언어
How to call Office365 web service in a Console application using WCF

오피스365 webservice 를 호출하는 방법 입니다. 



In my previous post, I showed you how to call the SharePoint web service using a console application. In this post, I’d like to show you how to call the same web service in the cloud, aka Office365.In office365, it uses claims authentication as opposed to windows authentication for normal in-house SharePoint Deployment. For Details of the explanation you can see Wictor’s post on this here. The key to make it work is to understand when you authenticate from Office365, you get your authentication token. You then need to pass this token to your HTTP request as cookie to make the web service call. Here is the code sample to make it work.I have modified Wictor’s by removing the client object references.




You can download the complete code from here.

Reference:

Managing shared cookies in WCF

How to do active authentication to Office 365 and SharePoint Online

신고