WSDL2JAVA不生成setter方法

发布于 2024-10-15 05:28:48 字数 90 浏览 3 评论 0原文

有人遇到过这个吗?基本上我从 SUN jre 切换到 IBM 的,由于 wsdl2java 没有编译必要的 setter 方法,编译失败。

提前致谢。

Has anyone come across this? Basically I switched from the SUN jre to IBM's and compilation fails due to wsdl2java not having compiled the necessary setter methods.

Thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

Saygoodbye 2024-10-22 05:28:48

你用的是jaxb吗?

生成的代码里面有这样的东西吗?

/**
     * Gets the value of the parameter property.
     * 
     * <p>
     * This accessor method returns a reference to the live list,
     * not a snapshot. Therefore any modification you make to the
     * returned list will be present inside the JAXB object.
     * This is why there is not a <CODE>set</CODE> method for the parameter property.
     * 
     * <p>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getParameter().add(newItem);
     * </pre>

Are you using jaxb?

Does the generated code have anything like this in it?

/**
     * Gets the value of the parameter property.
     * 
     * <p>
     * This accessor method returns a reference to the live list,
     * not a snapshot. Therefore any modification you make to the
     * returned list will be present inside the JAXB object.
     * This is why there is not a <CODE>set</CODE> method for the parameter property.
     * 
     * <p>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getParameter().add(newItem);
     * </pre>
不寐倦长更 2024-10-22 05:28:48

Axis2 问题系统中有一个关于此问题的错误报告,在您提出问题后打开。请参阅https://issues.apache.org/jira/browse/AXIS2-4968

There's a bug report on this in the Axis2 issues system, opened after you asked your question. See https://issues.apache.org/jira/browse/AXIS2-4968.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文