This commit is contained in:
Zeeshaun
2026-04-01 16:25:48 +00:00
parent 793a73278f
commit cf7bed0de4
9 changed files with 14 additions and 3 deletions
@@ -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;
}
}
}
}
@@ -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; }
}
}
}
@@ -13,6 +13,7 @@
<add key="KnownEnvironment" value="Development" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
<!-- Soap Connection-->
<add key="soapconnection:safUrl" value="https://UATapi.dna.lcu-internal.com:10005/SAF/ProductIntegration/ProductIntegration.asmx" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
<add key="soapconnection:coreApiServiceUrl" value="https://UATapi.dna.lcu-internal.com:10005/Extensions/DNA.CoreApiService/CoreApiService.svc/Soap11" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
<add key="soapconnection:deviceId" value="FULL" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
<add key="soapconnection:userId" value="ASERVICE" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
<add key="soapconnection:password" value="ASland21!!" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
@@ -16,6 +16,7 @@
<add key="KnownEnvironment" value="Production" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
<!-- Soap Connection-->
<add key="soapconnection:safUrl" value="https://prodapi.dna.lcu-internal.com:10002/SAF/ProductIntegration/ProductIntegration.asmx" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
<add key="soapconnection:coreApiServiceUrl" value="https://prodapi.dna.lcu-internal.com:10002/Extensions/DNA.CoreApiService/CoreApiService.svc/Soap11" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
<add key="soapconnection:deviceId" value="FULL" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
<add key="soapconnection:userId" value="ASERVICE" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
<add key="soapconnection:password" value="ASland21!!" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
@@ -16,6 +16,7 @@
<add key="KnownEnvironment" value="Staging" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
<!-- Soap Connection-->
<add key="soapconnection:safUrl" value="https://UATapi.dna.lcu-internal.com:10005/SAF/ProductIntegration/ProductIntegration.asmx" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
<add key="soapconnection:coreApiServiceUrl" value="https://UATapi.dna.lcu-internal.com:10005/Extensions/DNA.CoreApiService/CoreApiService.svc/Soap11" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
<add key="soapconnection:deviceId" value="FULL" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
<add key="soapconnection:userId" value="ASERVICE" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
<add key="soapconnection:password" value="ASland21!!" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
@@ -28,6 +28,7 @@
<add key="KnownEnvironment" value="Local" />
<!-- Soap Connection-->
<add key="soapconnection:safUrl" value="" />
<add key="soapconnection:coreApiServiceUrl" value="" />
<add key="soapconnection:deviceId" value="FULL" />
<add key="soapconnection:userId" value="VALUE-IN-KEYVAULT" />
<add key="soapconnection:password" value="VALUE-IN-KEYVAULT" />
@@ -10,6 +10,7 @@
<add key="KnownEnvironment" value="Production" />
<!-- Soap Connection-->
<add key="soapconnection:safUrl" value="https://prodapi.dna.lcu-internal.com:10002/SAF/ProductIntegration/ProductIntegration.asmx" />
<add key="soapconnection:coreApiServiceUrl" value="https://prodapi.dna.lcu-internal.com:10002/Extensions/DNA.CoreApiService/CoreApiService.svc/Soap11" />
<add key="soapconnection:deviceId" value="FULL" />
<add key="soapconnection:prodEnvCd" value="PRODUCTION" />
<add key="soapconnection:prodDefCd" value="SAF2006" />
@@ -10,6 +10,7 @@
<add key="KnownEnvironment" value="Development" />
<!-- Soap Connection-->
<add key="soapconnection:safUrl" value="https://UATapi.dna.lcu-internal.com:10005/SAF/ProductIntegration/ProductIntegration.asmx" />
<add key="soapconnection:coreApiServiceUrl" value="https://UATapi.dna.lcu-internal.com:10005/Extensions/DNA.CoreApiService/CoreApiService.svc/Soap11" />
<add key="soapconnection:deviceId" value="FULL" />
<add key="soapconnection:prodEnvCd" value="PRODUCTION" />
<add key="soapconnection:prodDefCd" value="SAF2006" />
@@ -10,6 +10,7 @@
<add key="KnownEnvironment" value="Staging" />
<!-- Soap Connection-->
<add key="soapconnection:safUrl" value="https://UATapi.dna.lcu-internal.com:10005/SAF/ProductIntegration/ProductIntegration.asmx" />
<add key="soapconnection:coreApiServiceUrl" value="https://UATapi.dna.lcu-internal.com:10005/Extensions/DNA.CoreApiService/CoreApiService.svc/Soap11" />
<add key="soapconnection:deviceId" value="FULL" />
<add key="soapconnection:prodEnvCd" value="PRODUCTION" />
<add key="soapconnection:prodDefCd" value="SAF2006" />