Updating
This commit is contained in:
+4
-2
@@ -44,7 +44,9 @@ namespace LCU.API.Internal.CoreSoapApiWrapper.CoreSoapUtilities
|
|||||||
|
|
||||||
private TransactionOutput SubmitTransactionInput(TransactionInput transactionInput)
|
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);
|
TransactionOutput output = client.SubmitRequest(transactionInput);
|
||||||
|
|
||||||
if (output?.Output?.UserAuthentication == null || output?.Output?.Responses == null)
|
if (output?.Output?.UserAuthentication == null || output?.Output?.Responses == null)
|
||||||
@@ -60,4 +62,4 @@ namespace LCU.API.Internal.CoreSoapApiWrapper.CoreSoapUtilities
|
|||||||
return output;
|
return output;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-1
@@ -11,6 +11,7 @@ namespace LCU.API.Internal.CoreSoapApiWrapper.Models
|
|||||||
int defaultValue;
|
int defaultValue;
|
||||||
|
|
||||||
SafUrl = ConfigurationManager.AppSettings["soapconnection:safUrl"];
|
SafUrl = ConfigurationManager.AppSettings["soapconnection:safUrl"];
|
||||||
|
CoreApiServiceUrl = ConfigurationManager.AppSettings["soapconnection:coreApiServiceUrl"];
|
||||||
DeviceId = ConfigurationManager.AppSettings["soapconnection:deviceId"];
|
DeviceId = ConfigurationManager.AppSettings["soapconnection:deviceId"];
|
||||||
UserId = ReadSecret("/vault/secrets/core-soap-api-wrapper-soap-connection-user-id.json") ?? ConfigurationManager.AppSettings["soapconnection:userId"];
|
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"];
|
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 SafUrl { get; set; }
|
||||||
|
public string CoreApiServiceUrl { get; set; }
|
||||||
public string DeviceId { get; set; }
|
public string DeviceId { get; set; }
|
||||||
public string UserId { get; set; }
|
public string UserId { get; set; }
|
||||||
public string Password { get; set; }
|
public string Password { get; set; }
|
||||||
@@ -66,4 +68,4 @@ namespace LCU.API.Internal.CoreSoapApiWrapper.Models
|
|||||||
public string RequestType { get; set; }
|
public string RequestType { get; set; }
|
||||||
public string AuthenticationType { get; set; }
|
public string AuthenticationType { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
@@ -13,6 +13,7 @@
|
|||||||
<add key="KnownEnvironment" value="Development" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
|
<add key="KnownEnvironment" value="Development" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
|
||||||
<!-- Soap Connection-->
|
<!-- 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: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: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:userId" value="ASERVICE" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
|
||||||
<add key="soapconnection:password" value="ASland21!!" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
|
<add key="soapconnection:password" value="ASland21!!" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
|
||||||
|
|||||||
+1
@@ -16,6 +16,7 @@
|
|||||||
<add key="KnownEnvironment" value="Production" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
|
<add key="KnownEnvironment" value="Production" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
|
||||||
<!-- Soap Connection-->
|
<!-- 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: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: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:userId" value="ASERVICE" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
|
||||||
<add key="soapconnection:password" value="ASland21!!" 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)"/>
|
<add key="KnownEnvironment" value="Staging" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
|
||||||
<!-- Soap Connection-->
|
<!-- 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: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: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:userId" value="ASERVICE" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
|
||||||
<add key="soapconnection:password" value="ASland21!!" 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" />
|
<add key="KnownEnvironment" value="Local" />
|
||||||
<!-- Soap Connection-->
|
<!-- Soap Connection-->
|
||||||
<add key="soapconnection:safUrl" value="" />
|
<add key="soapconnection:safUrl" value="" />
|
||||||
|
<add key="soapconnection:coreApiServiceUrl" value="" />
|
||||||
<add key="soapconnection:deviceId" value="FULL" />
|
<add key="soapconnection:deviceId" value="FULL" />
|
||||||
<add key="soapconnection:userId" value="VALUE-IN-KEYVAULT" />
|
<add key="soapconnection:userId" value="VALUE-IN-KEYVAULT" />
|
||||||
<add key="soapconnection:password" value="VALUE-IN-KEYVAULT" />
|
<add key="soapconnection:password" value="VALUE-IN-KEYVAULT" />
|
||||||
|
|||||||
+1
@@ -10,6 +10,7 @@
|
|||||||
<add key="KnownEnvironment" value="Production" />
|
<add key="KnownEnvironment" value="Production" />
|
||||||
<!-- Soap Connection-->
|
<!-- Soap Connection-->
|
||||||
<add key="soapconnection:safUrl" value="https://prodapi.dna.lcu-internal.com:10002/SAF/ProductIntegration/ProductIntegration.asmx" />
|
<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:deviceId" value="FULL" />
|
||||||
<add key="soapconnection:prodEnvCd" value="PRODUCTION" />
|
<add key="soapconnection:prodEnvCd" value="PRODUCTION" />
|
||||||
<add key="soapconnection:prodDefCd" value="SAF2006" />
|
<add key="soapconnection:prodDefCd" value="SAF2006" />
|
||||||
|
|||||||
+1
@@ -10,6 +10,7 @@
|
|||||||
<add key="KnownEnvironment" value="Development" />
|
<add key="KnownEnvironment" value="Development" />
|
||||||
<!-- Soap Connection-->
|
<!-- Soap Connection-->
|
||||||
<add key="soapconnection:safUrl" value="https://UATapi.dna.lcu-internal.com:10005/SAF/ProductIntegration/ProductIntegration.asmx" />
|
<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:deviceId" value="FULL" />
|
||||||
<add key="soapconnection:prodEnvCd" value="PRODUCTION" />
|
<add key="soapconnection:prodEnvCd" value="PRODUCTION" />
|
||||||
<add key="soapconnection:prodDefCd" value="SAF2006" />
|
<add key="soapconnection:prodDefCd" value="SAF2006" />
|
||||||
|
|||||||
+1
@@ -10,6 +10,7 @@
|
|||||||
<add key="KnownEnvironment" value="Staging" />
|
<add key="KnownEnvironment" value="Staging" />
|
||||||
<!-- Soap Connection-->
|
<!-- Soap Connection-->
|
||||||
<add key="soapconnection:safUrl" value="https://UATapi.dna.lcu-internal.com:10005/SAF/ProductIntegration/ProductIntegration.asmx" />
|
<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:deviceId" value="FULL" />
|
||||||
<add key="soapconnection:prodEnvCd" value="PRODUCTION" />
|
<add key="soapconnection:prodEnvCd" value="PRODUCTION" />
|
||||||
<add key="soapconnection:prodDefCd" value="SAF2006" />
|
<add key="soapconnection:prodDefCd" value="SAF2006" />
|
||||||
|
|||||||
Reference in New Issue
Block a user