JAXB - Property “Value” is already defined. Use to resolve this conflict

前端 未结 7 586
再見小時候
再見小時候 2020-11-30 19:01

Using JAXB to generate XML binding classes.

The schema is based on a set of legacy XML files, and includes this snippet:



        
7条回答
  •  一向
    一向 (楼主)
    2020-11-30 19:40

    This bindings file mentioned in the other answer did not work for me with CXF 3.0.0. Notice that jaxb namespace has an element "bindings" and so do the namespace jaxws, so we need to declare them:

    
    
        
            
                
            
        
    
    

    In my case the schema was already inside the WSDL so I did no have to specify the schemaLocation attribute.

提交回复
热议问题