C# WCF Rest Web服务-找不到WebInvoke URL终结点

C# WCF Rest Web服务-找不到WebInvoke URL终结点,c#,wcf,web-services,rest,C#,Wcf,Web Services,Rest,我有一个REST web服务,其方法如下: [OperationContract] [WebInvoke(Method = "GET", ResponseFormat = WebMessageFormat.Xml, BodyStyle = WebMessageBodyStyle.Bare, UriTemplate = "?T={TransmissionReference}&ID={CustomerId}")] ResponseArray DoLookup(string Trans

我有一个REST web服务,其方法如下:

[OperationContract]
[WebInvoke(Method = "GET", ResponseFormat = WebMessageFormat.Xml,
  BodyStyle = WebMessageBodyStyle.Bare,
  UriTemplate = "?T={TransmissionReference}&ID={CustomerId}")]
ResponseArray DoLookup(string TransmissionReference, string CustomerId);
在我的web.config文件中,我设置了一个服务:

<services>
  <service name="PropertyWS.Service">
    <endpoint address="http://localhost:51173/Service.svc/DoLookup"
              behaviorConfiguration="webBehavior"
              binding="webHttpBinding"
              bindingConfiguration="webHttpBindingConfig"
              bindingNamespace="urn:mdWebServiceProperty"
              contract="PropertyWS.IService"
              name="PropertyWSRESTEndpoint"/>
  </service>
</services>
以及我的web.config端点地址。这适用于同一web服务的XML和SOAP版本,但不适用于REST。相反,我得到了一个未找到端点的WCF页面

/DoLookup?T={TransmissionReference}&ID={CustomerId}