SharePoint 2013 Custom WCF Service - wcf

In SharePoint 2013, what is the difference between creating a custom WCF service:
- under ISAPI folder (_vti_bin/...)
- under Layouts folder (_layouts/...)?

-> under ISAPI folder (_vti_bin/...)

Related

How to run MVC 4 Code in Sharepoint 2013?

I want to know How to run MVC 4 Code in Sharepoint 2013?
I had small application which, I want to plug into sharepoint 2013.
Thanks in Advance.
Manoj Kalla
Assuming you have access to the front end web servers:
Copy / publish your MVC 4 app to all of the WFE servers (create a separate folder for it i.e. c:\wwwroot\MyMVCApp)
In IIS Manager create a new Application under your SharePoint web on each WFE (/MyMVCApp) and point it to the folder you previously published.
Make sure to set the APP Pool correctly and the Anonymous Authentication identity if needed.

How to create a silverlight enabled WCF service in a different project

I want to develop a Silverlight enabled WCF service out of the target web page.
Is it possible ? There is not template in the WCF projects tab.
And if yes how?
Maybe will be possible to create it like usual and then move it (copy it) to a WCF project.

Custom WCF Service for SharePoint 2010

I read couple of articles about creating custom WCF services for SharePoint 2010 and each suggests creating it under SharePoint project (as oppose to creating a separate WCF Application project or WCF Library). Also, I came across SharePoint WCF best practices.
So my question: is it possible to create a standalone WCF Service and have an option to deploy it inside of SharePoint (let's say I don't want this service to be a part of my wsp)? And what is the best practice?
thanks.
It has to be part of your wsp file if you are going to deploy it in a SharePoint web app. You can create a stand alone wcf service that can connect to a SharePoint site collection and you can also use the SharePoint Client Object Model to remotely connect to a SharePoint site collection. There are numerous walkthroughs on how to do this.
Here is a good starting point for the Client Object Model http://msdn.microsoft.com/en-us/library/ee537247.aspx

Add WCF service as link from website project to webapplication project

In my solution I have a "website" project and "WebApplication" project. In the website project I have a WCF service under folder called Services. So by default it places MyService.cs file under App_Code folder.
Now I am trying to add this same WCF service as link file into my WebApplication project. But as the [.svc & .cs] are in two different location in website project it is not being picked up as a service in WebApplication project.
Any solution to this problem ? Any thoughts or ideas ?
Thanks in advance,
Keyrav
I think your best bet would be to totally separate out the WCF service into its own class-library assembly (no code in the *.svc.cs code-behind or the App_code directory), and then reference that WCF service assembly from your different projects and web sites.

Adding .svc file missing

I need to add a .svc file to WCF Service Library I have added to a solution (This doesn't have the .svc file). If I specify this file through ad new item (eg test.svc), this is an installer file not the WCF file.
How can I add this file to my project?
Thanks
You cannot add a .svc file to a WCF service library - you need to add the WCF service file to a ASP.NET web site or ASP.NET web application in your solution.
In a web application or web site, you can right click on the project, choose "Add New Item", and then pick "WCF Service" from the dialog. This will add the necessary .svc file to your web site or web app.
The svc file must to be in a web app/web site as a container - it cannot reside in a WCF service library.
Marc
Just right click on sub folders and select "convert to Application"