Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 68581 invoked from network); 20 Jan 2006 04:01:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Jan 2006 04:01:13 -0000 Received: (qmail 38509 invoked by uid 500); 20 Jan 2006 04:01:09 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 38479 invoked by uid 500); 20 Jan 2006 04:01:09 -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 38466 invoked by uid 99); 20 Jan 2006 04:01:09 -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, 19 Jan 2006 20:01:08 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 924F1E1 for ; Fri, 20 Jan 2006 05:00:47 +0100 (CET) Message-ID: <1519156198.1137729647597.JavaMail.jira@ajax.apache.org> Date: Fri, 20 Jan 2006 05:00:47 +0100 (CET) From: "Chad Wilson (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Commented: (AXIS-2095) Items in an array seems to have the wrong name compared to what the WSDL says. In-Reply-To: <36760728.1120135797728.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-2095?page=comments#action_12363361 ] Chad Wilson commented on AXIS-2095: ----------------------------------- I can confirm that Anil's fix resolves this issue in Axis 1.3 for Document/Wrapped. This issue has caused a number of other currently open bugs in Axis which I will link back to this (e.g. AXIS-2250) > Items in an array seems to have the wrong name compared to what the WSDL says. > ------------------------------------------------------------------------------ > > Key: AXIS-2095 > URL: http://issues.apache.org/jira/browse/AXIS-2095 > Project: Apache Axis > Type: Bug > Versions: 1.2.1 > Reporter: Ted Sanne > > My WSDL describes an array (this is only a small fragment of the complete WSDL): > > > > > > > > > > > > > > > > > > > > > > > > > > > When calling the webservice the return looks like this: > > > ... > > > and the client throws the following: > org.xml.sax.SAXException: Invalid element in com.tracetracker.enterprise.twa.ArrayOfPropertyValueDTO - properties > at org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:258) > at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035) > at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165) > at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141) > ... > It seems the client expects a structure like this: > > > ... > > > Having a go at debugging the ArraySerializer I can see in my debugger that both itemQName and componentQName is null, so elementName is never changed from "properties" to "item": > // For the maxOccurs case, each item is named with the QName > // we got in the arguments. For normal array case, we write an element with > // that QName, and then serialize each item as > QName elementName = name; > Attributes serializeAttr = attributes; > if (!maxOccursUsage) { > serializeAttr = null; // since we are putting them here > context.startElement(name, attributes); > if (itemQName != null) > elementName = itemQName; > else if(componentQName != null) > elementName = componentQName; > } > Can anyone tell me what has gone wrong here? -- 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