public async Task <IActionResult> GetAccountAsync([FromRoute] String Account)
        {
            if (Account.Length == 0 || Account.Equals("") || Account == null)
            {
                OkObjectResult result = Ok(new { result = false, status = HttpStatusCode.NotFound, message = "something input wrong", data = "" });
                return(result);
            }

            try {
                var proxy = new FCUBSAccServiceSEIClient();
                await proxy.OpenAsync();

                ServiceReference1.FCUBS_HEADERType header = new ServiceReference1.FCUBS_HEADERType();
                QUERYCUSTACC_IOFS_REQ           reqMsg    = new QUERYCUSTACC_IOFS_REQ();
                QUERYCUSTACC_IOFS_REQFCUBS_BODY reqbody   = new QUERYCUSTACC_IOFS_REQFCUBS_BODY();

                CustAccQueryIOType body = new CustAccQueryIOType();

                header.SOURCE  = "BEGW";
                header.UBSCOMP = ServiceReference1.UBSCOMPType.FCUBS;
                header.USERID  = "444444";
                header.BRANCH  = "001";
                //header.MODULEID = "WB";
                header.SERVICE   = "FCUBSAccService";
                header.OPERATION = "QueryCustAcc";
                //header.FUNCTIONID = "1006";
                reqMsg.FCUBS_HEADER = header;

                body.BRN = Account.Substring(0, 3); //"001";
                body.ACC = Account;                 //"00120010002550177";
                reqbody.CustAccountIO = body;
                reqMsg.FCUBS_BODY     = reqbody;

                QueryCustAccIOResponse resMsg = await proxy.QueryCustAccIOAsync(reqMsg);

                QUERYCUSTACC_IOFS_RES res = resMsg.QUERYCUSTACC_IOFS_RES;

                ServiceReference1.MsgStatType status = res.FCUBS_HEADER.MSGSTAT;

                if (!status.ToString().Equals("SUCCESS"))
                {
                    //await Task.Delay(2000);
                    OkObjectResult result = Ok(new { result = false, status = HttpStatusCode.NotFound, message = res.FCUBS_BODY.FCUBS_ERROR_RESP[0].EDESC, data = res });
                    return(result);
                }
                else
                {
                    //await Task.Delay(2000);

                    OkObjectResult result = Ok(new { result = true, status = HttpStatusCode.OK, message = res.FCUBS_BODY.FCUBS_WARNING_RESP[0].WDESC, data = res });
                    return(result);
                }
            } catch (Exception ex) {
                //throw ex;
                return(BadRequest(new { result = false, status = HttpStatusCode.BadRequest, data = ex.Message }));
            }
        }
        public void FCUBSACCServiceConnectionOpen()
        {
            try
            {
                oFCUBSAccServiceSEIClient = new FCUBSAccServiceSEIClient();
                //oFCUBSAccServiceSEIClient.ClientCredentials.Windows.ClientCredential.UserName = "******";
                //oFCUBSAccServiceSEIClient.ClientCredentials.Windows.ClientCredential.Password = "******";
                //oFCUBSAccServiceSEIClient.ClientCredentials.UserName.UserName = "******";
                //oFCUBSAccServiceSEIClient.ClientCredentials.UserName.Password = "******";

                oFCUBSAccServiceSEIClient.ClientCredentials.Windows.ClientCredential.UserName = "******";
                oFCUBSAccServiceSEIClient.ClientCredentials.Windows.ClientCredential.Password = "******";
                oFCUBSAccServiceSEIClient.ClientCredentials.UserName.UserName = "******";
                oFCUBSAccServiceSEIClient.ClientCredentials.UserName.Password = "******";


                oFCUBSAccServiceSEIClient.Open();
            }
            catch (Exception ex)
            {
            }
        }