Skip to content

Instantly share code, notes, and snippets.

@stevenh77
Created May 24, 2012 20:09
Show Gist options
  • Save stevenh77/2783917 to your computer and use it in GitHub Desktop.
Save stevenh77/2783917 to your computer and use it in GitHub Desktop.
<?xml version="1.0"?>
<configuration>
<system.serviceModel>
<services>
<service name="WcfJsonRestService.Service1" behaviorConfiguration="MyServiceBehavior">
<endpoint address="" binding="webHttpBinding" contract="WcfJsonRestService.IService1"/>
<host>
<baseAddresses>
<add baseAddress="http://localhost:8732/service1" />
</baseAddresses>
</host>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="MyServiceBehavior">
<!-- serviceMetadata enables our mex endpoint -->
<serviceMetadata httpGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
</serviceBehaviors>
<endpointBehaviors>
<behavior>
<!-- webHttp enables our service for http GET -->
<webHttp />
</behavior>
</endpointBehaviors>
</behaviors>
</system.serviceModel>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment