QuestionQ60

VerifiedTransform and format data with DataWeave

Refer to the exhibits.

In requestFlow, an HTTP Request operation is configured to send an HTTP request with an XML payload. The request is sent to the HTTP Listener in transformFlow. That flow converts 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

Question Image

Explanation

When an operation has a target variable, its output is stored in that variable and the original input message continues to the next component. Here, #[payload] stores the HTTP response in vars.theResult, while the Logger receives the unchanged XML request payload.

Learn more

Community Discussion

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