hi,
i've
i'd like to achieve 2 things:
supprt both
but in terms of my service, i wish to support both:
http://LebronServer/Extern
and
https://LebronServer/Exter
so i duplicated the endpoint and binding sections in the web.config to support each of the
to prevent from consuming the service, i removed the mex metadata endpoing and removed the serviceMetadata section under serviceBehaviors.
<
bindings><
netTcpBinding><
binding name="netTcpSecurityBindingConfig" closeTimeout="00:30:00" openTimeout="00:30:00" receiveTimeout="00:30:00" sendTimeout="00:30:00" transactionFlow="false" transferMode="Buffered" transactionProtocol="OleTransactions" hostNameComparisonMode="StrongWildcard" listenBacklog="10" maxBufferPoolSize="10485760" maxBufferSize="10485760" maxConnections="10" maxReceivedMessageSize="10485760"><
readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" /><
reliableSession ordered="true" inactivityTimeout="00:30:00" enabled="false" /><
security mode="Transport"><
transport clientCredentialType="Windows" protectionLevel="None" /><
message clientCredentialType="Windows" /> security> binding> netTcpBinding><
webHttpBinding><
binding name="webHttpsBindingConfig" closeTimeout="00:20:00" openTimeout="00:20:00" receiveTimeout="00:20:00" sendTimeout="00:20:00" maxBufferSize="4194304" maxReceivedMessageSize="4194304"><
security mode="Transport"><
transport clientCredentialType="Basic" /> security> binding><
binding name="webHttpBindingConfig" closeTimeout="00:20:00" openTimeout="00:20:00" receiveTimeout="00:20:00" sendTimeout="00:20:00" maxBufferSize="4194304" maxReceivedMessageSize="4194304"><
security mode="TransportCredentialOnly"><
transport clientCredentialType="Basic" /> security> binding> webHttpBinding> bindings><
services><
service behaviorConfiguration="PlaylistServiceBehavior" name="TVeez.BL.Services.Facade.PlaylistService.PlaylistService"><
endpoint address="" behaviorConfiguration="webBehavior" binding="webHttpBinding" bindingConfiguration="webHttpBindingConfig" contract="TVeez.BL.Services.Contracts.PlaylistService.IPlayListService" /><
endpoint address="" behaviorConfiguration="webBehavior" binding="webHttpBinding" bindingConfiguration="webHttpsBindingConfig" contract="TVeez.BL.Services.Contracts.PlaylistService.IPlayListService" /> service> services><
behaviors><
endpointBehaviors><
behavior name="webBehavior"><
webHttp /> behavior> endpointBehaviors><
serviceBehaviors><
behavior name="PlaylistServiceBehavior"><
serviceDebug includeExceptionDetailInFaults="true" /><
serviceThrottling maxConcurrentCalls="128" maxConcurrentSessions="128" maxConcurrentInstances="128" /> behavior> serviceBehaviors> behaviors>i do have aproblem when configure the IIS (7.0) to require SSL (ignore client certificates).
if i check this option i get {"The remote server returned an error: (500) Internal Server Error."}.
any ideas?
Posted Jun 16, 2010, 6:11 AM
http://www.codeproject.com/KB/WCF/WCFSSL.aspx
These links may help you.