Note that there are some explanatory texts on larger screens.

plurals
  1. POWCF services with BasicAuthentication over https 400 bad request / 409 conflict?
    text
    copied!<p>Been working at this all day and just can't figure out what's wrong with my web.config file for my WCF services over https. The trace logs only say the following: </p> <p><strong>Failed to lookup a channel to receive an incoming message. Either the endpoint or the SOAP action was not found.</strong></p> <pre><code>&lt;system.serviceModel&gt; &lt;!--SERVICES--&gt; &lt;diagnostics&gt; &lt;messageLogging logMalformedMessages="true" logMessagesAtTransportLevel="true" /&gt; &lt;endToEndTracing activityTracing="true" /&gt; &lt;/diagnostics&gt; &lt;services&gt; &lt;service behaviorConfiguration="MyServiceTypeBehaviors" name="WCF.MyOwnMed.com.iosService1"&gt; &lt;endpoint address="ios" binding="basicHttpBinding" bindingConfiguration="thisBasicHTTPBinding" name="endpointService1" contract="WCF.MyOwnMed.com.iosIService1" /&gt; &lt;endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange" /&gt; &lt;/service&gt; &lt;/services&gt; &lt;!--BINDINGS--&gt; &lt;bindings&gt; &lt;basicHttpBinding&gt; &lt;binding name="thisBasicHTTPBinding" maxReceivedMessageSize="5000000" maxBufferPoolSize="5000000"&gt; &lt;readerQuotas maxArrayLength="5000000" /&gt; &lt;security mode="Transport"&gt; &lt;transport clientCredentialType="None" proxyCredentialType="None" realm="" /&gt; &lt;/security&gt; &lt;/binding&gt; &lt;/basicHttpBinding&gt; &lt;/bindings&gt; &lt;!--BEHAVIORS --&gt; &lt;behaviors&gt; &lt;serviceBehaviors&gt; &lt;behavior name="MyServiceTypeBehaviors"&gt; &lt;serviceMetadata httpsGetEnabled="true" /&gt; &lt;serviceDebug includeExceptionDetailInFaults="true" /&gt; &lt;/behavior&gt; &lt;/serviceBehaviors&gt; &lt;/behaviors&gt; &lt;protocolMapping&gt; &lt;add binding="basicHttpsBinding" scheme="https" /&gt; &lt;/protocolMapping&gt; &lt;serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" /&gt; &lt;/system.serviceModel&gt; </code></pre> <p>when I use WCFStorm to test the services, I get a list of all my methods. When I try most methods, I get: </p> <pre><code>-&lt;GetAllDiseases&gt; -&lt;MethodParameters&gt; -&lt;WebException&gt; &lt;Status&gt;ProtocolError&lt;/Status&gt; &lt;Response&gt;System.Net.HttpWebResponse&lt;/Response&gt; &lt;Message&gt;The remote server returned an error: (409) Conflict.&lt;/Message&gt; -&lt;Data&gt; &lt;KeysAndValues attr0="KeyValuePairArray"isNull="false"/&gt; &lt;/Data&gt; &lt;InnerException isNull="true"/&gt; &lt;TargetSite&gt;System.Net.WebResponse GetResponse()&lt;/TargetSite&gt; &lt;StackTrace&gt;at System.Net.HttpWebRequest.GetResponse() at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)&lt;/StackTrace&gt; &lt;HelpLink isNull="true"/&gt; &lt;Source&gt;System&lt;/Source&gt; &lt;HResult&gt;-2146233079&lt;/HResult&gt; &lt;/WebException&gt; &lt;/MethodParameters&gt; &lt;/GetAllDiseases&gt; </code></pre> <p>and here is the trace event I get when trying to run a method...</p> <pre><code>&lt;E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent"&gt; &lt;System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system"&gt; &lt;EventID&gt;262155&lt;/EventID&gt; &lt;Type&gt;3&lt;/Type&gt; &lt;SubType Name="Error"&gt;0&lt;/SubType&gt; &lt;Level&gt;2&lt;/Level&gt; &lt;TimeCreated SystemTime="2013-11-05T23:15:05.6916772Z"/&gt; &lt;Source Name="System.ServiceModel"/&gt; &lt;Correlation ActivityID="{2c51b91c-3b2b-4fc4-a189-d1e7b72f4034}"/&gt; &lt;Execution ProcessName="w3wp" ProcessID="3020" ThreadID="7"/&gt; &lt;Channel/&gt; &lt;Computer&gt;WEB1&lt;/Computer&gt; &lt;/System&gt; &lt;ApplicationData&gt; &lt;TraceData&gt; &lt;DataItem&gt; &lt;TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Error"&gt; &lt;TraceIdentifier&gt;http://msdn.microsoft.com/en-US/library/System.ServiceModel.Channels.HttpChannelMessageReceiveFailed.aspx&lt;/TraceIdentifier&gt; &lt;Description&gt;Failed to lookup a channel to receive an incoming message. Either the endpoint or the SOAP action was not found.&lt;/Description&gt; &lt;AppDomain&gt;/LM/W3SVC/2/ROOT-9-130281664299064415&lt;/AppDomain&gt; &lt;Source&gt;System.ServiceModel.Activation.HostedHttpTransportManager/33099709&lt;/Source&gt; &lt;ExtendedData xmlns="http://schemas.microsoft.com/2006/08/ServiceModel/StringTraceRecord"&gt; &lt;IsRecycling&gt;False&lt;/IsRecycling&gt; &lt;/ExtendedData&gt; &lt;/TraceRecord&gt; &lt;/DataItem&gt; &lt;/TraceData&gt; &lt;/ApplicationData&gt; &lt;/E2ETraceEvent&gt; </code></pre> <p>**UPDATE - something I've noticed, my WSDL file, located here: <a href="https://wcf.myownmed.com/iosService1.svc?wsdl" rel="nofollow">https://wcf.myownmed.com/iosService1.svc?wsdl</a></p> <p>uses "http" in all the "soapAction" properties, could this be what's effecting this? How do these get generated? http URIs will not work with this service...</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload