【发布时间】:2015-11-18 18:03:16
【问题描述】:
我有json请求参数
{ “经验”:0, “iat”:0, “方法”:“登录”, "apiSecretKey": "y109m113e122", "用户名": "test@test.com", “密码”:“测试”, “isGuestCustomerId”:1 }并且方法在 WCF rest api 服务中(C#)
登录(字符串 apiSecretKey,字符串用户名,字符串密码,int isGuestCustomerId)我如何将这些请求参数传递给登录方法?
注意:我有大约 200 种方法可以使用不同的参数以这种方式调用,例如
Register(string apiSecretKey, string emailId, string password, string firstName, string lastName, string phoneNumber, string gender, string dateOfBirth, string companyName) 等等不同的方法提前致谢。
【问题讨论】:
-
你需要Reflection,很多。