【发布时间】:2015-06-03 14:51:16
【问题描述】:
我正在尝试将请求从 Fiddler 发送到我的 WCF 网络服务。
当我发送 HTTP/1.2 请求时,它可以工作,但是当我尝试发送 HTTP/2 请求时,我得到了响应:
HTTP 错误 505。请求中的 HTTP 版本不受支持
我的合同是这样定义的:
[WebInvoke(Method = "POST", UriTemplate = "/GetEmployees", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
string GetEmployees(Stream jsonParameter);
我的端点是这样定义的:
<endpoint address="XMLService" behaviorConfiguration="restPoxBehavior"
binding="webHttpBinding" bindingConfiguration="" contract="WCF_SOAP_REST_Service.IService" />
<behavior name="restPoxBehavior">
<webHttp />
</behavior>
我做错了什么?
【问题讨论】:
标签: c# web-services wcf http