これは ServiceRequest.java です
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ServiceRequest",
namespace = "http://ejb.service.blue2.bcbsa.com",
propOrder = {"any"})
public class ServiceRequest implements Serializable {
@XmlAnyElement(lax = true)
protected Object any;
public Object getAny() {
return any;
}
public void setAny(Object value) {
this.any = value;
}
}
私の実装ファイルで、私はこのように言及しました
IBMSOAPElement requestElement = (IBMSOAPElement)serviceRequest.getAny();
この行でその表示
java.lang.ClassCastException: org.apache.xerces.dom.ElementNSImpl incompatible with com.ibm.websphere.webservices.soap.IBMSOAPElement