Click here to Skip to main content
15,895,667 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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:

XML
<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
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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900