Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 1131 invoked from network); 1 Aug 2005 03:04:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Aug 2005 03:04:09 -0000 Received: (qmail 50449 invoked by uid 500); 1 Aug 2005 03:03:57 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 50384 invoked by uid 500); 1 Aug 2005 03:03:55 -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 50190 invoked by uid 99); 1 Aug 2005 03:03:53 -0000 X-ASF-Spam-Status: No, hits=0.0 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; Sun, 31 Jul 2005 20:03:41 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 6E30DE7 for ; Mon, 1 Aug 2005 05:03:38 +0200 (CEST) Message-ID: <394260054.1122865418449.JavaMail.jira@ajax.apache.org> Date: Mon, 1 Aug 2005 05:03:38 +0200 (CEST) From: "Davanum Srinivas (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Commented: (AXIS-2118) No Helper class and deploy.wsdd incorrect for class containing an array of Strings In-Reply-To: <1865586667.1121326875483.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-2118?page=comments#action_12317278 ] Davanum Srinivas commented on AXIS-2118: ---------------------------------------- Aedemar, Am downgrading this to "Critical" since you have a work around for now. thanks, dims > No Helper class and deploy.wsdd incorrect for class containing an array of Strings > ----------------------------------------------------------------------------------- > > Key: AXIS-2118 > URL: http://issues.apache.org/jira/browse/AXIS-2118 > Project: Apache Axis > Type: Bug > Components: WSDL processing > Versions: 1.2.1 > Environment: Axis service deployed to websphere server > WebSphere Platform 5.1 [BASE 5.1.1 a0426.01] [JDK 1.4.2 cn1420-20040626] [PME 5.1.1 o0429.02] running with process name localhost\localhost\server1 and process id 3052 > Host Operating System is Windows 2000, version 5.0 > Java version = J2RE 1.4.2 IBM Windows 32 build cn1420-20040626 (JIT enabled: jitc), Java Compiler = jitc, Java VM name = Classic VM > Microsoft Development Environment 2003 > Microsoft .NET Framework 1.1 > Microsoft Visual C# .NET 69586-335-0000007-18998 > Reporter: Aedemar Cooke > Assignee: Venkat Reddy > Priority: Blocker > Attachments: test.wsdl > > I have a class that has one property, an array of strings. On its own it is not much use, but I have other classes that extend it so unless I get this resolved, I can't upgrade my application from using Axis1.1 rpc/encoded to Axis1.2.1 wrapped/literal > My WSDL for the class is (see attached file test.wsdl for complete wsdl) > > > > > > When I use the org.apache.axis.wsdl.WSDL2Java -command specifying the --helperGen option, Axis doesn't generate a Helper class or class for the StringArray class. > The deploy.wsdd file contains an array mapping:rather than a type mapping: > xmlns:ns="http://test.axis" > qname="ns:StringArray" > type="java:java.lang.String[]" > innerType="cmp-ns:string" xmlns:cmp-ns="http://www.w3.org/2001/XMLSchema" > encodingStyle="" > /> > Calling a web service method that takes a StringArray as a parameter causes a Sax Exception as it says it has found characters when it is expecting an array. > If I add another property to the complex type definition, say a boolean > > > > > > > I do get the helper class with the following type description > static { > typeDesc.setXmlType(new javax.xml.namespace.QName("http://test.axis", "StringArray")); > org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); > elemField.setFieldName("values"); > elemField.setXmlName(new javax.xml.namespace.QName("http://test.axis", "values")); > elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); > elemField.setNillable(true); > elemField.setMaxOccursUnbounded(true); > typeDesc.addFieldDesc(elemField); > elemField = new org.apache.axis.description.ElementDesc(); > elemField.setFieldName("notInUse"); > elemField.setXmlName(new javax.xml.namespace.QName("http://test.axis", "notInUse")); > elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean")); > elemField.setNillable(false); > typeDesc.addFieldDesc(elemField); > } > and the deploy.wsdd has a type mapping > xmlns:ns="http://test.axis" > qname="ns:StringArray" > type="java:axis.test.StringArray" > serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" > deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" > encodingStyle="" > /> > If I manually create a Helper class for the version of the class without a boolean property and edit the deploy.wsdd to have the type mapping rather than the array mapping, my application works. -- 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