wsgen ant task ignore @webMethod(exclude=true) ann

2019-04-13 09:07发布

问题:

I Have a web service implementation class in java and I use wsgen to generate the service end point classes. There is a public method in my SEI that I want to exclude from the web-service interface. It seems that the annotation

@WebMethod (exclude=true)

is meant to do that but it does not seem to work with the wsgen ant task.

回答1:

This sounds like Issue #789 (bug in wsgen). Maye give the suggested workaround a try:

As a temporary workaround with old impl, you can try removing the @WebMethod on non-excluded methods.