简体   繁体   中英

Rename all the exception classes who are generated with wsimport

When a generate my code with wsimport using a .net wsdl I've got extreme long exception classes like [servicename][operationname]FaultFaultFaultMessage.

I know how to rename each single exception but can I use a jaxb .xjb file to "template" all the exceptions at once?

You have two options:

  1. Write a plugin for XJC.

  2. Use XSLT or XQuery to generate an .xjb file from the WSDL. You can use more than one .xjb file per xjc invocation.

Good luck.

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