Note that there are some explanatory texts on larger screens.

plurals
  1. POWCF SSL endpoint address is not HTTPS
    primarykey
    data
    text
    <p>Im trying to host my SSL WCF service locally on my PC (IIS 7) and for some reason i cant connect to it. What i need is to use SSL and send in credntials to authenticate the user before calling some function. </p> <p>When i connect to it, i get <strong><em>There was no endpoint listening at https://[computer name]/YYY.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.</em></strong> </p> <p>the inner message is <strong><em>The remote server returned an error: (404) Not Found.</em></strong></p> <p>What i have noticed is that when i access the WSDL (hosted over https) the endpoint address is not http*<em>S</em>* and i think that is why my service is probably failing.</p> <h2>here is part of my WSDL</h2> <pre><code>&lt;wsdl:service name="WSNAME"&gt; &lt;wsdl:port name="WSHttpBinding_INams" binding="tns:WSHttpBinding_INams"&gt; &lt;soap12:address location="http://[computer name]/YYY.svc" /&gt; &lt;wsa10:EndpointReference&gt; &lt;wsa10:Address&gt;http://[computer name]/YYY.svc&lt;/wsa10:Address&gt; &lt;Identity xmlns="http://schemas.xmlsoap.org/ws/2006/02/addressingidentity"&gt; &lt;Spn&gt;host/[computername]&lt;/Spn&gt; &lt;/Identity&gt; &lt;/wsa10:EndpointReference&gt; </code></pre> <p> </p> <h2>This is my service config file</h2> <pre><code> &lt;service behaviorConfiguration="test" name="NewServiceType"&gt; &lt;endpoint address="https://[computer name]/YYY.svc" binding="wsHttpBinding" bindingConfiguration="WsBinding" name="WS" contract="Authentication2.INams" /&gt; &lt;endpoint address="mex" binding="mexHttpBinding" name="MX" contract="IMetadataExchange" /&gt; &lt;host&gt; &lt;baseAddresses&gt; &lt;add baseAddress="https://[computer name]/XXX.svc" /&gt; &lt;/baseAddresses&gt; &lt;/host&gt; </code></pre> <p>can anyone point out what am i doing wrong?</p> <h2>my web.config</h2> <pre><code> &lt;system.serviceModel&gt; &lt;protocolMapping&gt; &lt;remove scheme="http" /&gt; &lt;add scheme="http" binding="wsHttpBinding" /&gt; &lt;/protocolMapping&gt; &lt;bindings&gt; &lt;wsHttpBinding&gt; &lt;binding name="wsbinding"&gt; &lt;security mode="TransportWithMessageCredential"&gt; &lt;transport proxyCredentialType="Basic" /&gt; &lt;message clientCredentialType="UserName" /&gt; &lt;/security&gt; &lt;/binding&gt; &lt;/wsHttpBinding&gt; &lt;/bindings&gt; &lt;services&gt; &lt;service name="NewServiceType"&gt; &lt;endpoint address="/WS" binding="wsHttpBinding" bindingConfiguration="wsbinding" name="WS" contract="Authentication3.IService1" /&gt; &lt;endpoint address="mex" binding="mexHttpBinding" bindingConfiguration="" name="MX" contract="IMetadataExchange" /&gt; &lt;/service&gt; &lt;/services&gt; &lt;behaviors&gt; &lt;serviceBehaviors&gt; &lt;behavior name=""&gt; &lt;serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" httpsGetUrl="https://[computerName]/Service1.svc" /&gt; &lt;serviceDebug includeExceptionDetailInFaults="false" /&gt; &lt;/behavior&gt; &lt;/serviceBehaviors&gt; &lt;/behaviors&gt; &lt;serviceHostingEnvironment multipleSiteBindingsEnabled="false" /&gt; </code></pre> <p></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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