Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B14CE11C75 for ; Mon, 5 May 2014 03:56:20 +0000 (UTC) Received: (qmail 67826 invoked by uid 500); 5 May 2014 03:56:20 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 67675 invoked by uid 500); 5 May 2014 03:56:17 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 67474 invoked by uid 99); 5 May 2014 03:56:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 May 2014 03:56:15 +0000 Date: Mon, 5 May 2014 03:56:15 +0000 (UTC) From: "Owen Farrell (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CXF-5728) wadl2java plugin does not create correctly typed parameters MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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)