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

Bottom-up SOAP Services with Apache CXF and Custom XSD

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Wish
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.2.5
    • Fix Version/s: None
    • Component/s: JAX-WS Runtime
    • Labels:
      None
    • Estimated Complexity:
      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

            • Assignee:
              Unassigned
              Reporter:
              mac.miklas Maciej Miklas

              Dates

              • Created:
                Updated:

                Issue deployment