API Gateway: Reading octet variable from response
search cancel

API Gateway: Reading octet variable from response

book

Article ID: 201503

calendar_today

Updated On:

Products

CA API Gateway API SECURITY STARTER PACK-7 CA Microgateway

Issue/Introduction

There is a request coming in with a content-type:multipart/form-data. After looping through the multipart assertion, the message can't be read:


message: com.l7tech.message.Message@7a9373d8

How do you get the message?

 

 

Environment

API Gateway: 9.3

Cause

A context variable called "message has been set to capture the data from the current iteration "read.current":

From the Gateway Audit Events:

 

Resolution

Add an additional Set Context Variable assertion and reference the context variable that captures the current iteration. In the Add Audit Details, change ${message} to ${message.mainpart}.

From the Gateway Audit Events: 

Additional Information

The Content-Type for the Set Context Variable assertions are 'text/xml'.