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

BindingCustomization does not work for the wsdl url like file://home/usr/../../wsdl/helloworld.wsdl

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.5, 2.4.4
    • Tooling
    • None
    • Unknown

    Description

      When the the binding file like the below is gave to customize the package name and there is some ".." or "." in the given wsdl url, wsdl2java fails to generate the class in the expected package :

      ----binding file ----------

      <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
      <bindings wsdlLocation="hello-world.wsdl" xmlns="http://java.sun.com/xml/ns/jaxws">
      <bindings node="ns1:definitions" xmlns:ns1="http://schemas.xmlsoap.org/wsdl/">
      <package name="org.apache.cxf"/>
      </bindings>
      </bindings>

      ----command to generate code —
      wsdl2java -b bindingfile.xml file://home/usr/hello/world/../../hello-world.wsdl

      Attachments

        Activity

          People

            ema Jim Ma
            ema Jim Ma
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: