Tag Info

New answers tagged

0

MultipleBaseAddressWebServiceHostFactory for a REST service. Microsoft.SharePoint.Client.Services.MultipleBaseAddressWebServiceHostFactory dynamically creates the configuration hence no need to update web.config file of SharePoint web application. One thing to notice here is that you can’t access the service in browser with MEX endpoint. For example if you ...


0

SharePoint Online doesn't support Farm Deployments. Solution to your problem is to host your WCF service some where say Azure. Then use Client Side Object model to query information from SharePoint.


2

That may be because the default address is the server name, and your code is run on the server itself. In that case, everything is fine. But if you use another domain name to target the server from the server itself, you may face the "loopback check" feature of Windows Server. You can test quickly by disabling this feature, like mentionned in method 2 of ...


0

I have solved the issue after spending couple of frustration hours on it. Finally, I am using the webHttpBinding and it's working fine in Windows Authentication as I have mentioned. And I am using client as Jquery AJAX. So, along with my request I am also passing RequestDigest and it fixed my issue. Now, all good. Hope this will help!


0

In terms of getting you started, I would suggest breaking this into manageable items. Getting Started Building a WCF Web Service Shows how to create a very simple web service using WCF. Shows how to host this web service using IIS. Determining Caller Identity within a WCF Web Service Enhances the example so that the Web service can ...


0

Deploying a webservice in IIS doesn't mean it runs under SharePoint context. What you should do is deploy the service to into SharePoint ISAPI folder as explained in this article http://blogs.msdn.com/b/ericwhite/archive/2010/07/16/writing-and-hosting-a-web-service-in-the-sharepoint-2010-demo-virtual-machine.aspx Now you will be getting the SPContext. If ...


0

You only have an SPContext if your code is executed inside SharePoint. Instead you can create your own instances of SPSite etc by giving the URL of the SharePoint Site as parameter.



Top 50 recent answers are included