This project is read-only.

Issue with calling svc file within module

Topics: General, Writing modules
Apr 25, 2011 at 9:12 PM

I saw Bertrand's post on the new format for WCF + IoC in 1.1, but what should the Routes.cs file look like to be able to talk to the svc file?


Apr 26, 2011 at 7:24 PM

In 1.1, you can create a SVC file using the new Orchard host factory:

<%@ ServiceHost Language="C#" Debug="true" 
    Service="MyModule.IMyService, MyAssembly"
    Factory="Orchard.Wcf.OrchardServiceHostFactory, Orchard.Framework" %>

So you need to have a svc file, that file is hosted in a module.  MVC routing needs to be able to find that file.

So I tried to browse to:


by adding a new route in my route table, but that did not work.


/modules/moduleName/servicefile.svc, trying to see if i can call it off disk, but again that didn't work.

Am I going at this in the wrong direction?