Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 9041 invoked from network); 14 Apr 2005 01:30:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Apr 2005 01:30:52 -0000 Received: (qmail 27400 invoked by uid 500); 14 Apr 2005 01:30:25 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 27303 invoked by uid 500); 14 Apr 2005 01:30:24 -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: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 27187 invoked by uid 99); 14 Apr 2005 01:30:23 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from ajax-1.apache.org (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 13 Apr 2005 18:30:20 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 8BB543DB for ; Thu, 14 Apr 2005 03:30:18 +0200 (CEST) Message-ID: <1097850922.1113442218570.JavaMail.jira@ajax.apache.org> Date: Thu, 14 Apr 2005 03:30:18 +0200 (CEST) From: "Davanum Srinivas (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Commented: (AXIS-1926) wrapped document/literal generates wrong SOAP message for arrays within arrays In-Reply-To: <1748796498.1113420917590.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/AXIS-1926?page=comments#action_62801 ] Davanum Srinivas commented on AXIS-1926: ---------------------------------------- Why can't u use a NamedValueSet in between? NamedValue[] options = new NamedValue[]{ new NamedValue("dummy1", "dummy_val1"), new NamedValue("dummy2", new NamedValueSet (new NamedValue[]{ new NamedValue("dummy2-1", "val2-1"), new NamedValue("dummy2-2", new Integer(314)) })) }; > wrapped document/literal generates wrong SOAP message for arrays within arrays > ------------------------------------------------------------------------------ > > Key: AXIS-1926 > URL: http://issues.apache.org/jira/browse/AXIS-1926 > Project: Axis > Type: Bug > Environment: Linux, Axis 1.2RC3 > Reporter: Tim Kagle > Priority: Blocker > Attachments: RemoteLoginManager.wsdl > > First of all, this has been discussed on the users mailing list, please refer to this thread as it may have more up-to-date information: > http://article.gmane.org/gmane.comp.apache.webservices.axis.user/29082 > I have a data type defined as: > > > > > > > I need the value to be xsd:anyType so that I can send arrays of NamedValue with various types for value. > On the server side I have a method defined as: > NamedValue[] login(String username, String password, NamedValue[] options) > Which in the WSDL the request looks like this: > - > - > - > > > > > > > And the response like this: > - > - > - > > > > > If I create on the client side an options array that looks like this: > NamedValue[] options = new NamedValue[] > { > new NamedValue("dummy1", "dummy_val1"), > new NamedValue("dummy2", > new NamedValue[] > { > new NamedValue("dummy2-1", "val2-1"), > new NamedValue("dummy2-2", new Integer(314)) > }) > }; > Note the array inside the array above. > A request to the server from an Axis client (latest CVS version of 1.2RC3) looks like this: > > tim > tim > > dummy1 > dummy_val1 > > > dummy2 > > dummy2-1 > val2-1 > > > dummy2-2 > 314 > > > > The encoding of the array inside the array does not seem right to me, the server ends up with a NamedValue value for "dummy2" instead of a NamedValue[]. > From Anne Thomas Manes: > You're right. The array within the array should be mapped to this: > > tim > tim > > dummy1 > dummy_val1 > > > dummy2 > > dummy2-1 > val2-1 > dummy2-2 > 314 > > > > I suggest you file a bug report, because Axis is not generating the > right message structure per the WSDL. > Anne -- 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 - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira