Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 18198 invoked from network); 16 Nov 2008 16:32:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Nov 2008 16:32:27 -0000 Received: (qmail 34269 invoked by uid 500); 16 Nov 2008 16:32:26 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 34255 invoked by uid 500); 16 Nov 2008 16:32:26 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 34244 invoked by uid 99); 16 Nov 2008 16:32:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Nov 2008 08:32:26 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of amilasuriarachchi@gmail.com designates 209.85.134.185 as permitted sender) Received: from [209.85.134.185] (HELO mu-out-0910.google.com) (209.85.134.185) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Nov 2008 16:31:04 +0000 Received: by mu-out-0910.google.com with SMTP id w8so2214959mue.8 for ; Sun, 16 Nov 2008 08:31:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=Moa2B2y5DyFph4mIpxJCA+2SHTrjzJq5G6n40IpJNaA=; b=WSjvOi8D37zYA40ygYOm9iohVxGPQvtk0AgaduvXpw/hIzCuA6pAoWHQ6Yeyj3vpcK ycig70W+3i2c2+k8wXBMGwkF8L5PEBzsWI/1tveGa1osHFgafM/YzrlHXp2FnA9hxE3r IM6TJzs59bszIYDvffIoXTeBp7AIl8SOOP3GY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=Nrb3i/Qe9ymdTcQcsnvKIsGPWhQ4psJ+dgbhM/b3Dpa7yOD2oJCacxL1Ob7tzMtNpC HBU+Cj7UFyOJ81eOZqUI61suwfSgvdKOeVjKYjq/y1mrTPOxC46UPZyqCz2JCsl/PDWL f/88zDvsZs7PSje1qAgoYe7Ie+kB263dtp0Vo= Received: by 10.103.92.8 with SMTP id u8mr983673mul.12.1226853088709; Sun, 16 Nov 2008 08:31:28 -0800 (PST) Received: by 10.103.12.6 with HTTP; Sun, 16 Nov 2008 08:31:28 -0800 (PST) Message-ID: <60708f4b0811160831y28bdefb1y139fec6a62849a56@mail.gmail.com> Date: Sun, 16 Nov 2008 22:01:28 +0530 From: "Amila Suriarachchi" To: axis-user@ws.apache.org Subject: Re: SOAP parsing issues In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <60708f4b0811160613t35b7ab47wa63b5f8c65e0cb98@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org I think this is a known issue of POJO. Please log a jira. On 11/16/08, Zvi, Raanan wrote: > I'm using POJO (I write a simple java file without extending anything and > extract it to aar file). > I know that the second request doesn't fit the wsdl but it only doesn't fit > because of the order. The first request is the main issue here. The issue is > that even if I change the name of the XML element bug keep the order and > type the SOAP request will be ok. This causes problems when dealing with > arrays. > I have a method that gets two arrays of integers. If I send the first array > as empty and the second full with two elements, the code will receive the > first array with two elements and the second array empty. This is because > the SOAP decoder ignores the names of the arguments. > > From: Amila Suriarachchi [mailto:amilasuriarachchi@gmail.com] > Sent: Sunday, November 16, 2008 16:13 > To: axis-user@ws.apache.org > Subject: Re: SOAP parsing issues > > > On Tue, Nov 11, 2008 at 12:28 PM, Zvi, Raanan > > wrote: > > Hello, > > > > I'm writing a web service server which uses axis2 1.4.1 and tomcat 6 and I > noticed some disturbing issues in the way axis2 parse the SOAP xml. > > For some reason axis2 SOAP parser ignores the names of the XML elements and > decides the values of the arguments according to their order in the XML. > > > > I have this simple method: > > > > - > > - > > - > > > > type="xs:string" /> > > > > > > > > > > I can even send this XML and it will work: > > > > xmlns:wsdl="http://wsdl.intf.dcm.intel.com"> > > > > > > > > -1 > > NODE > > > > > > > > > > If I send this: > > > > xmlns:wsdl="http://wsdl.intf.dcm.intel.com"> > > > > > > > > NODE > > -1 > > > > > > > > > > Then axis2 tries to put the string "NODE" into the integer argument > entityId. > > > > This issue causes a lot of very strange behaviors like if I have a method > which gets two arrays, and I send an empty array as the first argument and a > full array as the second argument, then in code I get the value of the > second array as the first argument and the second argument is empty. > > > > Is there any fix for this? > > Are you using a POJO? Anyway it seems that your second request does not > match the Schema given above. > > thanks, > Amila. > > > > Raanan. > > --------------------------------------------------------------------- > > Intel Israel (74) Limited > > > > This e-mail and any attachments may contain confidential material for > > the sole use of the intended recipient(s). Any review or distribution > > by others is strictly prohibited. If you are not the intended > > recipient, please contact the sender and delete all copies. > > > > -- > Amila Suriarachchi > WSO2 Inc. > blog: http://amilachinthaka.blogspot.com/ > --------------------------------------------------------------------- > Intel Israel (74) Limited > > This e-mail and any attachments may contain confidential material for > the sole use of the intended recipient(s). Any review or distribution > by others is strictly prohibited. If you are not the intended > recipient, please contact the sender and delete all copies. > -- Amila Suriarachchi WSO2 Inc. blog: http://amilachinthaka.blogspot.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org