Applying external JAXB binding file to schema elements imported from WSDL

后端 未结 4 1965
半阙折子戏
半阙折子戏 2020-12-31 05:01

The XPath expression in my external binding files can\'t target the elements in my XML schemas which are imported into my WSDL.

Everything runs if I do inline bindin

4条回答
  •  独厮守ぢ
    2020-12-31 05:40

    For new people, you can simply use two binding files, one applied to wsdl and other applied to the schema by using the -b option of wsdl2java cxf code generation class accepts multiple binding files:

    
        
        
        
        
        
        
        
        
            
        
    
    

    Content of file 'jaxws-bindings.xml':

    
        false
    
    

    Content of 'jaxb-bindings.xml':

    
        
            
                
      
    

提交回复
热议问题