none
There was no endpoint listening at "https://...." that could accept the message RRS feed

  • Question

  • <?xml version="1.0" ?>
    <configuration>
      <system.web>
        <customErrors mode="Off"/>
        <compilation debug="true">
        </compilation>
         </system.web>
      <system.serviceModel>
        <behaviors>
          <serviceBehaviors>
            <behavior name="serviceBehavior">         
               <serviceMetadata httpsGetEnabled="true"/>
              <serviceDebug includeExceptionDetailInFaults="false" />
            </behavior>
          </serviceBehaviors>
          <endpointBehaviors>
            <behavior name="httpEndpointBehavour">
              <webHttp/>
            </behavior>
          </endpointBehaviors>
        </behaviors>
        <services>
          <service name="Implementation.AccountService" behaviorConfiguration="serviceBehavior">
            <endpoint address="" binding="webHttpBinding" contract="Contract.IAccountService" behaviorConfiguration="httpEndpointBehavour"bindingConfiguration="webHttpBinding" />
            <endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange" />
          </service>
        </services>
        <!-- <serviceHostingEnvironment multipleSiteBindingsEnabled="true"/>-->
        <bindings>
          <basicHttpBinding>
            <binding name="WCFsoap" closeTimeout="00:01:00" openTimeout="00:01:00"
                useDefaultWebProxy="true">
               <security mode="Transport">
                <transport clientCredentialType="Basic" proxyCredentialType="Basic"
                    realm="" />
                <message clientCredentialType="UserName" algorithmSuite="Default" />
              </security>
            </binding>
            <binding name="WCFsoap1" closeTimeout="00:01:00" openTimeout="00:01:00"
                  useDefaultWebProxy="true">
              <security mode="None">
                <transport clientCredentialType="None" proxyCredentialType="None"
                    realm="" />
                <message clientCredentialType="UserName" algorithmSuite="Default"/>
              </security>
            </binding>
          </basicHttpBinding>
          <webHttpBinding>
            <binding name="webHttpBinding" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647" useDefaultWebProxy="true">
              <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
              <security mode="Transport">
                <transport clientCredentialType="None" />
              </security>
            </binding>
          </webHttpBinding>
        </bindings>
        <client>
          <endpoint address="https://test.myservice.com/rally_cause_ws.do?SOAP"
                   binding="basicHttpBinding" bindingConfiguration="WCFsoap"
                   contract="serviceName.WCFsoap" name="WCFsoap" />
        </client>
      </system.serviceModel>
      <system.webServer>
        <modules runAllManagedModulesForAllRequests="true">
        </modules>
        <validation validateIntegratedModeConfiguration="false" />
        <handlers>
        </handlers>
      </system.webServer>
      <system.codedom>    
      </system.codedom>
      <runtime>    
      </runtime>
    </configuration>

    Above code is of service web.config used to host it in iis.

    when i add the service reference  https://prsauat:2345/AccountService.com  in wcf test config i get the below client config dll 

    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
        <system.serviceModel>
            <bindings>
                <customBinding>
                    <binding name="WebHttpBinding_IAccountService">
                         <textMessageEncoding maxReadPoolSize="64" maxWritePoolSize="16"
                            messageVersion="Soap12" writeEncoding="utf-8">
                            <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
                                maxBytesPerRead="4096" maxNameTableCharCount="16384" />
                        </textMessageEncoding>
                    </binding>
                </customBinding>
            </bindings>
            <client>
                <endpoint binding="customBinding" bindingConfiguration="WebHttpBinding_IAccountService"
                    contract="IAccountService" name="WebHttpBinding_IAccountService" />
            </client>
        </system.serviceModel>
    </configuration>

    i am getting error as "There was no endpoint listening at "https://test.myservice.com/rally_cause_ws.do?SOAP" that could accept the message This is often caused by an incorrect address or SOAP action".

    please help me getting it done.What changes should i do in web.config.




    Friday, December 18, 2015 2:11 PM

Answers

  • Hi Tang,

    I know that will generate the app.config file when we add the service reference.

    Based on your web.config. I am not sure what endpoint did you used and what

    is your metadata.

    So, in my opinion, you need to get the metadata by metadata URL.

    You can run this address "https://test.myservice.com/rally_cause_ws.do?SOAP"

    directly in your browser. If we can get the metadata, then that means we can add

    the service reference in our client.

    For more information, please refer to the following link:

    WCF over SSL - 404 error

    Best Regards,

    Wanjun Dong


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. Click HERE to participate the survey.



    Wednesday, December 23, 2015 5:31 AM
    Moderator

All replies

  • Hi Tough,

    Form your client config file, it shown you used the customBinding, but in your web.config file,

    I saw that you just used the BasicHttpBinding and webHttpBinding.

    And as far as I know the BasicHttpbinding not supported message version with sopa1.2.

    We need to make sure the binding, contract and address are matched with client and server

    side.

    For more information, please refer to the following link:

    Error: There was no endpoint listening at...

    Best Regards,

    Wanjun Dong


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. Click HERE to participate the survey.

    Monday, December 21, 2015 3:18 AM
    Moderator
  • Hi,

    The client config i have posted is self generated by wcf test client when i add my service to the test client.Could you tell me how does it get generated?

    Monday, December 21, 2015 7:38 AM
  • Hi Tang,

    I know that will generate the app.config file when we add the service reference.

    Based on your web.config. I am not sure what endpoint did you used and what

    is your metadata.

    So, in my opinion, you need to get the metadata by metadata URL.

    You can run this address "https://test.myservice.com/rally_cause_ws.do?SOAP"

    directly in your browser. If we can get the metadata, then that means we can add

    the service reference in our client.

    For more information, please refer to the following link:

    WCF over SSL - 404 error

    Best Regards,

    Wanjun Dong


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. Click HERE to participate the survey.



    Wednesday, December 23, 2015 5:31 AM
    Moderator