62,046
社区成员
发帖
与我相关
我的任务
分享
int svrId = 500;
string username = "fddbd";
string sysmd5 = systemKey.Trim() + username;
string md5key = System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(sysmd5, "MD5").ToLower();
BasicHttpBinding binding = new BasicHttpBinding();
binding.SendTimeout = TimeSpan.FromMinutes(5);
binding.ReceiveTimeout = TimeSpan.FromMinutes(5);
string webserviceUrl = GameServers.GetGoldService(svrId);
EndpointAddress address = new EndpointAddress(webserviceUrl);
PaymentLib.XjztGoldService.xiayigame_goldSoapClient goldService = new PaymentLib.XjztGoldService.xiayigame_goldSoapClient(binding, address);
int userId = goldService.GetUserId(username, md5key);