开发者

How to remove JAX-WS generated header comment?

开发者 https://www.devze.com 2023-01-07 16:33 出处:网络
a customer has asked us to remove the comments generated by JAX-WS from the generated WSDL and XSD files. The generated files have comments like these:

a customer has asked us to remove the comments generated by JAX-WS from the generated WSDL and XSD files. The generated files have comments like these:

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

I开发者_StackOverflow社区 didn't find anything to do this simply, so i'll ask here. Any easy solutions to this besides patching JAX-WS?


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

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

0

精彩评论

暂无评论...
验证码 换一张
取 消