Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 26665 invoked from network); 25 Jul 2007 18:59:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Jul 2007 18:59:00 -0000 Received: (qmail 46767 invoked by uid 500); 25 Jul 2007 18:58:59 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 46171 invoked by uid 500); 25 Jul 2007 18:58:56 -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 45760 invoked by uid 99); 25 Jul 2007 18:58:56 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jul 2007 11:58:55 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jul 2007 11:58:52 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E1FD871418E for ; Wed, 25 Jul 2007 11:58:31 -0700 (PDT) Message-ID: <33049679.1185389911923.JavaMail.jira@brutus> Date: Wed, 25 Jul 2007 11:58:31 -0700 (PDT) From: "Lord Halbert (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Issue Comment Edited: (AXIS-2386) Java2WSDL changes type double array into a single double. In-Reply-To: <950412508.1138394562514.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 [ https://issues.apache.org/jira/browse/AXIS-2386?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12515382 ] Lord Halbert edited comment on AXIS-2386 at 7/25/07 11:58 AM: -------------------------------------------------------------- Use the attached WSDL file "test.wsdl" to test this bug. Do a WSDL2Java on that wsdl file. Then do a Java2WSDL on the compiled classes of the generated source files (from WSDL2Java). Look at the output WSDL from Java2WSDL and find the definition for "TestParams". This is what it should look like: This is what it looks like with Axis 1.4, 1.3, and 1.2: Do you see how the array has been converted into a single primitive? This is NOT a minor bug folks. It needs to be fixed. was: Use the attached WSDL filed "test.wsdl" to test this bug. Do a WSDL2Java on that wsdl file. Then do a Java2WSDL on the compiled classes of the generated source files (from WSDL2Java). Look at the output WSDL from Java2WSDL and find the definition for "TestParams". This is what it should look like: This is what it looks like with Axis 1.4, 1.3, and 1.2: Do you see how the array has been converted into a single primitive? This is NOT a minor bug folks. It needs to be fixed. > Java2WSDL changes type double array into a single double. > --------------------------------------------------------- > > Key: AXIS-2386 > URL: https://issues.apache.org/jira/browse/AXIS-2386 > Project: Axis > Issue Type: Bug > Components: WSDL processing > Affects Versions: 1.2, 1.2.1, 1.3, 1.4 > Environment: Not specific to an environment. It's only specific to the Axis version used. > Reporter: Eric Webster > Priority: Blocker > Attachments: DataSet.wsdl, IncorrectDataSet.wsdl, test.wsdl > > > Java2WSDL changes type double array into a single double. > This happens when you run Java2WSDL manually on the command line or when a wsdl file is generated from a service_name?wsdl url. > Currently to fix this I just manually edit the generated WSDL file and distrobute that. > The Java code originally came from a hand made WSDL file. WSDL2Java was used to generate the Java code. The section that is affected by this problem is the 'ValueVector' complexType which contains and element 'values' which is an array of doubles. After converting to Java and then back to WSDL 'values' becomes a single double. > Here is the original WSDL file. > > targetNamespace="dataset.odin.cirg.washington.edu" > xmlns:apachesoap="http://xml.apache.org/xml-soap" > xmlns:impl="dataset.odin.cirg.washington.edu" > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" > xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" > xmlns:xsd="http://www.w3.org/2001/XMLSchema"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Here is what 'ValueVector' turns into after running WSDL2Java (which creates correct java code) and then Java2WSDL. > > > > > > > > > > > -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org