Is it possible to generate serializable classes with CXF?

后端 未结 3 739
无人及你
无人及你 2020-12-31 09:30

I\'m using Apache CXF to generate classes from a WSDL file but they don\'t implement Serializable which is needed to put an object into a JMS queue. Is it possible to do thi

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-31 10:03

    Binding files with root element work with jaxb:globalBindings only if your wsdl has a single schema. The problem is that jaxb:globalBindings is global so it can not be specified more than once.

    If that is your case you can use the following bindings file with jaxb:bindings:

    
    
        
            
        
    
    

提交回复
热议问题