我正在使用JAXB和CXF创建一个WSDL第一个Web服务.我不拥有WSDL,所以我不能修改它.我使用
ftp://ftp.ihe.net/TF_Implementation_Material/ITI/wsdl/PIXManager.wsdl作为我的WSDL.我用CXF 2.3.0生成Java类.
Java类生成就行了,但是当我尝试在Web应用程序中运行它时,我收到一个错误
com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 17 counts of IllegalAnnotationExceptions
17个数字是格式
There's no ObjectFactory with an @XmlElementDecl for the element {urn:hl7-org:v3}assignedDevice. this problem is related to the following location: at protected javax.xml.bind.JAXBElement org.hl7.v3.QUQIMT021001UV01AuthorOrPerformer.assignedDevice
当我去上课时,即QUQIMT021001UV01AuthorOrPerformer,看看分配的设备,我看到这个
@XmlElementRef(name = "assignedDevice",namespace = "urn:hl7-org:v3",type = JAXBElement.class) protected JAXBElement<COCTMT090300UV01AssignedDevice> assignedDevice;
当我看到包的ObjectFactory,我看到这一点
private final static QName _COCTMT090303UV01AssignedDeviceAssignedDevice_QNAME = new QName("urn:hl7-org:v3","assignedDevice");