public void Init() { Console.WriteLine("Init"); // set up the web service object shopConfigService = new ShopConfigService(); shopConfigService.Credentials = new System.Net.NetworkCredential(WEBSERVICE_LOGIN, WEBSERVICE_PASSWORD); shopConfigService.PreAuthenticate = true; shopConfigService.Url = WEBSERVICE_URL; CleanUp(); }
public async Task <IHttpActionResult> SetConfirmState(string userId, string shopNo, int mtState, int eleState) { try { var service = new ShopConfigService(); await service.SetAsync(userId, shopNo, mtState, eleState); return(Json(Tools.ResultOk())); } catch (Exception e) { _log.DebugFormat("【系统错误】类型:SetConfirmState 信息{0}", e.Message); _log.DebugFormat("【系统错误】类型:SetConfirmState 信息{0}", e.GetOriginalException().Message); return(Json(Tools.ResultErr(e.Message))); } }
private void deleteIfExists(string alias) { ShopConfigService shopConfigService = new ShopConfigService(); shopConfigService.Credentials = new System.Net.NetworkCredential(WEBSERVICE_LOGIN, WEBSERVICE_PASSWORD); shopConfigService.PreAuthenticate = true; shopConfigService.Url = WEBSERVICE_URL; EpagesProviderWebServices.ShopConfigService6Ref.TShopRef shopRef = new EpagesProviderWebServices.ShopConfigService6Ref.TShopRef(); shopRef.Alias = ALIAS; if (shopConfigService.exists(shopRef)) { shopConfigService.deleteShopRef(shopRef); } shopRef.Alias = NEW_ALIAS; if (shopConfigService.exists(shopRef)) { shopConfigService.deleteShopRef(shopRef); } }
public EleCallBackService() { _preProdService = new PreProdService(); _shopConfigService = new ShopConfigService(); }