本文介绍了wsgen ant任务忽略@webMethod(exclude = true)注释的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在java中有一个Web服务实现类,我使用wsgen生成服务端点类。我的SEI中有一个公共方法,我想从Web服务界面中排除。似乎注释

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)

是为了做到这一点,但它似乎不适用于wsgen ant任务。

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

推荐答案

这听起来像(wsgen中的错误)。 Maye尝试给出建议的解决方法:

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

这篇关于wsgen ant任务忽略@webMethod(exclude = true)注释的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-10 05:49