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

WSDL2Java can't handle JAXB-bindings with split WSDLs

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

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.3
    • 2.0.10, 2.1.4
    • None
    • None

    Description

      The documentation on WSDL2Java says about the parameter "-b": "Specifies zero, or more, JAXWS or JAXB binding files." In fact, WSDL2Java can not handle specified JAXB binding files if the WSDL is split, i.e. it is given a WSDL with service and binding definitions, which imports another WSDL with port type and messages definitions, which in turn imports an XML schema file.

      The command line "wsdl2java -validate -b jaxb-custom.xjb hello-world-service.wsdl" will fail with

      WSDLToJava Error: Thrown by JAXB : "file:/home/jheilgei/DEV/workspaces/cxf-mini/hello-world-service.wsdl" is not a part of this compilation. Is this a mistake for "file:/home/jheilgei/DEV/workspaces/cxf-mini/hello-world-abstract.wsdl"?

      while the command line "wsdl2java -validate -xjc-b,jaxb-custom.xjb hello-world-service.wsdl" which gives the binding file directly to the JAXB binding compiler will succeed.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            dkulp Daniel Kulp
            jkh Janko Heilgeist
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment