Skip to content

Instantly share code, notes, and snippets.

@yury
Created November 23, 2009 23:39
Show Gist options
  • Save yury/241484 to your computer and use it in GitHub Desktop.
Save yury/241484 to your computer and use it in GitHub Desktop.
<system.serviceModel>
<bindings>
<webHttpBinding/>
</bindings>
<services>
<service behaviorConfiguration="Order.API.ServiceBehavior" name="Order.API.OrderService">
<endpoint binding="webHttpBinding" behaviorConfiguration="webBehavior" contract="Order.API.IOrderService"/>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
</service>
</services>
<behaviors>
<endpointBehaviors>
<behavior name="webBehavior">
<webHttp />
</behavior>
</endpointBehaviors>
<serviceBehaviors>
<behavior name="Order.API.ServiceBehavior">
<!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
<serviceMetadata httpGetEnabled="true"/>
<!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information -->
<serviceDebug includeExceptionDetailInFaults="true"/>
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment