Click here to Skip to main content
Sign Up to vote bad
good
See more: WCFWinFormServices
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:22

Comments
Member 9638247 - 3 Dec '12 - 11:01
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
Your Filters
Interested
Ignored
     
0 Mahesh Bailwal 373
1 Sergey Alexandrovich Kryukov 354
2 Maciej Los 245
3 Rohan Leuva 175
4 CPallini 175
0 Sergey Alexandrovich Kryukov 9,287
1 OriginalGriff 7,204
2 CPallini 3,923
3 Rohan Leuva 3,211
4 Maciej Los 2,713


Advertise | Privacy | Mobile
Web01 | 2.6.130516.1 | Last Updated 30 Nov 2012
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid