Hi Mark,

Thanks for the link. 

The link shows you to define the getFaultInfo() method and to define the
faultbean by ourself:
@WebFault(name = "MyException", targetNamespace = "http://www.example.com";)
public class MyFault extends Exception {

    /**
     * Java type that goes as soapenv:Fault detail element.
     */
    private MyException faultInfo; ----This is the faultbean you defined by
ourself.


    public MyFault(String message, MyException faultInfo) {
        super(message);
        this.faultInfo = faultInfo;
    }

    public MyFault(String message, MyException faultInfo, Throwable cause) {
        super(message, cause);
        this.faultInfo = faultInfo;
    }

    public MyException getFaultInfo() {
        return faultInfo;
    }

}

As I said, this way it works. But if you do not define the getFaultInfo()
method and faultbean by yourself, as my example, then you must have
faultBean="xxxx" in your @WebFault annotation.




--
View this message in context: 
http://cxf.547215.n5.nabble.com/Webfault-tp5716784p5716789.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to