質問: CXFとmavenを使用してソースコードのコメントをWSDLにエクスポートしますか? タイトルのように:Webサービスメソッドのパラメータのjavadocコメントをwsdlにエクスポートできますか?ソースコードからwsdlを生成するには、CXFとmavenのjava2wsゴールを使用しています。
回答: You can use the `@WSDLDocumentationCollection` annotation to attach multiple `@WSDLDocumentation` annotations to a single method (with different placements) but you can't use this to go much deeper than placing documentation on single operations of a port, because that's where it ceases to be a WSDL problem and becomes an XSD problem. XSD documentation would be handled by an annotation at the JAXB level, except that no such annotation exists; the schema generated won't contain elements. (When *starting* from a schema, documentation comments can be generated as Javadoc, but the reverse direction doesn't happen as Javadoc comments aren't retained in Java class files.)