We have a requirement to asynchronously validate the request (schema validation) and route the request to the web service() and send a synchronous acknowledgement to the client without bothering about the result of schema validation and web service call.
We implemented this scenario by taking an asynchronous transform action and doing the validation and web service call in the same XSLT and it was working fine.
Now the issue is we need to validate some number of fields as a part of request validation(which will be very complicated in the XSLT).
So we decided to use a validate action and a schema file to validate and send an error message to different service in asynchronous mode , but no error is being called as it is async. and also we need a web service call also as next transform in async mode which is creating issues.
I explored the option of even sync action, but it didnt helped.
As i guess we cannot use two async actions back to back (like one's output as input to other).
Please share you valuable thoughts on this and please correct me if i am wrong in my approach.
My flow will be req -> validate (async)->webservice call(async) -> acknowledgement msg to client (sync) ->
and send an error to another service (if schema validation ocurs
Please provide you expertise.