[英]Issue In Generating wsdl by using apache cxf 2.7.4
Issue in generating wsdl using apache cxf 2.7.4. 使用apache cxf 2.7.4生成wsdl的问题。 For complex type, this ref attribute is coming: 对于复杂类型,此ref属性即将出现:
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: 它在cxf 2.5.2中生成良好,但在2.7.4中却无法生成以下错误:
Unmarshalling Error: unexpected element (uri:url, local:“objectname”). 解组错误:意外元素(uri:url,本地:“ objectname”)。 Expected elements are <{}objectname> 期望的元素是<{} objectname>
Solved the above issue by removing jaxb-impl.jar.There was no issue with the cxf jar. 通过删除jaxb-impl.jar解决了上述问题。cxf jar没有问题。 With java 6 and above the JAVA SE libraries contains the implementation for jaxb dependency. 在Java 6及更高版本中,JAVA SE库包含jaxb依赖项的实现。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.