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!