Click here to Skip to main content
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 5: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 Sergey Alexandrovich Kryukov 575
1 Kornfeld Eliyahu Peter 409
2 Maciej Los 369
3 DamithSL 196
4 OriginalGriff 188
0 OriginalGriff 6,353
1 DamithSL 4,854
2 Maciej Los 4,476
3 Kornfeld Eliyahu Peter 4,058
4 Sergey Alexandrovich Kryukov 3,917


Advertise | Privacy | Mobile
Web04 | 2.8.141220.1 | Last Updated 30 Nov 2012
Copyright © CodeProject, 1999-2014
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