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:

  1. hosting in internet information services (iis)
  2. hosting in windows activation services (was)
  3. hosting in console or desktop application (self hosting)
  4. 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

Popular posts from this blog

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -