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

查看:31
本文介绍了wsgen 蚂蚁任务忽略@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方法.

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

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

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