WCF REST error HTTP 307

前端 未结 1 1532
囚心锁ツ
囚心锁ツ 2021-01-06 08:15

I have a REST WCF service. When a POST attempt is made to this service to an operation as mentioned below, I get the below error:

[OperationContract]
[WebInv         


        
相关标签:
1条回答
  • 2021-01-06 08:35

    Change your UriTemplate to "/" instead. RESTful WCF has a "thing" about wanting Uris ending with / instead of no ending.

    Also, use the Uri with the ending slash to avoid WCF responding with the 307.

    0 讨论(0)
提交回复
热议问题