Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MM.NET WCF Service and BindingConfiguration
Message
De
08/05/2008 11:53:42
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
MM.NET WCF Service and BindingConfiguration
Divers
Thread ID:
01315882
Message ID:
01315882
Vues:
94
This message has been marked as the solution to the initial question of the thread.
Hi Kevin,

How do I pass bindingConfiguration to mmDataAccessWCFSql

In order for remote clients to access the service when not in the same domain I need to have a bindingconfiguration on the host file,I was able to make it work with my custom service that doesn't use MM.NET WCF.


This is what I have in my host file
 <system.serviceModel>
    <diagnostics>
      <messageLogging logMalformedMessages="true" logMessagesAtServiceLevel="false"
        logMessagesAtTransportLevel="true" />
    </diagnostics>

    <bindings>
      <wsHttpBinding>
        <binding name="NewBinding0">
          <security mode="None">
            <transport clientCredentialType="None" />
            <message clientCredentialType="None" negotiateServiceCredential="true"
                   establishSecurityContext="true" />
          </security>
        </binding>
      </wsHttpBinding>
    </bindings>
    <services>
      <service behaviorConfiguration="ServiceTypeBehaviors" name="WCFDataService">
        <endpoint address="mex" binding="wsHttpBinding" bindingConfiguration="NewBinding0"
          contract="OakLeaf.MM.Main.ImmWCFDataService" />
      </service>
      <service behaviorConfiguration="MyServiceBehavior" name="Acelo.OSPFrontServiceContract.OSPFrontService">
        <endpoint address="" binding="wsHttpBinding" bindingConfiguration="NewBinding0"
          contract="Acelo.OSPFrontServiceContract.IOSPFrontService" />
      </service>
    </services>
    <behaviors>
      <serviceBehaviors>
        <behavior name="ServiceTypeBehaviors">
          <serviceDebug includeExceptionDetailInFaults="true" />
          <serviceMetadata httpGetEnabled="true" />
        </behavior>
        <behavior name="MyServiceBehavior">
          <serviceMetadata httpGetEnabled="true" />
          <serviceDebug includeExceptionDetailInFaults="false" />
        </behavior>
      </serviceBehaviors>
    </behaviors>
  </system.serviceModel>
Below is what's on my client config
   <system.serviceModel>
    <bindings>
      <wsHttpBinding>
        <binding name="WSHttpBinding_IOSPBackService" 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="None">
            <transport clientCredentialType="Windows" proxyCredentialType="None"
              realm="" />
            <message clientCredentialType="Windows" negotiateServiceCredential="true"
              establishSecurityContext="true" />
          </security>
        </binding>
      </wsHttpBinding>
    </bindings>
    <client>
      <endpoint address="http://ykhanlt.acelosolutions.com/OSMSBackService/OSPBackService.svc"
        binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IOSPBackService"
        contract="OSPBackService.IOSPBackService" name="WSHttpBinding_IOSPBackService" />
    </client>
  </system.serviceModel>
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform