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 PartsRequiredModel(IRecordContext RecordContext) { _rnConnectService = RightNowConnectService.GetService(); string partsRequiredConfigValue = _rnConnectService.GetConfigValue("CUSTOM_CFG_PARTS_REQUIRED"); if (partsRequiredConfigValue != null) { var s = new JavaScriptSerializer(); var configVerb = s.Deserialize <WebServiceConfigVerbs.RootObject>(partsRequiredConfigValue); _curlURL = configVerb.URL; _xmlnsURL = configVerb.xmlns; _headerURL = configVerb.RESTHeader.xmlns; _respApplication = configVerb.RESTHeader.RespApplication; _responsibility = configVerb.RESTHeader.Responsibility; _securityGroup = configVerb.RESTHeader.SecurityGroup; _nlsLanguage = configVerb.RESTHeader.NLSLanguage; _orgID = configVerb.RESTHeader.Org_Id; } }