How to get CXF to create an external XSD for WSDL?

I am using CXF with annotation @WebService. It generates a WSDL file as one large file, is there a way I can say that it generates wsdl:typesexternally in the XSD file and imports them into WSDL?

+5
source share
1 answer

1). It’s best to use CXF JavaToWS, just specify your implementation class and domain objects using the parameter "-createxsdimports", it will create separate WSDL and XSD files for you,

see below an example from my site

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

2) SOPERA http://www.sopera.de/en/downloads/sopera-asf-331 WSDL XSD

+1

All Articles