当前位置: 代码迷 >> Web Service >> wcf 接收List類型參數,UriTemplate怎寫?解决方案
  详细解决方案

wcf 接收List類型參數,UriTemplate怎寫?解决方案

热度:252   发布时间:2016-05-02 02:38:32.0
wcf 接收List類型參數,UriTemplate怎寫?
例如:
[OperationContract]
    [WebInvoke(Method = "POST",
     ResponseFormat = WebMessageFormat.Json,
     UriTemplate = "AddUsers/這裡怎填?")]
    void AddUsers(List<string> users);
------解决方案--------------------
List<string> users 是Post的,在Request Body里。Uri里不需要。
  相关解决方案