Wednesday, 11 January 2012

Working web.config for service.svc


<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.serviceModel>
<services>

<service name="Microsoft.ServiceModel.Samples.CalculatorService" behaviorConfiguration="default">


<endpoint address=""
binding="wsHttpBinding"
contract="Microsoft.ServiceModel.Samples.ICalculator" />


<endpoint address="mex"
binding="mexHttpBinding"
contract="IMetadataExchange" />
</service>
</services>

<behaviors>
<serviceBehaviors>
<behavior name="default">
<serviceMetadata httpGetEnabled="true" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>

</configuration>

No comments:

Post a Comment