How to pass multiple parameter in wcf restful service?

前端 未结 3 548
故里飘歌
故里飘歌 2020-12-08 16:07

IService.cs

[OperationContract]
[WebGet(UriTemplate = \"/IsValidUser?userid={userid}&password={password}\", RequestFormat = WebMessageFo         


        
3条回答
  •  感动是毒
    2020-12-08 16:52

    try this

    [OperationContract]
    [WebGet(UriTemplate = "IsValidUser?userid={userid}&password={password}", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
    string IsValidUser(string userid, string password);
    

提交回复
热议问题