Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 1147 invoked from network); 17 Feb 2006 02:45:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Feb 2006 02:45:59 -0000 Received: (qmail 74780 invoked by uid 500); 17 Feb 2006 02:45:53 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 74747 invoked by uid 500); 17 Feb 2006 02:45:53 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 74730 invoked by uid 99); 17 Feb 2006 02:45:52 -0000 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=SPF_FAIL X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Feb 2006 18:45:51 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id A240BDD for ; Fri, 17 Feb 2006 03:45:30 +0100 (CET) Message-ID: <1022774574.1140144330662.JavaMail.jira@ajax.apache.org> Date: Fri, 17 Feb 2006 03:45:30 +0100 (CET) From: "Dies Koper (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Commented: (AXIS-2391) WSDL2Java ignores attributes for complex types that have only element with maxOccurs=unbounded in sequence In-Reply-To: <193267912.1138814645136.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/AXIS-2391?page=comments#action_12366735 ] Dies Koper commented on AXIS-2391: ---------------------------------- I think there is a bug in the code that determines whether arrays should be wrapped or not (see --wrapArrays option). It seems to ignore your attributes. I think setting the WSDL2Java option --wrapArrays should solve your problem. Please comment here if it works. > WSDL2Java ignores attributes for complex types that have only element with maxOccurs=unbounded in sequence > ---------------------------------------------------------------------------------------------------------- > > Key: AXIS-2391 > URL: http://issues.apache.org/jira/browse/AXIS-2391 > Project: Apache Axis > Type: Bug > Components: WSDL processing > Versions: 1.3 > Environment: Axis for Java v1.3 > java version "1.5.0_01" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_01-b08) > Java HotSpot(TM) Client VM (build 1.5.0_01-b08, mixed mode, sharing) > Windows XP Professional, SP2 > Reporter: Vaduz > > WSDL2Java generates wrong source code for the complex type of the following structure: > > > > > > > > The complex type should be a sequence with only element, which has maxOccurs="unbounded". > In this case all atributes are ignored and not included to the resulting type. > Version 1.2 works correctly. Version 1.3 works correctly, if the sequense has includes more than one element. > The sample WSDL used for test: > -------------------------------------------------- > > targetNamespace="http://www/bug/DayOfWeek.wsdl" > xmlns:tns="http://www/bug/DayOfWeek.wsdl" > xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > xmlns="http://schemas.xmlsoap.org/wsdl/"> > > > > > > > > > > > > > > > > > > > > > > > > > transport="http://schemas.xmlsoap.org/soap/http"/> > > > > namespace="http://www/bug" > encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> > > > namespace="http://www/bug" > encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> > > > > > > Returns the day-of-week name for a given date > > > > > > > -------------------------------------------------- > For this WSDL Axis 1.2 generates the correct code: > ... > public www.bug.DayOfWeek_wsdl.ReplyType getDayOfWeek(java.util.Date date) ... > ... > Where reply type includes attributes attr1 and attr2 as well as Item array. > Axis 1.3 does not generate ReplyType class at all, and declares getDayOfWeek as following: > public java.lang.String[] getDayOfWeek(java.util.Date date)... > which is obviosly wrong. > -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira