Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
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)) {