cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andy Frantz (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CXF-1679) Schema entries with same targetNamespace produces error in wsdl2java
Date Fri, 13 Nov 2009 17:45:40 GMT

    [ https://issues.apache.org/jira/browse/CXF-1679?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12777581#action_12777581
] 

Andy Frantz commented on CXF-1679:
----------------------------------

Wow, that was some time ago - I couldn't say if it is still an issue or not.  I'm sure I came
up with a workaround at the time just to move forward.

> 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.


Mime
View raw message