We are using a top-down approach for a project with multiple web services (multiple WSDL\'s). Each web service needs to be set up as a separate project and deployed as a sep
You can achieve this using JAXB/JAX-WS customization. Suppose you have XSD types embedded into WSDL. Then your customization will look like:
The above configuration refers the following project directory structure:
+-- binding
| +-- jaxws-binding.xml
+-- wsdl
| +-- some.wsdl
+-- src
...
If you use org.codehaus.mojo:jaxws-maven-plugin plugin, then you need to specify .
In case your XSD is external to WSDL, then you need to specify customizations separately:
+-- binding
| +-- jaxb-binding.xml
| +-- jaxws-binding.xml
+-- wsdl
...
Then jaxb-binding.xml will look like:
project-beans project and in project-ws project remove generated JAXB classes after wsimport run (you can use ant plugin for that).