I want to create Wcf service for SharePoint 2010. I strictly want to use server object model. I have gone through two articles http://www.dotnetcurry.com/ShowArticle.aspx?ID=760

http://nikspatel.wordpress.com/2012/02/29/step-by-step-building-custom-wcf-services-hosted-in-sharepoint-part-i/

I want to know if we are using sharepoint 2010 server object model then is it mandatory that custom wcf must reside on the same machine on which sharepoint is installed (as decribed in second link) ?

有帮助吗?

解决方案

If you want to use the server object model you have to host your WCF service on the same server as your SharePoint is installed on.

If the WCF service has to be on a different server you can use the client object model or the SharePoint webservices to communicate to SharePoint.

(link to a question about using server object model on different server

其他提示

I think, thows articles sre different.

Second one described how to host your wcf service "inside" share point env., when the first one describe communication between them.

For first model - it is nothing more then some wcf service, calling some SharePoint api (server model?). Inthis case - they can be hosted in different machines as well.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top