I was happily working on my services and client, everything working fine, when I decided to setup the security of it, and I got surprised that there is no binding information on the .config file. No protocol, No encoding…
How do I find out the binding it is using? it is definitely http since I was able to host on IIS ( no WAS I guess.. )
<?xml version="1.0"?>
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.0" />
</system.web>
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior>
<serviceMetadata httpGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="false"/>
</behavior>
</serviceBehaviors>
</behaviors>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
</system.serviceModel>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>
</configuration>
The default is
BasicHttpBindingandNetTcpBinding.See here: A Developer’s Introduction to Windows Communication Foundation 4 (MSDN)