We are calling a REST web-service from Ensemble using EnsLib.HTTP.OutboundAdapter
and redefining the adapter class to set custom headers as described by @Eduard Lebedyuk here: How to set Content-Type
InterSystems Ensemble provides specialized business operation classes that use specific outbound adapters to communicate with external systems and UI.