1. 右健 svc , view markup, 添加
Factory="System.ServiceModel.Activation.WebServiceHostFactory"
2. 在接口上添加:
[WebInvoke(UriTemplate = "{name}/{type}/{count}", Method = "GET", ResponseFormat = WebMessageFormat.Json)]
时间: 2024-12-24 06:46:56
1. 右健 svc , view markup, 添加
Factory="System.ServiceModel.Activation.WebServiceHostFactory"
2. 在接口上添加:
[WebInvoke(UriTemplate = "{name}/{type}/{count}", Method = "GET", ResponseFormat = WebMessageFormat.Json)]