Maciej Miklas created CXF-7813:
----------------------------------
Summary: Bottom-up SOAP Services with Apache CXF and Custom XSD
Key: CXF-7813
URL: https://issues.apache.org/jira/browse/CXF-7813
Project: CXF
Issue Type: Wish
Components: JAX-WS Runtime
Affects Versions: 3.2.5
Reporter: Maciej Miklas
I would be nice to have possibility to provide custom XSD while generating WSDL
from Java Code.
The idea is to write XSD that defines simple types, reference those types in
transfer objects, and on the end generate WSLD which combines it all.
I've implemented
[here|https://github.com/maciejmiklas/apache-cxf-soap/tree/master/src/main/java/org/ast/apachecxfsoap/extended]
small extension for CXF.
Some fields in transfer objects are annotated with _@XmlSchemaType_ - this
annotation provides connection between Java types and types defined in XSD. For
example _ExRegistration#email_ is annotated with _@XmlSchemaType(name =
"email")_, XSD contains email type, and finally _email_ in generated in WSDL
references type from provided Schema.
This extension has some limitations, so the final solution would have to work
in some other way, but I would like to know Your opinion such future in
general. We are using it in production and it works really well. On the end we
do not have to write WSDL by hand, and we can still precisely specify format
for transfer objects.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)