今天第一次用CXF开发WebService ,在开发的过程中遇到一个问题错误如下:
Caused by: com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions
Two classes have the same XML type name "{http://wsservice.service.ts.com/}testResponse". Use @XmlType.name and @XmlType.namespace to assign different names to them.
this problem is related to the following location:
at com.ts.service.wsservice.vo.TestResponse
at private com.ts.service.wsservice.vo.TestResponse com.ts.service.wsservice.jaxws_asm.TestResponse._return
at com.ts.service.wsservice.jaxws_asm.TestResponse
this problem is related to the following location:
at com.ts.service.wsservice.jaxws_asm.TestResponse
at com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException$Builder.check(Unknown Source)
at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(Unknown Source)
at com.sun.xml.internal.bind.v2.runtime.JAXBConte