简体   繁体   中英

Putting Generated Classes into the Same Package for Different Web Services

I have a couple of JAX-WS webservices and they use the same classes but after generating from wsdl (on client side) the same classes have different packages. I found how to put them into same package using @xmltype annotation. But I can't use it as source code is not available. Is it possible somehow fix it while service deployment?

How do you generate the client code from WSDL? If you use maven you can specify the package of generated classes in plugin settings (eg apache cxf plugin supports "packagenames" element inside the "wsdlOption" element).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM