We have a legacy SOAP web service written in .Net. We are rewriting that now in java.
I have never worked on SOAP services but have a little knowledge in REST web services.
In Jax RS, we have ExceptionMapper interface, which can be used to map any RuntimeException to a Response. So we map our custom exceptions and java.lang.RuntimeException to handle any unhandled runtime exceptions like below
@Provider
public class UnhandledExceptionMapper implements ExceptionMapper<RuntimeException> { ... }
This way we make sure no exception stack trace will be returned to the client.
Is there a similar approach in Jax WS?