I am working upon a project and need to send a custom soap response (without SOAP fault). I’m using @Endpoint to consume SOAP requests in my spring boot application. However, I cannot use @ControllerAdvice or @ExceptionHandler to send a custom response since @Endpoint is not same as @Controller. What would be the best approach to do exception handling for mentioned situation? The exceptions can occur in any layer of the application(service , DAO etc).
Tried to use @ControllerAdvice but couldn’t get the desired result