Schema entries with same targetNamespace produces error in wsdl2java
--------------------------------------------------------------------
Key: CXF-1679
URL: https://issues.apache.org/jira/browse/CXF-1679
Project: CXF
Issue Type: Bug
Components: Tooling
Affects Versions: 2.1.1
Environment: Windows XP, Eclipse
Reporter: Andy Frantz
Priority: Minor
When running wsdl2java, If there are multiple xsd:schema entries with the same
targetNamespace in the wsdl:types section, a "WSDLToJava Error: Failed to
create java parameter..." error occurs. I'm not actually sure why the error
occurs, but he wsdl validates just fine with the validation tool.
Validates, but causes a problem in wsdl2java:
<wsdl:types>
<xsd:schema elementFormDefault="qualified" targetNamespace="target:ns"
xmlns:tns="target:ns">
<xsd:include schemaLocation="../schemas/first.xsd" />
</xsd:schema>
<xsd:schema elementFormDefault="qualified" targetNamespace="target:ns"
xmlns:tns="target:ns">
<xsd:include schemaLocation="../schemas/second.xsd" />
</xsd:schema>
</wsdl:types>
Does not cause a problem:
<wsdl:types>
<xsd:schema elementFormDefault="qualified" targetNamespace="target:ns"
xmlns:tns="target:ns">
<xsd:include schemaLocation="../schemas/first.xsd" />
<xsd:include schemaLocation="../schemas/second.xsd" />
</xsd:schema>
</wsdl:types>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.