diff --git a/src/AXSharp.connectors/src/AXSharp.Connector.S71500.WebAPI/WebApiConnector.cs b/src/AXSharp.connectors/src/AXSharp.Connector.S71500.WebAPI/WebApiConnector.cs index 9aa9d82e..f03f683e 100644 --- a/src/AXSharp.connectors/src/AXSharp.Connector.S71500.WebAPI/WebApiConnector.cs +++ b/src/AXSharp.connectors/src/AXSharp.Connector.S71500.WebAPI/WebApiConnector.cs @@ -82,19 +82,19 @@ public WebApiConnector(string ipAddress, string userName, string password, bool IPAddress = ipAddress; DBName = dbName; TargetPlatform = platform; - + if (ignoreSSLErros) ServerCertificateCallback.CertificateCallback = (sender, cert, chain, sslPolicyErrors) => true; var serviceFactory = new ApiStandardServiceFactory(); - Client = serviceFactory.GetHttpClient(ipAddress, userName, password); + Client = serviceFactory.GetHttpClient(ipAddress, userName, password ?? string.Empty); requestHandler = new ApiHttpClientRequestHandler(Client, new ApiRequestFactory(ReqIdGenerator, RequestParameterChecker), ApiResponseChecker); requestHandler.ApiLogout(); - requestHandler.ApiLogin(userName, password, true); + requestHandler.ApiLogin(userName, password ?? string.Empty, true); NumberOfInstances++; } diff --git a/src/tests.integrations/integrated/src/ax/apax-lock.json b/src/tests.integrations/integrated/src/ax/apax-lock.json index 86dd5fa5..b27a95c8 100644 --- a/src/tests.integrations/integrated/src/ax/apax-lock.json +++ b/src/tests.integrations/integrated/src/ax/apax-lock.json @@ -523,62 +523,6 @@ ], "dependencies": {} }, - "@ax/stc-win-x64": { - "name": "@ax/stc-win-x64", - "version": "6.0.146", - "integrity": "sha512-4hTgmIG54MaWhgxBV8gygU19yilVLfieizhUb08aRXz2o1+YKqd6ifgz1NBAT9RVOgnMj0IJcUynuLo998i1zg==", - "resolved": "https://registry.simatic-ax.siemens.io/@ax/stc-win-x64/-/stc-win-x64-6.0.146.tgz", - "os": [ - "win32" - ], - "cpu": [ - "x64" - ], - "dependencies": { - "@ax/st-docs": "6.0.146" - } - }, - "@ax/stc-linux-x64": { - "name": "@ax/stc-linux-x64", - "version": "6.0.146", - "integrity": "sha512-Cy8psrCe2TB+bCZrCzU4qtPxf0UWzCpdmxOCBC4fEVKnKW6MaBOBt85PAbz6MtAriH4boJY9gMMuPspWlKavPA==", - "resolved": "https://registry.simatic-ax.siemens.io/@ax/stc-linux-x64/-/stc-linux-x64-6.0.146.tgz", - "os": [ - "linux" - ], - "cpu": [ - "x64" - ], - "dependencies": { - "@ax/st-docs": "6.0.146" - } - }, - "@ax/st-ls-win-x64": { - "name": "@ax/st-ls-win-x64", - "version": "3.0.113", - "integrity": "sha512-dPj6b2aRhnelCe0BpIcLMLvHbUj2zhfQOtu4jzdZFDPhKICdB9+fTebuYRmP2vna4ogTke22e6f2buwR6VO1Vw==", - "resolved": "https://registry.simatic-ax.siemens.io/@ax/st-ls-win-x64/-/st-ls-win-x64-3.0.113.tgz", - "os": [ - "win32" - ], - "cpu": [ - "x64" - ], - "dependencies": {} - }, - "@ax/st-ls-linux-x64": { - "name": "@ax/st-ls-linux-x64", - "version": "3.0.113", - "integrity": "sha512-/QUsNMJrMPRVcCrCD7gkw/xl0VvZ8YEJXxQMWGwkWol3JgxiPjWW/fb7EqpzDU+ij45xy85rBdx29MMHQ3Of9Q==", - "resolved": "https://registry.simatic-ax.siemens.io/@ax/st-ls-linux-x64/-/st-ls-linux-x64-3.0.113.tgz", - "os": [ - "linux" - ], - "cpu": [ - "x64" - ], - "dependencies": {} - }, "@ax/system-strings": { "name": "@ax/system-strings", "version": "6.0.94", @@ -667,11 +611,60 @@ ], "dependencies": {} }, - "@ax/st-docs": { - "name": "@ax/st-docs", + "@ax/stc-win-x64": { + "name": "@ax/stc-win-x64", "version": "6.0.146", - "integrity": "sha512-KUs6JC/dWedgnaxH7UrqAOuJm6rKS4gzXTLguqXbtWHKdDKOceIw1yODyjty4iuOm6TkDm2UX4ya6QFC84eBHA==", - "resolved": "https://registry.simatic-ax.siemens.io/@ax/st-docs/-/st-docs-6.0.146.tgz", + "integrity": "sha512-4hTgmIG54MaWhgxBV8gygU19yilVLfieizhUb08aRXz2o1+YKqd6ifgz1NBAT9RVOgnMj0IJcUynuLo998i1zg==", + "resolved": "https://registry.simatic-ax.siemens.io/@ax/stc-win-x64/-/stc-win-x64-6.0.146.tgz", + "os": [ + "win32" + ], + "cpu": [ + "x64" + ], + "dependencies": { + "@ax/st-docs": "6.0.146" + } + }, + "@ax/stc-linux-x64": { + "name": "@ax/stc-linux-x64", + "version": "6.0.146", + "integrity": "sha512-Cy8psrCe2TB+bCZrCzU4qtPxf0UWzCpdmxOCBC4fEVKnKW6MaBOBt85PAbz6MtAriH4boJY9gMMuPspWlKavPA==", + "resolved": "https://registry.simatic-ax.siemens.io/@ax/stc-linux-x64/-/stc-linux-x64-6.0.146.tgz", + "os": [ + "linux" + ], + "cpu": [ + "x64" + ], + "dependencies": { + "@ax/st-docs": "6.0.146" + } + }, + "@ax/st-ls-win-x64": { + "name": "@ax/st-ls-win-x64", + "version": "3.0.113", + "integrity": "sha512-dPj6b2aRhnelCe0BpIcLMLvHbUj2zhfQOtu4jzdZFDPhKICdB9+fTebuYRmP2vna4ogTke22e6f2buwR6VO1Vw==", + "resolved": "https://registry.simatic-ax.siemens.io/@ax/st-ls-win-x64/-/st-ls-win-x64-3.0.113.tgz", + "os": [ + "win32" + ], + "cpu": [ + "x64" + ], + "dependencies": {} + }, + "@ax/st-ls-linux-x64": { + "name": "@ax/st-ls-linux-x64", + "version": "3.0.113", + "integrity": "sha512-/QUsNMJrMPRVcCrCD7gkw/xl0VvZ8YEJXxQMWGwkWol3JgxiPjWW/fb7EqpzDU+ij45xy85rBdx29MMHQ3Of9Q==", + "resolved": "https://registry.simatic-ax.siemens.io/@ax/st-ls-linux-x64/-/st-ls-linux-x64-3.0.113.tgz", + "os": [ + "linux" + ], + "cpu": [ + "x64" + ], "dependencies": {} }, "@ax/system-math": { @@ -687,6 +680,13 @@ "integrity": "sha512-8xn57nA5NfZ6ImTxmFGvzFp7wLL38JdUgjsuEg+xbzs29e8ftvbTCNqaWMVdX05N4QNAqohq2BlEkIyFtDH8Qg==", "resolved": "https://registry.simatic-ax.siemens.io/@ax/system-datetime/-/system-datetime-6.0.94.tgz", "dependencies": {} + }, + "@ax/st-docs": { + "name": "@ax/st-docs", + "version": "6.0.146", + "integrity": "sha512-KUs6JC/dWedgnaxH7UrqAOuJm6rKS4gzXTLguqXbtWHKdDKOceIw1yODyjty4iuOm6TkDm2UX4ya6QFC84eBHA==", + "resolved": "https://registry.simatic-ax.siemens.io/@ax/st-docs/-/st-docs-6.0.146.tgz", + "dependencies": {} } }, "workspaces": {}