简体   繁体   English

WSDL2JAVA不生成setter方法

[英]WSDL2JAVA does not generate setter methods

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. 基本上,我从SUN jre切换到IBM,并且由于wsdl2java没有编译必要的setter方法而导致编译失败。

Thanks in advance. 提前致谢。

Are you using jaxb? 您正在使用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>

There's a bug report on this in the Axis2 issues system, opened after you asked your question. 在您问了问题之后,在Axis2问题系统中有一个有关此问题的错误报告。 See https://issues.apache.org/jira/browse/AXIS2-4968 . 参见https://issues.apache.org/jira/browse/AXIS2-4968

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM