title: Soap and Rest on same service returns status 404/endpoint not found for soap endpoint
body: <p>I am trying to configure two endpoints for the same service one for rest that is webHttpBinding and one for soap that is wsHttpBinding. but when I hit the service for soap it gives me no endpoint found.</p>
  
  <p>Here is my interface
  ITicketService.cs</p>
  
  <pre><code>[ServiceContract]
  public interface ITicketService
  {
  
      [OperationContract]
      [WebInvoke(Method = "POST", RequestFormat = WebMessageFormat.Json,
          ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare, UriTemplate = "/tickets")]
      void AddTicket(Ticket ticket);
  
      [OperationContract]
      [WebInvoke(Method = "GET",
          ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Wrapped, UriTemplate = "/tickets")]
      IQueryable&lt;Ticket&gt; GetAllTickets();
  
      [OperationContract]
      [WebInvoke(Method = "GET",
          ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Wrapped, UriTemplate = "/tickets/{id}")]
      Ticket GetTicketById(string id);
  
      [OperationContract]
      [WebInvoke(Method = "GET",
          ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Wrapped, UriTemplate = "/tickets/show_many?ids={ids}")]
      IQueryable&lt;Ticket&gt; GetSeveralTicketsById(string ids);
  
      [OperationContract]
      [WebInvoke(Method = "PUT", RequestFormat = WebMessageFormat.Json,
          ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare, UriTemplate = "/tickets/{ticket_id}")]
      void UpdateTicket(Ticket ticket, string ticket_id);
  }
  </code></pre>
  
  <p>Here is ticket service markup</p>
  
  <pre><code>&lt;%@ ServiceHost Language="C#" Debug="true" Service="TicketSupportSystem.Rest.Service.TicketService" 
  Factory="System.ServiceModel.Activation.WebServiceHostFactory" CodeBehind="TicketService.svc.cs" %&gt;
  </code></pre>
  
  <p>Here is my actual service implementation</p>
  
  <pre><code>public class TicketService : ITicketService
  {
      TicketManager _ticketManager = new TicketManager();
      public void AddTicket(Ticket ticket)
      {
          _ticketManager.InsertTicket(ticket);
      }
  
      public IQueryable&lt;Ticket&gt; GetAllTickets()
      {
          return _ticketManager.GetAllTickets();
      }
  
      public Ticket GetTicketById(string id)
      {
          int ticketId = Convert.ToInt16(id);
          return _ticketManager.GetTicketById(ticketId);
      }
  
      public IQueryable&lt;Ticket&gt; GetSeveralTicketsById(string ids)
      {
          var idList = ids.Split(',');
          List&lt;Ticket&gt; tickets = new List&lt;Ticket&gt;();
          foreach (var item in idList)
          {
              tickets.Add(GetTicketById(item));
          }
          return tickets.AsQueryable();
      }
  
      public void UpdateTicket(Ticket ticket, string ticket_id)
      {
          int ticketId = Convert.ToInt16(ticket_id);
          ticket.Id = ticketId;
          _ticketManager.UpdateTicket(ticket);
      }
  
  }
  </code></pre>
  
  <p>Here is my Service Configuration (web.config)</p>
  
  <pre><code>&lt;system.serviceModel&gt;
  &lt;bindings&gt;
    &lt;wsHttpBinding&gt;
      &lt;!-- or WsHttpBinding --&gt;
      &lt;binding name="wsHttpBinding" &gt;
        &lt;security mode="Transport"&gt;
          &lt;transport clientCredentialType="Ntlm" proxyCredentialType="Ntlm" /&gt;
        &lt;/security&gt;
      &lt;/binding&gt;
    &lt;/wsHttpBinding&gt;
  &lt;/bindings&gt;
  &lt;services&gt;
    &lt;service name="TicketSupportSystem.Rest.Service.ITicketService" behaviorConfiguration="ServiceBehaviour"&gt;
      &lt;endpoint name="restTicketService" address="web" binding="webHttpBinding" contract="TicketSupportSystem.Rest.Service.ITicketService"  behaviorConfiguration="web"&gt;
      &lt;/endpoint&gt;
      &lt;endpoint name="soapTicketService" address="soap" binding="wsHttpBinding" contract="TicketSupportSystem.Rest.Service.ITicketService" &gt;
      &lt;/endpoint&gt;
    &lt;/service&gt;
    &lt;service name="TicketSupportSystem.Rest.Service.ITicketCommentService"  behaviorConfiguration="ServiceBehaviour"&gt;
      &lt;endpoint address="" binding="webHttpBinding" contract="TicketSupportSystem.Rest.Service.ITicketCommentService"  behaviorConfiguration="web"&gt;
      &lt;/endpoint&gt;
      &lt;endpoint address="" binding="wsHttpBinding" contract="TicketSupportSystem.Rest.Service.ITicketCommentService"  &gt;
      &lt;/endpoint&gt;
      &lt;endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /&gt;
  
    &lt;/service&gt;
    &lt;service name="TicketSupportSystem.Rest.Service.IUserIdentityService"  behaviorConfiguration="ServiceBehaviour"&gt;
      &lt;endpoint address="" binding="webHttpBinding" contract="TicketSupportSystem.Rest.Service.IUserIdentityService"  behaviorConfiguration="web"&gt;
      &lt;/endpoint&gt;
      &lt;endpoint address="" binding="wsHttpBinding" contract="TicketSupportSystem.Rest.Service.IUserIdentityService" &gt;
      &lt;/endpoint&gt;
      &lt;endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /&gt;
  
    &lt;/service&gt;
  
  &lt;/services&gt;
  &lt;behaviors&gt;
    &lt;endpointBehaviors&gt;
      &lt;behavior name="web"&gt;
        &lt;enableWebScript/&gt;
      &lt;/behavior&gt;
    &lt;/endpointBehaviors&gt;
    &lt;serviceBehaviors&gt;
      &lt;behavior name="ServiceBehaviour"&gt;
        &lt;serviceMetadata httpGetEnabled="true" /&gt;
        &lt;serviceDebug includeExceptionDetailInFaults="true" /&gt;
      &lt;/behavior&gt;
    &lt;/serviceBehaviors&gt;
  &lt;/behaviors&gt;
  &lt;serviceHostingEnvironment  multipleSiteBindingsEnabled="true" /&gt;
  </code></pre>
  
  <p></p>
  
  <p>When I go to url <strong><a href="http://example.com/TicketService.svc/tickets" rel="nofollow">http://example.com/TicketService.svc/tickets</a></strong> it gives me correct data for rest endpoint</p>
  
  <p>and </p>
  
  <p>When I go to url <strong><a href="http://example.com/TicketService.svc/soap" rel="nofollow">http://example.com/TicketService.svc/soap</a></strong> it gives me <strong>Endpoint not found.</strong></p>
  
  <p>so not able to create proxy for soap service.</p>
  
  <p>Thanks in advance for your time to review my question.</p>