Custom Binding In wcf

Jun 11 2015 7:58 AM

Hi Good Evening,

I am facing issue with custom binding.

I m using wsHTTPBinding but client machine time and server machine time are dufferent so I wrote on server configuration file with custom binding as

<bindings>

<customBinding>

<binding name="UpdateReportParameters_Config">

<transactionFlow />

<security authenticationMode="UserNameForSslNegotiated" messageSecurityVersion="WSSecurity11WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10">

<localClientSettings cacheCookies="false" detectReplays="false" maxCookieCachingTime="00:30:00" />

<localServiceSettings replayCacheSize="9" maxClockSkew="00:30:00" replayWindow="00:07:22.2190000" />

<secureConversationBootstrap>

<localClientSettings maxClockSkew="00:30:00" />

<localServiceSettings maxClockSkew="00:30:00" />

</secureConversationBootstrap>

</security>

<textMessageEncoding />

<httpTransport />

</binding>

</customBinding>

</bindings>

Instead of

<bindings>

<wsHttpBinding>

<binding name="UpdateReportParameters_Config" transactionFlow="true" closeTimeout="00:30:00" openTimeout="00:30:00" receiveTimeout="00:30:00" sendTimeout="00:30:00">

<security mode="Message">

<message establishSecurityContext="false" clientCredentialType="UserName" />

</security>

</binding>

</wsHttpBinding>

</bindings>

Now when I run the project after consuming service below error is thrown.

Please help me


Answers (1)