c# - How to make WCF service available in a local network? -
i'm new in wcf. wrote simple service:
namespace wcfservice1 { [servicecontract] public interface iservice1 { [operationcontract] int add(int a, int b); } } namespace wcfservice1 { public class service1 : iservice1 { public int add(int a, int b) { return (a + b); } } }
how can let local network access service?
there several ways host (i think that's mean publish in context) wcf service:
- hosting in internet information services (iis)
- hosting in windows activation services (was)
- hosting in console or desktop application (self hosting)
- hosting in windows service
where option 1 , 4 interesting if service more test project ;-)
take @ tutorial more information: http://www.codeproject.com/articles/550796/a-beginners-tutorial-on-how-to-host-a-wcf-service
Comments
Post a Comment