From cf7bed0de4f03ea7c8618bd007887d56080e13e5 Mon Sep 17 00:00:00 2001 From: Zeeshaun Date: Wed, 1 Apr 2026 16:25:48 +0000 Subject: [PATCH] Updating --- .../CoreSoapUtilities/CoreSoapRequest.cs | 6 ++++-- .../Models/SoapConfiguration.cs | 4 +++- .../LCU.API.Internal.CoreSoapApiWrapper/Web.Debug.config | 1 + .../LCU.API.Internal.CoreSoapApiWrapper/Web.Release.config | 1 + .../LCU.API.Internal.CoreSoapApiWrapper/Web.Uat.config | 1 + .../LCU.API.Internal.CoreSoapApiWrapper/Web.config | 1 + .../kustomize/overlays/prd/appsettings/appsettings.config | 1 + .../kustomize/overlays/qa/appsettings/appsettings.config | 1 + .../kustomize/overlays/uat/appsettings/appsettings.config | 1 + 9 files changed, 14 insertions(+), 3 deletions(-) diff --git a/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/CoreSoapUtilities/CoreSoapRequest.cs b/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/CoreSoapUtilities/CoreSoapRequest.cs index dbb75f9..2555b8d 100644 --- a/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/CoreSoapUtilities/CoreSoapRequest.cs +++ b/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/CoreSoapUtilities/CoreSoapRequest.cs @@ -44,7 +44,9 @@ namespace LCU.API.Internal.CoreSoapApiWrapper.CoreSoapUtilities private TransactionOutput SubmitTransactionInput(TransactionInput transactionInput) { - var client = new CoreApiServiceClient(_soapConfiguration.Endpoint); + var client = string.IsNullOrWhiteSpace(_soapConfiguration.CoreApiServiceUrl) + ? new CoreApiServiceClient(_soapConfiguration.Endpoint) + : new CoreApiServiceClient(_soapConfiguration.Endpoint, _soapConfiguration.CoreApiServiceUrl); TransactionOutput output = client.SubmitRequest(transactionInput); if (output?.Output?.UserAuthentication == null || output?.Output?.Responses == null) @@ -60,4 +62,4 @@ namespace LCU.API.Internal.CoreSoapApiWrapper.CoreSoapUtilities return output; } } -} \ No newline at end of file +} diff --git a/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/Models/SoapConfiguration.cs b/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/Models/SoapConfiguration.cs index e6df019..d4ced09 100644 --- a/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/Models/SoapConfiguration.cs +++ b/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/Models/SoapConfiguration.cs @@ -11,6 +11,7 @@ namespace LCU.API.Internal.CoreSoapApiWrapper.Models int defaultValue; SafUrl = ConfigurationManager.AppSettings["soapconnection:safUrl"]; + CoreApiServiceUrl = ConfigurationManager.AppSettings["soapconnection:coreApiServiceUrl"]; DeviceId = ConfigurationManager.AppSettings["soapconnection:deviceId"]; UserId = ReadSecret("/vault/secrets/core-soap-api-wrapper-soap-connection-user-id.json") ?? ConfigurationManager.AppSettings["soapconnection:userId"]; Password = ReadSecret("/vault/secrets/core-soap-api-wrapper-soap-connection-password.json") ?? ConfigurationManager.AppSettings["soapconnection:password"]; @@ -47,6 +48,7 @@ namespace LCU.API.Internal.CoreSoapApiWrapper.Models } public string SafUrl { get; set; } + public string CoreApiServiceUrl { get; set; } public string DeviceId { get; set; } public string UserId { get; set; } public string Password { get; set; } @@ -66,4 +68,4 @@ namespace LCU.API.Internal.CoreSoapApiWrapper.Models public string RequestType { get; set; } public string AuthenticationType { get; set; } } -} \ No newline at end of file +} diff --git a/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/Web.Debug.config b/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/Web.Debug.config index 252eb2a..83bb955 100644 --- a/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/Web.Debug.config +++ b/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/Web.Debug.config @@ -13,6 +13,7 @@ + diff --git a/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/Web.Release.config b/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/Web.Release.config index 5fff49e..dbbc90a 100644 --- a/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/Web.Release.config +++ b/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/Web.Release.config @@ -16,6 +16,7 @@ + diff --git a/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/Web.Uat.config b/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/Web.Uat.config index 68dc77e..f2ffaa6 100644 --- a/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/Web.Uat.config +++ b/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/Web.Uat.config @@ -16,6 +16,7 @@ + diff --git a/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/Web.config b/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/Web.config index ce9ce58..9314daf 100644 --- a/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/Web.config +++ b/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/Web.config @@ -28,6 +28,7 @@ + diff --git a/LCU.API.Internal.CoreSoapApiWrapper/kustomize/overlays/prd/appsettings/appsettings.config b/LCU.API.Internal.CoreSoapApiWrapper/kustomize/overlays/prd/appsettings/appsettings.config index 20c938a..709682a 100644 --- a/LCU.API.Internal.CoreSoapApiWrapper/kustomize/overlays/prd/appsettings/appsettings.config +++ b/LCU.API.Internal.CoreSoapApiWrapper/kustomize/overlays/prd/appsettings/appsettings.config @@ -10,6 +10,7 @@ + diff --git a/LCU.API.Internal.CoreSoapApiWrapper/kustomize/overlays/qa/appsettings/appsettings.config b/LCU.API.Internal.CoreSoapApiWrapper/kustomize/overlays/qa/appsettings/appsettings.config index 8260a2d..28b6b2c 100644 --- a/LCU.API.Internal.CoreSoapApiWrapper/kustomize/overlays/qa/appsettings/appsettings.config +++ b/LCU.API.Internal.CoreSoapApiWrapper/kustomize/overlays/qa/appsettings/appsettings.config @@ -10,6 +10,7 @@ + diff --git a/LCU.API.Internal.CoreSoapApiWrapper/kustomize/overlays/uat/appsettings/appsettings.config b/LCU.API.Internal.CoreSoapApiWrapper/kustomize/overlays/uat/appsettings/appsettings.config index f1c8a4c..5be4ef7 100644 --- a/LCU.API.Internal.CoreSoapApiWrapper/kustomize/overlays/uat/appsettings/appsettings.config +++ b/LCU.API.Internal.CoreSoapApiWrapper/kustomize/overlays/uat/appsettings/appsettings.config @@ -10,6 +10,7 @@ +