7
WCF'de IIS altında bir sanal dizinde birden çok .svc dosyası alabilir miyim? Öyleyse nasıl?WCF'de IIS altında bir sanal dizinde birden çok .svc dosyası alabilir miyim?
WCF'de IIS altında bir sanal dizinde birden çok .svc dosyası alabilir miyim? Öyleyse nasıl?WCF'de IIS altında bir sanal dizinde birden çok .svc dosyası alabilir miyim?
İki hizmet sözleşmeleri olması gerekir ve web.config
bölümünde kayıtlı iki hizmet olması gerekir:
<system.serviceModel>
<services>
<service name="YourNamespace.Service1"
behaviorConfiguration="returnFaults">
<endpoint
address=""
binding="basicHttpBinding"
contract="Yournamespace.IService1" />
</service>
<service name="YourNamespace.Service2"
behaviorConfiguration="returnFaults">
<endpoint
address=""
binding="basicHttpBinding"
contract="Yournamespace.IService2" />
</service>
</services>
</system.serviceModel>
Sonra da hizmetlerin her biri için iki
.svc
dosya olabilir.