V
V
Victor Potapov2015-02-26 10:33:56
Java
Victor Potapov, 2015-02-26 10:33:56

How to generate documentation for xsd schema based on java-doc?

To generate xsd schema for soap, jax-b is used. because every time the circuit is generated from scratch the question arose. Is it possible to customize the xsd documentation generation based on the java documentation available in the class?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Smirnov, 2015-02-27
@midikko

This can be done, but the classic JavaDoc will not work. Here is the approach that I have successfully applied in my projects. You just need to add the necessary annotations, and deal with non-standard versions of libraries. After that, I generate WSDL like this:

org.apache.cxf.tools.java2ws.JavaToWS.main(new String[]{"-d", "d:\\temp\\gen\\", "-verbose",
//                "-createxsdimports",//раскоментировать если нужно выделить xsd-шки в отдельные файлы
                "-wsdl", "webservice.SomeService"});

webservice.SomeService has @WebService and @WSDLDocumentation annotations and request and response classes are annotated with @Documentation annotation

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question