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

WSDL location in binding file must be an exact string match to wsdl2java arg

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0-RC
    • None
    • None

    Description

      The wsdl URI in a binding file and wsdl URI in a wsdl2java call need to be exact. String comparison is used instead of URI comparison. For example, as shown below, /a/path/to/hello_world.wsdl is not considered the same as /a/path/to/../to/hello_world.wsdl.

      In build.xml:
      ...
      <wsdl2java file="hello_world.wsdl" dir="/a/path/to" bindingfile="binding.xml"/>
      ...

      In binding.xml:
      <bindings wsdlLocation="/a/path/to/../to/hello_world.wsdl"
      ...

      FYI: Part of the problem exists in tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/customiztion/CustomizationParser.java on the following line:
      if (wsdlURI.toString().equals(this.wsdlURL)) {

      Attachments

        1. cxf-556.patch
          4 kB
          Jonathan Anstey

        Activity

          People

            Unassigned Unassigned
            janstey Jonathan Anstey
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: