cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Owen Farrell (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-5728) wadl2java plugin does not create correctly typed parameters
Date Mon, 05 May 2014 03:56:15 GMT

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

Owen Farrell commented on CXF-5728:
-----------------------------------

Okay, so I've dug around this a bit more and found a couple of things. Forgive me if I'm looking
in wrong spot.

!) I think the solution to my problem would be to add the schema target namespace and namespace
URI to the namespace map in SourceGenerator.getGrammarInfo. But I'm not sure how to juggle
the qualified vs. unqualified scenarios.

2) SourceGenerator.writeRequestTypes only reads the attributes of parameter tags when they
are a child of the request element. If a param tag is a child of a representation element,
it is ignored. In the test case I attached, it means the parameter is not being interpreted
as repeating. But The same problem would be had regarding 

Does that seem like a reasonable approach?


> wadl2java plugin does not create correctly typed parameters
> -----------------------------------------------------------
>
>                 Key: CXF-5728
>                 URL: https://issues.apache.org/jira/browse/CXF-5728
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.7.11
>            Reporter: Owen Farrell
>             Fix For: 2.7.12
>
>         Attachments: myschema.xsd, wadl2JavaTest.wadl
>
>
> When interpreting a WADL with a fully-qualified parameter type, the wadl2java plugin
converts the parameter to a String in the stubbed interface instead of the class generated
from the grammar's schema.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message