Click here to Skip to main content
11,703,631 members (68,487 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: WCF WinForm Services
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 at 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
0 Maciej Los 570
1 OriginalGriff 500
2 Sergey Alexandrovich Kryukov 410
3 F-ES Sitecore 165
4 Andy Lanng 159
0 OriginalGriff 8,519
1 Sergey Alexandrovich Kryukov 7,667
2 CPallini 4,987
3 Maciej Los 4,686
4 Mika Wendelius 3,566


Advertise | Privacy | Mobile
Web01 | 2.8.150819.1 | Last Updated 30 Nov 2012
Copyright © CodeProject, 1999-2015
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