wsgen ant任务忽略@webMethod(exclude = true)注释 [英] wsgen ant task ignore @webMethod(exclude=true) annotation

查看:218
本文介绍了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.

推荐答案

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

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


作为旧impl的临时解决方法,您可以尝试删除非排除$的@WebMethod b $ b方法。

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

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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆