Written by

Technical Architect at OPTIMUS IT INFRA
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

Comments

prashanth ponugoti · Dec 1, 2021

How to read Adapter Connection Settings in BusinessOperation class in Object Script

0
David Hockenbroch · Dec 1, 2021

..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
0
Deepak Ghansala · Dec 1, 2021

Set httpRequest.SSLConfiguration = ..Adapter.SSLConfig

0