How to set Content-Length in the response from API Exchange Gateway?

How to set Content-Length in the response from API Exchange Gateway?

book

Article ID: KB0074078

calendar_today

Updated On:

Products Versions
TIBCO API Exchange 2.x and above

Description

The message flow for this usecase is:
Client -HTTP- APIX-G --SOAPJMS-- Target

In this case, APIX does set the Content-Length HTTP Header in the response it sends back to the client
- as there is no such header in the SBResponse from the Target.

Environment

All Supported Platforms

Resolution

To have APIX-G set the Content-Length header, use the attached stylesheet: sb_respSetContentLength.xsl
- It should be configured as Full-type Mapping
- And applied as Response Tranform on the Target Operation

Also attached is a sample log showing complete transactions.

Issue/Introduction

This article provides inputs for setting Content-Length in the NB Response sent by APIX-G to a client.

Attachments

How to set Content-Length in the response from API Exchange Gateway? get_app
How to set Content-Length in the response from API Exchange Gateway? get_app