[
https://issues.apache.org/jira/browse/CXF-1679?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12777577#action_12777577
]
Daniel Kulp commented on CXF-1679:
----------------------------------
Any idea if this is still a problem? With 2.2.x, we changed how the schemas
are loaded internally to using the XmlSchema stuff entirely and also how the
elements are looked up from XmlSchema. Thus, I believe this should be fixed.
> 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.