, , - .
, -, maven-enunciate-cxf-plugin: 1.28.
For me, this was triggered after I added a checked exception to my web service subscription:
@WebMethod(operationName = "enquirySth")
public IBANResponse enquirySth(String input) throws I
InvalidInputException { ...
I used the JAX-WS Spec for an exception, but did not succeed. In the end, I found this problem in the Enunciate error tracking system, which indicates that this problem is resolved in the current version, but I think it still exists.
Finally, I made the following workaround to fix my problem: adding @XmlRootElement to my FaultBean.
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "FaultBean",propOrder = {"errorDescription", "errorCode"})
public class FaultBean implements Serializable {
@XmlElement(required = true, nillable = true)
protected String errorDescription;
@XmlElement(required = true, nillable = true)
protected String errorCode;
public FaultBean() {
}
public String getErrorDescription() {
return this.errorDescription;
}
public void setErrorDescription(String var1) {
this.errorDescription = var1;
}
public String getErrorCode() {
return this.errorCode;
}
public void setErrorCode(String var1) {
this.errorCode = var1;
}
}
What is it. Hope this helps.
source
share