Hello ,
Sorry for the late respond.
I switch to basicHttpBinding and I recived the same behavior.
I attached my web.config [Server config] file
<!--
<configuration>
<appsettings>
<add key="aspnet:UseTaskFriendlySynchronizationContext" value="true">
</add></appsettings>
<system.web>
<compilation debug="true" targetframework="4.5">
<httpruntime targetframework="4.5">
</httpruntime></compilation></system.web>
<system.servicemodel>
<services>
<service name="MyConnectingServer.ServerConnectionAPI">
<endpoint address="http://localhost:2607/MyServiceConnection" binding="basicHttpBinding" bindingconfiguration="" name="basicHttpBinding" contract="MyConnectingServer.IServerConnectionAPI">
</endpoint></service>
</services>
<bindings>
</bindings>
<behaviors>
<servicebehaviors>
<behavior>
<servicemetadata httpgetenabled="true" httpsgetenabled="true">
<servicedebug includeexceptiondetailinfaults="true">
</servicedebug></servicemetadata></behavior>
</servicebehaviors>
</behaviors>
<protocolMapping>
<add binding="wsHttpBinding" scheme="https">
</protocolMapping>
<servicehostingenvironment aspnetcompatibilityenabled="true" multiplesitebindingsenabled="false">
</servicehostingenvironment></add></system.servicemodel>
<system.webserver>
<modules runallmanagedmodulesforallrequests="true">
<directorybrowse enabled="true">
</directorybrowse></modules></system.webserver>
</configuration>
For testing the service I use the WcfTestClient (microsoft test tool).
The config file is:
<configuration>
<system.servicemodel>
<bindings>
<basichttpbinding>
<binding name="basicHttpBinding" sendtimeout="00:05:00">
</binding></basichttpbinding>
</bindings>
<client>
<endpoint address="http://localhost:2607/MyServiceConnection" binding="basicHttpBinding" bindingconfiguration="basicHttpBinding" contract="IServerConnectionAPI" name="basicHttpBinding">
</endpoint></client>
</system.servicemodel>
</configuration>
==================================
Example of function decleration in the contract file :
[ServiceContract]
public interface IServerConnectionAPI
{
[OperationContract]
Boolean IsUserRegister(string userName);
}
Thanks for your help.
MAK