Solution of The field name is used by two different parts of a schema (Apache CXF)

While generating the client in any wsdl, it can be warn " The field name is used by two different parts of a schema"

The solution is that putting jaxb-bindings.xml with,


<jaxb:bindings xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc" version="2.1" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<jaxb:globalBindings generateElementProperty="false"
fixedAttributeAsConstantProperty="true" choiceContentProperty="true">
<xjc:simple />
</jaxb:globalBindings>
</jaxb:bindings>


If you like this post, share and leave a comment!


If you have any problems we can help you if you leave a comment!






Yorumlar

Bu blogdaki popüler yayınlar

How to Suppress StackTrace in Jax-RPC

How to connect Team Foundation Server in JDeveloper 12c

How To Add a Project To Team Foundation Server with Command Prompt