Question
prashanth ponugoti · Dec 1, 2021

How to access SSLConfiguration from Adapter settings in BusinessOperation

Hi All,

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?

Product version: IRIS 2020.1
2
0 137
Discussion (3)1
Log in or sign up to continue

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

Set httpRequest.SSLConfiguration = ..Adapter.SSLConfig