WSDL2Javaはセッターメソッドを生成しません
質問
誰かがこれに出くわしましたか?基本的に、私はSun JREからIBMに切り替えましたが、WSDL2Javaが必要なセッターメソッドをコンパイルしていないため、コンピレーションが失敗しました。
前もって感謝します。
解決
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>
他のヒント
Axis2 Issuesシステムにこれに関するバグレポートがあり、質問をした後に開かれました。見る https://issues.apache.org/jira/browse/axis2-4968.
所属していません StackOverflow