I need to work in some conditional logic to one of my proxys
Example scenario (see diagram for guide in following along)
ESB receives HTTP SOAP message from client
ESB transforms the SOAP payload as part of in sequence
ESB sends to endpoint #1
Endpoint #1 responds
ESB receives response from endpoint and begins processing an out sequence
(5.1) As part of out sequence, validity of response is checked
(5.2) If good, original message is used, and target endpoint set to endpoint #2
(5.3) If bad, the response is returned to user (step 9)
ESB sends to endpoint #2
Endpoint #2 responds
ESB receives response from endpoint #2 and begins processing a different out sequence
Payload from the outsequence sent back to the client
After doing transformations in step 2, I lose the original message content received in step 1.
I don't think I can use cloning because that happens in parallel and in this case there is synchronous dependencies (only send to second endpoint if first endpoint was ok).
How can I get a message from one endpoint and direct it to another?
-Lucas
Hi Lucas, What you need is a
Lucas Ruwans suggestion will
Thanks Ruwan. A callout
asankha, You read my mind on
Lucas If my suggestion