We have SOAP to Proxy order search synchronous interface. Interface is working fine if order details found in ERP. But challenge is in few scenario search takes more than 5 minutes in ERP, hence we are getting Synchronous timeout exceeded error which is correct as we have configured max syncTimeout is 5 minutes. In this case it throws error to sender system but sender system expecting custom message "Time out error" as response.
How can we capture this timeout scenario and send custom response to sender system?
Similar way in case of system/technical error sender system is expecting response. Is there any way to capture technical/system error except alert and send custom message to sender ?
Please let me know any thoughts how can we achieve this.