public WebServiceRequest(string method) { Timeout = 900000; Method = method; _rnConnectService = RightNowConnectService.GetService(); string webServiceLoginValue = _rnConnectService.GetConfigValue("CUSTOM_CFG_EBS_WS_LOGIN"); if (webServiceLoginValue != null) { var s = new JavaScriptSerializer(); var loginValue = s.Deserialize <WebServiceLoginCredential>(webServiceLoginValue); _userName = loginValue.UserName; _password = loginValue.Password; } }
public SupplierCreditModel() { _rnConnectService = RightNowConnectService.GetService(); string partsOrderConfigValue = _rnConnectService.GetConfigValue("CUSTOM_CFG_SUPPLIER_CREDIT"); if (partsOrderConfigValue != null) { var s = new JavaScriptSerializer(); var configVerb = s.Deserialize <WebServiceConfigVerbs.RootObject>(partsOrderConfigValue); _curlURL = configVerb.URL; _headerURL = configVerb.xmlns; _xmlnsURL = configVerb.RESTHeader.xmlns; _respApplication = configVerb.RESTHeader.RespApplication; _responsibility = configVerb.RESTHeader.Responsibility; _securityGroup = configVerb.RESTHeader.SecurityGroup; _nlsLanguage = configVerb.RESTHeader.NLSLanguage; _orgID = configVerb.RESTHeader.Org_Id; } }