WSDL2JAVA does not generate setter methods

2.5k views Asked by At

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.

2

There are 2 answers

4
Karl P On BEST ANSWER

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>
0
Kenster On

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.