Hi all,
I have a web service that throws a custom Exception, like:
public interface SimpleService
public int getId(String user, String password) throws WrongUserException;
}
public class WrongUserException extends Exception{
private int transactionId;
public WrongUserException(String message) {
super(message);
}
public int getTransactionId() {
return transactionId;
}
}
This exception is mapped to a fault, the transactionId is mapped to
the faultDetails, the message is mapped to the faultString but I´m not
able to change the faultCode, it is always Server. I would like to map
it to Client.Authentication for example.
I´m using CXF with Spring.
Thank you,
Eduardo