How to access SSLConfiguration from Adapter settings in BusinessOperation
I have configured Business Operation with EnsLib.HTTP.OutboundAdapter and set properties.
In the BusinessOperation method I am trying to create %Net.HttpRequest
Set httpRequest= ##class(%Net.HttpRequest).%New()
to post REST Service.
I am able to access HTTPServer ,URL details form Adapter using below code
Set httpRequest.Server = ..Adapter.HTTPServer
Set httpRequest.Location = ..Adapter.URL
How to read SSLConfiguration from Adapter properties?
As of now , I am hardcoding same string which I have configured for BusinessOperation Settings tab
Set httpRequest.SSLConfiguration = "ISC.FeatureTracker.SSL.Config"
Could you please tell me how to avoid this hardcoding code?
How to read Adapter Connection Settings in BusinessOperation class in Object Script
..Adapter.SSLConfig should get you the name of the SSL Configuration that the adapter is using. The property of the %Net.HttpRequest is called SSLConfiguration. So it should be:
Set httpRequest.SSLConfiguration = ..Adapter.SSLConfig