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

wsdl2java can use invalid local filename when working with wsdl imports

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.7.14
    • Fix Version/s: 3.0.13, 3.1.11
    • Component/s: Tooling
    • Labels:
      None
    • Environment:

      Windows platform

    • Estimated Complexity:
      Novice

      Description

      When using wsdl2java on an WSDL which has an wsdl import like:

      <wsdl:import namespace="http://tempuri.org/MyService/ExternalWSDL" location="http://localhost/WebApplication1/WebService1.asmx?wsdl=wsdl1"/>

      WSDLToJavaContainer.generateLocalWSDL tries to create a temporary file on disk named "WebService1.asmx?wsdl=wsdl1" on Windows this is an invalid filename due to the question mark .

      I have a proposed solution for this: just like with schema imports simply use a numbered file on disk importNN.wsdl. I will be submitting a pull request for this soon.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dkulp Daniel Kulp
                Reporter:
                escabe Martijn Aben
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: