简体   繁体   中英

How do I get CXF to generate external XSD for the WSDL?

I'm using CXF with the @WebService annotation. It generates the WSDL file as one big file, is there a way I can tell it to generate the wsdl:types externally in an XSD file and import them into the WSDL?

1) Your best option is use CXF's JavaToWS , just provide your implementation class and domain objects with "-createxsdimports" option, it will create separate WSDL and XSD files for you,

see below example from my website

http://www.javatips.net/blog/2012/09/cxf-java2wsdl-example

2) You can use SOPERA suite http://www.sopera.de/en/downloads/sopera-asf-331 and it converts into separate WSDL and XSD

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