Wsdl2java non genera metodi di setter
Domanda
Qualcuno si è imbattuto in questo? Fondamentalmente sono passato da Sun JRE a IBM e la compilazione fallisce a causa del fatto che WSDL2JAVA non avesse compilato i metodi di setter necessari.
Grazie in anticipo.
Soluzione
Stai usando jaxb?
Il codice generato ha qualcosa di simile?
/**
* 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>
Altri suggerimenti
C'è un rapporto di bug su questo nel sistema di problemi AXIS2, aperto dopo aver posto la tua domanda. Vedere https://issues.apache.org/jira/browse/axis2-4968.
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow