Call the WCF service method from the web browser


I want to run my service from the web browser: http://localhost:443/TestService//RunTest/data/test It doesn`t work for me

This page can’t be displayed

•Make sure the web address http://localhost:443 is correct.
•Look for the page with your search engine.
•Refresh the page in a few minutes.

How to solve that - redefine endpoint - how? The WCF service:

public class TestService : ITestService
        public string RunTest(string data)
            return string.Format("You entered: {0}", data);
[WebGet(ResponseFormat = WebMessageFormat.Json, UriTemplate = "/RunTest/data/{data}")]
string RunTest(string data)
     return string.Format("You entered: {0}", proxyDomain);
      <!-- This section is optional with the default configuration introduced
         in .NET Framework 4.5.1 -->
            <add baseAddress="http://localhost:443/TestService/"/>
        <endpoint address="http://localhost:443/TestService"
                  contract="ITestService" />

Also when I run it a WCF client is opened with port 54388

In my experience, you wouldn't be able to test directly via the browser. Instead you should use a WCF Test Client:

What you can do using your browser, is to see if you can reach the WSDL. An example of a WSDL call in a browser: