Click here to Skip to main content
12,399,799 members (48,204 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: WCF service
Hi every one,

I can't translate the wsHttpBinding to an equivalent customBinding:
If I try to change the the binding properties in the endpoint tag from wsHttpBinding to RaffSannBinding I get error

I didn't change nothing in the service app.config file.

Have I to add an endpoint there?
There is something wrong in the windows form(that consume the service) app.config file?
The wcf service is hosted as windows service and not in IIS, it could be a problem use
custom binding?


here is the app.config file:

<system.serviceModel>
     <bindings>
         <wsHttpBinding>
             <binding
               name="WSHttpBinding_IUtenti"
               closeTimeout="00:01:00"
                openTimeout="00:01:00"
                receiveTimeout="00:10:00"
                 sendTimeout="00:01:00"
                 bypassProxyOnLocal="false"
                 transactionFlow="false"
                 hostNameComparisonMode="StrongWildcard"
                 maxBufferPoolSize="524288"
                 maxReceivedMessageSize="65536"
                 messageEncoding="Text"
                 textEncoding="utf-8"
                 useDefaultWebProxy="true"
                 allowCookies="false">
                 <readerQuotas
                     maxDepth="32"
                     maxStringContentLength="8192"
                     maxArrayLength="16384"
                     maxBytesPerRead="4096"
                     maxNameTableCharCount="16384" />
                 <reliableSession
                     ordered="true"
                     inactivityTimeout="00:10:00"
                     enabled="false" />
                 <security mode="Message">
                     <transport
                         clientCredentialType="Windows"
                         proxyCredentialType="None"
                         realm="" />
                     <message
                         clientCredentialType="Windows"
                         negotiateServiceCredential="true"
                         algorithmSuite="Default"
                         establishSecurityContext="true" />
                 </security>
             </binding>
         </wsHttpBinding>
 
         <customBinding>
         <binding name="RaffSannBinding">
           <transactionFlow />
           <security
               authenticationMode="SecureConversation"
               messageSecurityVersion="WSSecurity11WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10">
             <secureConversationBootstrap
               messageSecurityVersion="WSSecurity11WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10">
               <localClientSettings maxClockSkew="00:30:00" />
               <localServiceSettings maxClockSkew="00:30:00" />
             </secureConversationBootstrap>
           </security>
           <textMessageEncoding />
             <httpTransport
               maxBufferSize="1073741824"
               maxReceivedMessageSize="1073741824" />
         </binding>
       </customBinding>
 
     </bindings>
     <client>
         <endpoint address="http://xxxmyserverxxx:8000/ServizioUtenti" binding="wsHttpBinding"
             bindingConfiguration="WSHttpBinding_IUtenti" contract="ServiceUtenti.IUtenti"
             name="WSHttpBinding_IUtenti">
             <identity>
                 <servicePrincipalName value="host/apsv01sc.raffsdb.pri" />
             </identity>
         </endpoint>
     </client>
 </system.serviceModel>
Posted 30-Nov-12 4:22am
Comments
Member 9638247 3-Dec-12 11:01am
   
Hi, anyone have an idea?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160721.1 | Last Updated 30 Nov 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100