How to remove JAX-WS generated header comment?

the client asked us to remove the comments generated by JAX-WS from the generated WSDL and XSD files. The generated files have the following comments:

<!-- Published by JAX-WS RI at http://jax-ws.dev.java.net. RI version is JAX-WS RI 2.xx-xxx-. --> 

I did not find anything to make it simple, so I will ask here. Any simple solutions for this other than fixing the JAX-WS?

+4
source share
1 answer

To answer my own question: the easiest solution was to fix the version number in the jar file, which is read from the version.properties file name (/com/sun/xml/ws/util/version.properties) and rebuild the jar jaxws-rt file. jar containing this class.

An alternative approach using a servlet filter in Tomcat also works, but has a performance limitation.

+4
source

Source: https://habr.com/ru/post/1316132/


All Articles