Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-7813

Bottom-up SOAP Services with Apache CXF and Custom XSD

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.2.5
    • None
    • JAX-WS Runtime
    • None
    • Unknown

    Description

      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 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mac.miklas Maciej Miklas
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: