コード例 #1
0
        public void TraceWebApi(DOGEN_AEGPSServiceTrace objDOGEN_AEGPSServiceTrace)
        {
            BLServiceRequestResponse objBLServiceRequestResponse = new BLServiceRequestResponse();

            objBLServiceRequestResponse.InsertAEGPSServiceTrace(objDOGEN_AEGPSServiceTrace);
        }
コード例 #2
0
        public void GetMemberDemographicalDetails(DOGEN_GPSServiceRequestParameter objDOGEN_GPSServiceRequestParameter, out List <DOGEN_GPSData> lstDOGEN_GPSData, out string errorMessage)
        {
            errorMessage = string.Empty;
            string responseData1 = string.Empty;
            string inputData     = string.Empty;
            BLServiceRequestResponse objBLServiceRequestResponse = new BLServiceRequestResponse();
            DOGEN_AEGPSServiceTrace  objDOGEN_AEGPSServiceTrace  = new DOGEN_AEGPSServiceTrace();

            objDOGEN_AEGPSServiceTrace.CreatedByRef         = objDOGEN_GPSServiceRequestParameter.LoggedInUserId;
            objDOGEN_AEGPSServiceTrace.WebServiceMethodName = MethodBase.GetCurrentMethod().ToString();
            objDOGEN_AEGPSServiceTrace.WebServiceMethodLkup = (long)WebserviceMethod.GetMemberDemographicalDetails;
            objDOGEN_AEGPSServiceTrace.GEN_QueueRef         = objDOGEN_GPSServiceRequestParameter.ERSCaseId.ToInt64();


            srvAERetrieveDemographics.RetrieveDemographicsClient client = new srvAERetrieveDemographics.RetrieveDemographicsClient();
            client.Endpoint.EndpointBehaviors.Add(new GPSHeaderService.CustomEndpointBehavior());
            srvAERetrieveDemographics.retrieveDemographicsRequest  request         = new srvAERetrieveDemographics.retrieveDemographicsRequest();
            srvAERetrieveDemographics.retrieveDemographicsResponse response        = new srvAERetrieveDemographics.retrieveDemographicsResponse();
            srvAERetrieveDemographics.shipInformationType          shipInformation = new srvAERetrieveDemographics.shipInformationType();
            srvAERetrieveDemographics.requestHeader            reqHeader           = new srvAERetrieveDemographics.requestHeader();
            srvAERetrieveDemographics.gpsSystemParametersType  sysParameter        = new srvAERetrieveDemographics.gpsSystemParametersType();
            srvAERetrieveDemographics.wesbSystemParametersType webSysParameters    = new srvAERetrieveDemographics.wesbSystemParametersType();
            srvAERetrieveDemographics.controlModifiersType     credentials         = new srvAERetrieveDemographics.controlModifiersType();
            request.medicareClaimNumber = objDOGEN_GPSServiceRequestParameter.MedicareClaimNumber;

            //As Per UPM
            sysParameter.clientId             = System.Configuration.ConfigurationManager.AppSettings["AEClientId"].ToString();
            sysParameter.userId               = System.Configuration.ConfigurationManager.AppSettings["AEUserId"].ToString();
            reqHeader.applicationInstanceName = System.Configuration.ConfigurationManager.AppSettings["ApplicationInstantName"].ToString();
            reqHeader.applicationName         = System.Configuration.ConfigurationManager.AppSettings["ApplicationName"].ToString();
            //reqHeader.logLevel = srvAETrrDetails.logLevel.DEBUG;
            //reqHeader.externalId = "AELLOT-kZVPi";
            webSysParameters.environment     = "test_sys1";
            webSysParameters.fromAddress     = "https://portal.uhc.com/";
            webSysParameters.userName        = "******";
            credentials.wesbSystemParameters = webSysParameters;
            credentials.gpsSystemParameters  = sysParameter;
            request.businessType             = "GOVT";
            request.shipInformation          = shipInformation;
            request.controlModifiers         = credentials;
            request.requestHeader            = reqHeader;
            inputData = "medicareClaimNumber:||" + request.medicareClaimNumber;
            objDOGEN_AEGPSServiceTrace.RequestData = inputData;
            lstDOGEN_GPSData = new List <DOGEN_GPSData>();
            errorMessage     = string.Empty;
            ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
            client.Open();
            try
            {
                response = client.invokeService(request);
                if (response != null && !response.demographics.IsNull())
                {
                    var responseData = response.demographics;
                    if (!responseData.IsNull())
                    {
                        objDOGEN_AEGPSServiceTrace.ResponseData = responseData.ObjToJsonString();
                        objDOGEN_AEGPSServiceTrace.StatusLkup   = (long)WebserviceStatus.Success;
                        MappingDemographicDetails(responseData, out lstDOGEN_GPSData);
                    }
                    else
                    {
                        errorMessage = response.responseHeader.statusMessages[0].statusMessage1.NullToString();
                        objDOGEN_AEGPSServiceTrace.StatusLkup   = (long)WebserviceStatus.Failed;
                        objDOGEN_AEGPSServiceTrace.ResponseData = responseData.ObjToJsonString();
                    }
                }
                else
                {
                    errorMessage = response.responseHeader.statusMessages[0].statusMessage1;
                    objDOGEN_AEGPSServiceTrace.StatusLkup   = (long)WebserviceStatus.Failed;
                    objDOGEN_AEGPSServiceTrace.ResponseData = errorMessage;
                }
            }
            catch (System.ServiceModel.FaultException ex)
            {
                errorMessage = ex.Message;
                objDOGEN_AEGPSServiceTrace.StatusLkup   = (long)WebserviceStatus.Failed;
                objDOGEN_AEGPSServiceTrace.ResponseData = errorMessage;
                BLCommon.LogError(objDOGEN_GPSServiceRequestParameter.LoggedInUserId, MethodBase.GetCurrentMethod().ToString(), (long)ErrorModuleName.GPSWebservice, (long)ExceptionTypes.Exception, ex.ToString(), ex.ToString());
            }
            finally
            {
                objBLServiceRequestResponse.InsertAEGPSServiceTrace(objDOGEN_AEGPSServiceTrace);
                client.Close();
            }
        }
コード例 #3
0
ファイル: SendOOALetter.cs プロジェクト: amitthanki/mvcdemo
        /// <summary>
        ///
        /// </summary>
        /// <param name="objDOGEN_GPSServiceRequestParameter"></param>
        /// <param name="errorMessage"></param>
        private void MaintainOutOfAreaServiceService(DOGEN_GPSServiceRequestParameter objDOGEN_GPSServiceRequestParameter, out string errorMessage)
        {
            errorMessage = string.Empty;
            string responseData = string.Empty;
            string inputData    = string.Empty;
            BLServiceRequestResponse objBLServiceRequestResponse = new BLServiceRequestResponse();
            DOGEN_AEGPSServiceTrace  objDOGEN_AEGPSServiceTrace  = new DOGEN_AEGPSServiceTrace();

            objDOGEN_AEGPSServiceTrace.CreatedByRef         = objDOGEN_GPSServiceRequestParameter.LoggedInUserId;
            objDOGEN_AEGPSServiceTrace.WebServiceMethodName = MethodBase.GetCurrentMethod().ToString();
            objDOGEN_AEGPSServiceTrace.WebServiceMethodLkup = (long)WebserviceMethod.MaintainOutOfAreaServiceService;
            objDOGEN_AEGPSServiceTrace.GEN_QueueRef         = objDOGEN_GPSServiceRequestParameter.CaseNumber.IsNull() ? 0 : objDOGEN_GPSServiceRequestParameter.CaseNumber.ToInt64();

            srvAEoutOfAreaOption.PutOutofareaoptionClient client = new srvAEoutOfAreaOption.PutOutofareaoptionClient();
            client.Endpoint.EndpointBehaviors.Add(new GPSHeaderService.CustomEndpointBehavior());
            srvAEoutOfAreaOption.putOutOfAreaOptionRequest  request  = new srvAEoutOfAreaOption.putOutOfAreaOptionRequest();
            srvAEoutOfAreaOption.putOutOfAreaOptionResponse response = new srvAEoutOfAreaOption.putOutOfAreaOptionResponse();
            srvAEoutOfAreaOption.requestHeader reqHeader             = new srvAEoutOfAreaOption.requestHeader();

            srvAEoutOfAreaOption.gpsSystemParametersType sysParameter = new srvAEoutOfAreaOption.gpsSystemParametersType();
            srvAEoutOfAreaOption.controlModifiersType    credentials  = new srvAEoutOfAreaOption.controlModifiersType();
            srvAEoutOfAreaOption.putOutOfAreaOptionRequestOutOfAreaOptionRequest reqParameter = new srvAEoutOfAreaOption.putOutOfAreaOptionRequestOutOfAreaOptionRequest();
            reqParameter.caseNumber  = objDOGEN_GPSServiceRequestParameter.CaseNumber;
            reqParameter.householdId = objDOGEN_GPSServiceRequestParameter.HouseholdId;
            reqParameter.outOfAreaDisenrollmentDate = objDOGEN_GPSServiceRequestParameter.OutOfAreaDisenrollmentDate;
            reqParameter.sendFulfillmentInd         = "Y";
            reqParameter.outOfAreaInd      = "Y";
            request.outOfAreaOptionRequest = reqParameter;
            inputData = "caseNumber:||" + reqParameter.caseNumber + "||householdId:||" + reqParameter.householdId + "||outOfAreaDisenrollmentDate:||" + reqParameter.outOfAreaDisenrollmentDate + "||sendFulfillmentInd:||" + reqParameter.sendFulfillmentInd + "||outOfAreaInd:||" + reqParameter.outOfAreaInd;
            objDOGEN_AEGPSServiceTrace.RequestData = inputData;

            //As Per UPM
            sysParameter.clientId             = System.Configuration.ConfigurationManager.AppSettings["AEClientId"].ToString();
            sysParameter.userId               = System.Configuration.ConfigurationManager.AppSettings["AEUserId"].ToString();
            reqHeader.applicationInstanceName = System.Configuration.ConfigurationManager.AppSettings["ApplicationInstantName"].ToString();
            reqHeader.applicationName         = System.Configuration.ConfigurationManager.AppSettings["ApplicationName"].ToString();
            //reqHeader.logLevel = srvAETrrDetails.logLevel.DEBUG;
            //reqHeader.externalId = "AELLOT-kZVPi";
            credentials.gpsSystemParameters = sysParameter;
            request.outOfAreaOptionRequest.controlModifiers = credentials;
            request.requestHeader = reqHeader;
            ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

            client.Open();
            try
            {
                response = client.invokeService(request);
                if (!response.outOfAreaOption.IsNull() && response.outOfAreaOption.Length > 0 && response.outOfAreaOption[0].description == "SUCCESS")
                {
                    responseData = "outOfAreaOption:||" + response.outOfAreaOption + "||Description:||" + response.outOfAreaOption[0].description;
                    objDOGEN_AEGPSServiceTrace.ResponseData = responseData;
                    objDOGEN_AEGPSServiceTrace.StatusLkup   = (long)WebserviceStatus.Success;
                }
                else
                {
                    string statusMessage = (response.responseHeader != null && response.responseHeader.statusMessages != null && response.responseHeader.statusMessages.Length > 0) ? response.responseHeader.statusMessages[0].statusMessage1 : null;
                    responseData = "outOfAreaOption:||" + response.outOfAreaOption + "||reponseHeader:||" + statusMessage;
                    errorMessage = statusMessage != null ? statusMessage : "An error occured during web service call";
                    objDOGEN_AEGPSServiceTrace.ResponseData = responseData;
                    objDOGEN_AEGPSServiceTrace.StatusLkup   = (long)WebserviceStatus.Failed;
                }
            }
            catch (System.ServiceModel.FaultException ex)
            {
                errorMessage = ex.Message;
                objDOGEN_AEGPSServiceTrace.StatusLkup   = (long)WebserviceStatus.Failed;
                objDOGEN_AEGPSServiceTrace.ResponseData = errorMessage;
                BLCommon.LogError(objDOGEN_GPSServiceRequestParameter.LoggedInUserId, MethodBase.GetCurrentMethod().ToString(), (long)ErrorModuleName.GPSWebservice, (long)ExceptionTypes.Exception, ex.ToString(), ex.ToString());
            }
            finally
            {
                objBLServiceRequestResponse.InsertAEGPSServiceTrace(objDOGEN_AEGPSServiceTrace);
                client.Close();
            }
        }
コード例 #4
0
        public ExceptionTypes GetMemberEligibility(string strAccountId, out string MBI)
        {
            ExceptionTypes result = ExceptionTypes.UnknownError;

            MBI = string.Empty;
            BLServiceRequestResponse objBLServiceRequestResponse = new BLServiceRequestResponse();

            srvAEMemberEligibility.ReadOvationsMemberEligibilityClient client = new srvAEMemberEligibility.ReadOvationsMemberEligibilityClient();
            DOGEN_AEGPSServiceTrace objDOGEN_AEGPSServiceTrace = new DOGEN_AEGPSServiceTrace();

            objDOGEN_AEGPSServiceTrace.WebServiceMethodLkup = (long)WebserviceMethod.GetMemberEligibilityService;
            objDOGEN_AEGPSServiceTrace.CreatedByRef         = _lCurrentMasterUserId;
            objDOGEN_AEGPSServiceTrace.WebServiceMethodName = MethodBase.GetCurrentMethod().ToString();
            objDOGEN_AEGPSServiceTrace.GEN_QueueRef         = 0;
            objDOGEN_AEGPSServiceTrace.RequestData          = "Account Id:||" + strAccountId;
            try
            {
                //Header
                client.Endpoint.EndpointBehaviors.Add(new GPSHeaderService.CustomEndpointBehavior());
                srvAEMemberEligibility.readOvationsMemberEligibilityRequest  request          = new srvAEMemberEligibility.readOvationsMemberEligibilityRequest();
                srvAEMemberEligibility.readOvationsMemberEligibilityResponse response         = new srvAEMemberEligibility.readOvationsMemberEligibilityResponse();
                srvAEMemberEligibility.employerIdSearchCriteriaType          empSerachDetails = new srvAEMemberEligibility.employerIdSearchCriteriaType();
                srvAEMemberEligibility.accountIdSearchCriteriaType           accSearchType    = new srvAEMemberEligibility.accountIdSearchCriteriaType();
                srvAEMemberEligibility.requestHeader           reqHeader        = new srvAEMemberEligibility.requestHeader();
                srvAEMemberEligibility.gpsSystemParametersType sysParameter     = new srvAEMemberEligibility.gpsSystemParametersType();
                srvAEMemberEligibility.controlModifiersType    controlModifiers = new srvAEMemberEligibility.controlModifiersType();

                accSearchType.accountId         = strAccountId;
                request.searchType              = "ACCOUNT";
                request.householdSearchCriteria = accSearchType;

                sysParameter.clientId                            = System.Configuration.ConfigurationManager.AppSettings["AEClientId"].ToString();
                sysParameter.userId                              = System.Configuration.ConfigurationManager.AppSettings["AEUserId"].ToString();
                reqHeader.applicationInstanceName                = System.Configuration.ConfigurationManager.AppSettings["ApplicationInstantName"].ToString();
                reqHeader.applicationName                        = System.Configuration.ConfigurationManager.AppSettings["ApplicationName"].ToString();
                controlModifiers.gpsSystemParameters             = sysParameter;
                controlModifiers.getPlanProfileIndicator         = true;
                controlModifiers.includeApplicationData          = true;
                controlModifiers.includeApplicationDataSpecified = true;
                request.controlModifiers                         = controlModifiers;
                request.requestHeader                            = reqHeader;
                ServicePointManager.SecurityProtocol             = SecurityProtocolType.Tls12;

                client.Open();

                response = client.invokeService(request);
                if (response != null)
                {
                    var responseOutput = response.account;
                    if (!responseOutput[0].IsNull())
                    {
                        var household = responseOutput[0].householdIndividual[0];
                        objDOGEN_AEGPSServiceTrace.ResponseData = response.ObjToJsonString();
                        objDOGEN_AEGPSServiceTrace.StatusLkup   = (long)WebserviceStatus.Success;

                        MBI = household.medicareClaimNumber.NullToString();

                        result = ExceptionTypes.Success;
                    }
                    else
                    {
                        objDOGEN_AEGPSServiceTrace.StatusLkup   = (long)WebserviceStatus.Failed;
                        objDOGEN_AEGPSServiceTrace.ResponseData = response.ObjToJsonString();
                        result = ExceptionTypes.ZeroRecords;
                    }
                }
                else
                {
                    objDOGEN_AEGPSServiceTrace.StatusLkup   = (long)WebserviceStatus.Failed;
                    objDOGEN_AEGPSServiceTrace.ResponseData = response.responseHeader.statusMessages[0].statusMessage1;;
                    result = ExceptionTypes.RemoteCallException;
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine("Error : " + ex.Message);
                objDOGEN_AEGPSServiceTrace.StatusLkup   = (long)WebserviceStatus.Failed;
                objDOGEN_AEGPSServiceTrace.ResponseData = ex.Message;
                BLCommon.LogError(_lCurrentMasterUserId, MethodBase.GetCurrentMethod().ToString(), (long)ErrorModuleName.BGPMQProcess, (long)ExceptionTypes.Exception, ex.ToString(), ex.ToString());
                result = ExceptionTypes.Exception;
            }
            finally
            {
                objBLServiceRequestResponse.InsertAEGPSServiceTrace(objDOGEN_AEGPSServiceTrace);
                client.Close();
            }
            return(result);
        }
コード例 #5
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="objDOGEN_GPSServiceRequestParameter"></param>
        /// <param name="errorMessage"></param>
        public void CreateCMSTransactionService(DOGEN_GPSServiceRequestParameter objDOGEN_GPSServiceRequestParameter, out string errorMessage)
        {
            string responseData = string.Empty;
            string inputData    = string.Empty;

            errorMessage = string.Empty;
            BLServiceRequestResponse objBLServiceRequestResponse = new BLServiceRequestResponse();
            DOGEN_AEGPSServiceTrace  objDOGEN_AEGPSServiceTrace  = new DOGEN_AEGPSServiceTrace();

            objDOGEN_AEGPSServiceTrace.CreatedByRef         = objDOGEN_GPSServiceRequestParameter.LoggedInUserId;
            objDOGEN_AEGPSServiceTrace.WebServiceMethodName = MethodBase.GetCurrentMethod().ToString();
            objDOGEN_AEGPSServiceTrace.WebServiceMethodLkup = (long)WebserviceMethod.CreateCMSTransactionService;
            objDOGEN_AEGPSServiceTrace.GEN_QueueRef         = objDOGEN_GPSServiceRequestParameter.CaseNumber.IsNull() ? 0 : objDOGEN_GPSServiceRequestParameter.CaseNumber.ToInt64();

            srvAECMSTransaction.PostCmstransactionClient client = new srvAECMSTransaction.PostCmstransactionClient();
            client.Endpoint.EndpointBehaviors.Add(new GPSHeaderService.CustomEndpointBehavior());
            srvAECMSTransaction.postCmstransactionRequest  request     = new srvAECMSTransaction.postCmstransactionRequest();
            srvAECMSTransaction.postCmstransactionResponse response    = new srvAECMSTransaction.postCmstransactionResponse();
            srvAECMSTransaction.requestHeader           reqHeader      = new srvAECMSTransaction.requestHeader();
            srvAECMSTransaction.gpsSystemParametersType sysParameter   = new srvAECMSTransaction.gpsSystemParametersType();
            srvAECMSTransaction.controlModifiersType    credentials    = new srvAECMSTransaction.controlModifiersType();
            srvAECMSTransaction.cmstransaction          requestDetails = new srvAECMSTransaction.cmstransaction();

            //requestDetails.applicationDate = objDOGEN_GPSServiceRequestParameter.ApplicationDate;
            requestDetails.birthDate      = objDOGEN_GPSServiceRequestParameter.BirthDate;
            requestDetails.caseNumber     = objDOGEN_GPSServiceRequestParameter.CaseNumber;
            requestDetails.contractNumber = objDOGEN_GPSServiceRequestParameter.ContractNumber;
            //requestDetails.effectiveEndDate = objDOGEN_GPSServiceRequestParameter.EffectiveEndDate;
            requestDetails.effectiveStartDate = objDOGEN_GPSServiceRequestParameter.EffectiveStartDate;
            //requestDetails.electionType = objDOGEN_GPSServiceRequestParameter.ElectionType;
            requestDetails.medicareClaimNumber = objDOGEN_GPSServiceRequestParameter.MedicareClaimNumber;
            requestDetails.lastName            = objDOGEN_GPSServiceRequestParameter.LastName;
            requestDetails.pbpNo           = objDOGEN_GPSServiceRequestParameter.PbpNo;
            requestDetails.transactionCode = objDOGEN_GPSServiceRequestParameter.TransactionCode;
            inputData = "birthDate:||" + requestDetails.birthDate + "||caseNumber:||" + requestDetails.caseNumber + "||contractNumber:||" + requestDetails.contractNumber + "||effectiveStartDate:||" + requestDetails.effectiveStartDate + "||medicareClaimNumber:||" + requestDetails.medicareClaimNumber + "||lastName:||" + requestDetails.lastName + "||pbpNo:||" + requestDetails.pbpNo + "||transactionCode:||" + requestDetails.transactionCode;
            objDOGEN_AEGPSServiceTrace.RequestData = inputData;
            //As Per UPM
            sysParameter.clientId             = System.Configuration.ConfigurationManager.AppSettings["AEClientId"].ToString();
            sysParameter.userId               = System.Configuration.ConfigurationManager.AppSettings["AEUserId"].ToString();
            reqHeader.applicationInstanceName = System.Configuration.ConfigurationManager.AppSettings["ApplicationInstantName"].ToString();
            reqHeader.applicationName         = System.Configuration.ConfigurationManager.AppSettings["ApplicationName"].ToString();
            //reqHeader.logLevel = srvAETrrDetails.logLevel.DEBUG;
            //reqHeader.externalId = "AELLOT-kZVPi";
            credentials.gpsSystemParameters      = sysParameter;
            request.controlModifiers             = credentials;
            request.requestHeader                = reqHeader;
            request.cmstransaction               = requestDetails;
            ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
            client.Open();
            try
            {
                response = client.invokeService(request);
                if (!response.result.IsNull())
                {
                    responseData = "caseNumber:||" + response.caseNumber + "||medicareClaimNumber:||" + response.medicareClaimNumber + "||result:||" + response.result + "||reponseHeader:||" + "Accept";
                    objDOGEN_AEGPSServiceTrace.ResponseData = responseData;
                    objDOGEN_AEGPSServiceTrace.StatusLkup   = (long)WebserviceStatus.Success;
                }
                else
                {
                    responseData = "caseNumber:||" + response.caseNumber + "||medicareClaimNumber:||" + response.medicareClaimNumber + "||result:||" + response.result + "||reponseHeader:||" + response.responseHeader.statusMessages[0].statusMessage1.NullToString();
                    errorMessage = response.responseHeader.statusMessages[0].statusMessage1.NullToString();
                    objDOGEN_AEGPSServiceTrace.ResponseData = responseData;
                    objDOGEN_AEGPSServiceTrace.StatusLkup   = (long)WebserviceStatus.Failed;
                }

                //if (!response.outOfAreaOption.IsNull() && response.outOfAreaOption.Length > 0 && response.outOfAreaOption[0].description == "SUCCESS")
                //{
                //    responseData = "outOfAreaOption:||" + response.outOfAreaOption + "||Description:||" + response.outOfAreaOption[0].description;
                //    objDOGEN_AEGPSServiceTrace.ResponseData = responseData;
                //    objDOGEN_AEGPSServiceTrace.StatusLkup = (long)WebserviceStatus.Success;
                //}
                //else
                //{
                //    string statusMessage = (response.responseHeader != null && response.responseHeader.statusMessages != null && response.responseHeader.statusMessages.Length > 0) ? response.responseHeader.statusMessages[0].statusMessage1 : null;
                //    responseData = "outOfAreaOption:||" + response.outOfAreaOption + "||reponseHeader:||" + statusMessage;
                //    errorMessage = statusMessage != null ? statusMessage : "An error occured during web service call";
                //    objDOGEN_AEGPSServiceTrace.ResponseData = responseData;
                //    objDOGEN_AEGPSServiceTrace.StatusLkup = (long)WebserviceStatus.Failed;
                //}
            }
            catch (System.ServiceModel.FaultException ex)
            {
                errorMessage = ex.Message;
                objDOGEN_AEGPSServiceTrace.StatusLkup   = (long)WebserviceStatus.Failed;
                objDOGEN_AEGPSServiceTrace.ResponseData = errorMessage;
                BLCommon.LogError(objDOGEN_GPSServiceRequestParameter.LoggedInUserId, MethodBase.GetCurrentMethod().ToString(), (long)ErrorModuleName.GPSWebservice, (long)ExceptionTypes.Exception, ex.ToString(), ex.ToString());
            }
            finally
            {
                objBLServiceRequestResponse.InsertAEGPSServiceTrace(objDOGEN_AEGPSServiceTrace);
                client.Close();
            }
        }