QuestionQ43

VerifiedDeveloping Mule Applications

Refer to the exhibits. In requestFlow, an HTTP Request operation is configured to send an HTTP request containing an XML payload. The request is sent to the HTTP Listener in transformFlow. That flow transforms the incoming payload to JSON format and returns the response to the HTTP request.

The request response is stored in a target variable named theResult.

What is the payload at the Logger component after the HTTP Request?

Question Image

Explanation

Setting an HTTP Request target variable stores the operation’s output—the returned JSON response—in theResult rather than replacing the current message payload. The downstream message therefore retains the original XML payload, while the response is available through the target variable. MuleSoft: Enrich Data with Target Variables

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!