WCF with multiple services and
<p>I'm trying to create a WCF that serves multiple rest services in one assembly. To test it, I have created 2 services with the same content that serves two interfaces. </p>

<p>I'm able to get metadata using the url </p>

<blockquote>
  <p>localhost/testwebservice/services/Service1.svc?wsdl or
  localhost/testwebservice/services/Service2.svc?wsdl</p>
</blockquote>

<p>, but when I try to execute a method</p>

<blockquote>
  <p>localhost/testwebservice/services/Service1.svc/GetData/0</p>
</blockquote>

<p>, I get a DestinationUnreachable error.</p>

<p>The web.config file is </p>

<pre><code>&lt;system.serviceModel&gt;
    &lt;services&gt;
      &lt;service behaviorConfiguration="ServiceBehavior" name="test.Services.Service1"&gt;
        &lt;endpoint address="" binding="webHttpBinding" 
          contract="test.Contracts.IService1" /&gt;
        &lt;endpoint address="mex" binding="mexHttpBinding" contract="test.Contracts.IService1" /&gt;
      &lt;/service&gt;
      &lt;service behaviorConfiguration="ServiceBehavior" name="test.Services.Service2"&gt;
        &lt;endpoint address="" binding="webHttpBinding"
          contract="test.Contracts.IService2" /&gt;
        &lt;endpoint address="mex" binding="mexHttpBinding" contract="test.Contracts.IService2" /&gt;
      &lt;/service&gt;
    &lt;/services&gt;
    &lt;behaviors&gt;     
      &lt;serviceBehaviors&gt;
        &lt;behavior name="ServiceBehavior"&gt;
          &lt;serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" /&gt;
        &lt;/behavior&gt;
      &lt;/serviceBehaviors&gt;
    &lt;/behaviors&gt;
    &lt;serviceHostingEnvironment aspNetCompatibilityEnabled="true"/&gt;
  &lt;/system.serviceModel&gt;
</code></pre>

<p>Each .cs interface file is like this</p>

<pre><code>namespace test.Contracts
{
    [ServiceContract]
    public interface IService1
    {
        [OperationContract]
        [WebInvoke(Method = "GET", UriTemplate = "GetData/{value}")]
        string GetData(string value);
    }
}
</code></pre>

<p>Each .svc file is like this</p>

<pre><code>namespace test.Services
{
    public class Service1 : IService1
    {
        public string GetData(string value)
        {
            return string.Format("You entered: {0}", value);
        }
    }
}
</code></pre>

<p>I also, would like to access the webservice as <strong>localhost/testwebservice/services/Service1 and localhost/testwebservice/services/service2</strong>, instead of using .svc, but I can not config the webservice in order to remove the .svc suffix. I have tried to use the address of the endpoint, but i'm not able to make it run.</p>