We have a WCF web service, which unfortunately must use SOAP 1.1 + SSL, so I use basicHttpBinding, not wsHttpBinding. I believe my web.config is fine, as I have compared it to many others in stackoverflow and MSDN articles. I have no luck with other solutions to the problem, because everyone seems to be using wsHttpBinding for all SSL binding examples.
Many of the StackOverflow suggestions lead to server configuration errors, such as SSL headers , but I have confirmed that the people who manage our IIS, SSL port mappings, and SSL host headers are configured correctly (as far as we know). However, we use a wildcard certificate that I read that can complicate this process, as in this one (removed due to a new user restriction on links), although my SSL works and the session is encrypted.
I hope this is something simple in configuration that I am missing because I looked at it for too many hours / days in a row.
When I try to call a service from WcfTestService.exe or the main .net application, I get the following error.
There was no endpoint listening for https://subdomain.domain.us:8091/SalesService/SalesService.svc that could receive the message. This is often caused by an incorrect address or SOAP. See InnerException, if present, for more details.
Server Stack Trace:
System.ServiceModel.Channels.HttpChannelUtilities.ProcessGetResponseWebException(WebException webException, HttpWebRequest, HttpAbortReason abortReason) System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan ) System.ServiceModel.Channels.RequestChannel.Request( , - TimeSpan) System.ServiceModel.Dispatcher.RequestChannelBinder.Request( , - TimeSpan) System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime, [] ins, [] , TimeSpan ) System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage Call, ProxyOperationRuntime ) System.ServiceModel.Channels.ServiceChannelProxy.Invoke( )
, [0]:
System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage( reqMsg, IMessage retMsg) System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData & msgData, Int32) IServiceRC.RestrictedProduct(String line1) ServiceRCClient.RestrictedProduct(String line1)
: : (404) . System.Net.HttpWebRequest.GetResponse() System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan -)
web.config
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior name="SalesService.ServiceRCbehavior">
<serviceMetadata httpsGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="true"/>
</behavior>
</serviceBehaviors>
</behaviors>
<bindings>
<basicHttpBinding>
<binding name="ServiceRCbind" closeTimeout="00:01:00" openTimeout="00:01:00"
receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false"
bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
messageEncoding="Text" textEncoding="utf-8"
useDefaultWebProxy="true">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<security mode="Transport">
<transport clientCredentialType="None"/>
</security>
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint address=""
binding="basicHttpBinding" bindingConfiguration="ServiceRCbind"
contract="SalesService.IServiceRC"/>
</client>
<services>
<service behaviorConfiguration="SalesService.ServiceRCbehavior" name="SalesService.ServiceRC">
<endpoint address="" listenUri="SalesService.svc" binding="basicHttpBinding" contract="SalesService.IServiceRC" bindingConfiguration="ServiceRCbind"/>
<endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange"/>
<host>
<baseAddresses>
<add baseAddress="https://subdomain.domain.us:8091/SalesService/"/>
</baseAddresses>
</host>
</service>
</services>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true">
<baseAddressPrefixFilters>
</baseAddressPrefixFilters>
</serviceHostingEnvironment>
</system.serviceModel>
, , - , , , .
/ .
: - wsdl, IIS ( )