I import the WSDL of my test service that will validate the order
I then create a Business Service based on the WSDL
I test the Service
If the custID = 1111 and the totalPrice is > 10K then the order is invalid.
Now call this from the request pipeline using a Service Callout action -
The table below explains the different "Configure" options
Now we need to set VO_REQ via an Assign action
The expression is as follows -
Save and Test
Looks good. Now I add the logic to write invalid orders to the Queue-Error.
Firstly, I created a business service to Write to the demoQueue-Error.
I then call it as follows - per default the original payload, in $body, is being written to the error Queue.
IF Expression -
then check the Error Queue in WLS console