Search code examples
requestmuleresponse

Mule request-response outbound endpoint and inbound properties


While I am reading the Mule in Action book to understand message properties' scopes, I encounter that Request-response outbound endpoints create inbound properties. More over, I came to know that message sources like inbound endpoints create inbound properties.

How can I know which inbound property is created by which endpoint, inbound or outbound?

How the inbound properties created by request-response outbound endpoints are helpful?

Thanks in advance.


Solution

  • How can I know which inbound property is created by which endpoint, inbound or outbound?

    You can't, you have to deal with the inbound properties of your inbound endpoint before calling a request-response outbound endpoint. For example, you can copy interesting inbound properties in flow variables to preserve them.

    How the inbound properties created by request-response outbound endpoints are helpful?

    Supposed you hit a request-response HTTP endpoint amid flow, you'll want to get the status code of the HTTP response. That's when such properties are handy.