Send exception information in soap response in Jboss 7
08:30 04 Jun 2015

We are struggling here at the company to accomplish a requirement for our Maven project (jboss 7.1.1 , java 7). We have a soap Webservice that exposes several methods. These methods throw exceptions. The exceptions are declared in a dependency of this project. The problem is we aren't able to send in the soap response any information regarding the kind of exception we throw in the webservice method. All the soap is bringing is

    
        
            
                soap:Server
                MESSAGE
            
        
    

The clients that are consuming our services can't tell which kind of error they are getting. How can we overcome this issue? How can we send in the soap body relevant information about the specific exception we are throwing?

Our exception

    @WebFault
    public class OurException extends Exception
    {
        public OurException (){
            super();
        }

  
        public OurException (String message)
        {
            super(message);
        }
    }

Thank you very much

java maven soap jboss7.x ejb-3.0