WSDL2JAVA does not generate setter methods
Has anyone come across this? Basically I switched from the SUN jre to IBM's and compilation fails du开发者_如何学编程e to wsdl2java not having compiled the necessary setter methods.
Thanks in advance.
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>
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.
精彩评论