简体   繁体   中英

Issue In Generating wsdl by using apache cxf 2.7.4

Issue in generating wsdl using apache cxf 2.7.4. For complex type, this ref attribute is coming:

xs:element minOccurs="0" ref="tns:launchConfiguration"

I want to dispaly like this :

xs:element minOccurs="0" name="launchConfiguration" type="tns:launchConfiguration"

It is generating fine in cxf 2.5.2, but not in 2.7.4 Getting following error:

Unmarshalling Error: unexpected element (uri:url, local:“objectname”). Expected elements are <{}objectname>

Solved the above issue by removing jaxb-impl.jar.There was no issue with the cxf jar. With java 6 and above the JAVA SE libraries contains the implementation for jaxb dependency.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM