Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi All,
I am facing an issue while creating WCF Rest Service in the Umbraco Web Project and Hosted in IIS.
IIS Hosting :
Rest Url : "http://localhost:8016/WCFService.svc/getproducts" The rest service is not getting hit in the debug mode.
WCF Self-hosting Mode :
The Same code is giving the output when hosting it as "WCF Self-hosting Mode ".
Output :
{"UUProductsResult":[{"ProductID":1,"ProductName":"Demo Product 1"},{"ProductID":2,"ProductName":"Demo Product 2"}]}
WCF code :
[ServiceContract] public interface IWCFService { [WebInvoke(Method = "Get", ResponseFormat = WebMessageFormat.Json, UriTemplate = "/getproducts/")] [OperationContract] IEnumerable<Product> GetProducts(); } [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)] public class WCFService : IWCFService { public IEnumerable<Product> GetProducts() { return new List<Product>() { new Product(){ProductID=1, ProductName="Demo Product 1"}, new Product(){ProductID=2, ProductName="Demo Product 2"} }; } }
configuration :
<add key="umbracoReservedPaths" value="~/umbraco,~/install/,~/WCFService.svc/" />
Is there any configuration missing for Setting up the WCF Rest Service in Umbraco
Hi
What do you get when accessing the url? Is it a 404?
Dallas
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
WCF Rest Service not working in Umbraco
Hi All,
I am facing an issue while creating WCF Rest Service in the Umbraco Web Project and Hosted in IIS.
IIS Hosting :
WCF Self-hosting Mode :
The Same code is giving the output when hosting it as "WCF Self-hosting Mode ".
Output :
WCF code :
configuration :
Is there any configuration missing for Setting up the WCF Rest Service in Umbraco
Hi
What do you get when accessing the url? Is it a 404?
Dallas
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.