title: RESTful WCF service returns "endpoint not found" error on POST operations
body: <p>I've built a WCF service that's exposed both through SOAP and RESTfully.  All SOAP actions work as advertised.  GETS/PUTS do as well, but when I try to do a POST to an action in my service, I get the following error returned:</p>
  
  <p>"Endpoint not found"</p>
  
  <p>IPersonEditServiceContract snippet:</p>
  
  <pre><code>[OperationContract]
  [WebInvoke(Method="POST", 
     UriTemplate="/persons", 
     RequestFormat=WebMessageFormat.Xml, 
     ResponseFormat=WebMessageFormat.Xml)]
  SavePersonResponse SavePerson(SavePersonRequest request);
  
  
  [OperationContract]
  WebGet(UriTemplate = "/persons/{personId}",
     ResponseFormat = WebMessageFormat.Xml,
     BodyStyle = WebMessageBodyStyle.Bare,
     RequestFormat = WebMessageFormat.Xml)]
  Person GetClaimantById(string personId);
  </code></pre>
  
  <p>Service is configured this way:</p>
  
  <pre><code>&lt;behaviors&gt;
     &lt;endpointBehaviors&gt;
      &lt;behavior name="restBehavior"&gt;
       &lt;webHttp /&gt;
      &lt;/behavior&gt;
     &lt;/endpointBehaviors&gt;
  &lt;/behaviors&gt;
  &lt;services&gt;
    &lt;service&gt;
      &lt;endpoint address="" binding="basicHttpBinding" 
          name="DefaultEndpoint"
          bindingNamespace="http://mycompany.com/ServiceContracts"
          contract="IPersonEditServiceContract" /&gt;
       &lt;endpoint 
           address="rest" binding="webHttpBinding"
           name="RESTEndpoint" 
           bindingNamespace="http://mycompany.com/ServiceContracts"
           contract="IPersonEditServiceContract" 
           behaviorConfiguration="restBehavior"/&gt;
    &lt;/service&gt;
  &lt;/services&gt;
  </code></pre>
  
  <p>Since I can do other RESTful operations against the same endpoint, I'm not entirely sure why it gives me that semi-helpful error.</p>
  
  <p>Ideas?</p>