Skip to content

Instantly share code, notes, and snippets.

@vbilopav
Last active September 2, 2015 14:09
Show Gist options
  • Save vbilopav/2e8c7eb9fc9546e67a0b to your computer and use it in GitHub Desktop.
Save vbilopav/2e8c7eb9fc9546e67a0b to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<!--
For a description of web.config changes for .NET 4.5 see http://go.microsoft.com/fwlink/?LinkId=235367.
The following attributes can be set on the <httpRuntime> tag.
<system.Web>
<httpRuntime targetFramework="4.5" />
</system.Web>
-->
<system.web>
<compilation debug="true" targetFramework="4.5.1" />
<httpRuntime targetFramework="4.5" />
<sessionState mode="Off" />
</system.web>
<system.serviceModel>
<services>
<service name="MyServiceLibrary.MyServiceSample">
<host>
<baseAddresses>
<add baseAddress="http://localhost:53920/MyServiceSample.svc" />
</baseAddresses>
</host>
<!-- Service Endpoints -->
<!-- Unless fully qualified, address is relative to base address supplied above -->
<endpoint address="soap" binding="basicHttpBinding" contract="MyServiceLibrary.IMyServiceSample">
<!--
Upon deployment, the following identity element should be removed or replaced to reflect the
identity under which the deployed service runs. If removed, WCF will infer an appropriate identity
automatically.
-->
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<!-- JSON Endpoints -->
<endpoint address="json" binding="webHttpBinding" behaviorConfiguration="jsonBehavior" contract="MyServiceLibrary.IMyServiceSample"/>
<!-- Metadata Endpoints -->
<!-- The Metadata Exchange endpoint is used by the service to describe itself to clients. -->
<!-- This endpoint does not use a secure binding and should be secured or removed before deployment -->
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior>
<!-- To avoid disclosing metadata information,
set the values below to false before deployment -->
<serviceMetadata httpGetEnabled="True" httpsGetEnabled="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>
<endpointBehaviors>
<behavior name="jsonBehavior">
<enableWebScript/>
</behavior>
<behavior name="soapBehavior" />
</endpointBehaviors>
</behaviors>
</system.serviceModel>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment