Published on InterSystems Developer Community (https://community.intersystems.com)

Home > Usage of ?CfgItem= in class EnsLib.HL7.Service.HTTPService

Question
Menno Voerman · Feb 11, 2021

Usage of ?CfgItem= in class EnsLib.HL7.Service.HTTPService

Hi All,

I hope someone can help me with the following, it's about the usage of the class EnsLib.HL7.Service.HTTPService.

Working situation right know.

In IIS we've got a site configured who is dealing with the client certificate, etc and redirect the full request to http://localhost/csp/healthshare/NAMEPSACE/EnsLib.HL7.Service.HTTPServic... and the web gateway redirects the request to Business Service 'EnsLib.HL7.Service.HTTPService.cls'.

Preferred situation:

We would like to have multiple available endpoints per namespace. According the documentation of the class 'EnsLib.HL7.Service.HTTPService' this can be done with (background in green is the current situation):

A service to receive HL7v2 messages sent via HTTP. Can use a HTTP.InboundAdapter listener, or the standard CSP service mechanism, or both.

In order for the CSP mechanism to work, Web Services derived from this class must be configured either with

1: their configuration name the same as their class name,

2: or the invoking URL must include ?CfgItem= giving the config item name,

3: or using a CSP application with a DispatchClass configured and the config item name as the next URL piece after the application name.

For the options 2 and 3 above I can't figure out how I can configure this.

Can someone help me with the correct url if using 'CfgItem=' or maybe there's is somewhere a good CSP application example available?

#HL7 #REST API #Web Gateway #InterSystems IRIS for Health
Product version: HealthShare 2020.1
$ZV: IRIS for Windows (x86-64) 2020.1 (Build 215U) Mon Mar 30 2020 20:14:33 EDT

Source URL:https://community.intersystems.com/post/usage-cfgitem-class-enslibhl7servicehttpservice