Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 20607 invoked from network); 26 Jan 2007 14:14:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Jan 2007 14:14:29 -0000 Received: (qmail 4543 invoked by uid 500); 26 Jan 2007 14:14:24 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 4531 invoked by uid 500); 26 Jan 2007 14:14:24 -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 4520 invoked by uid 99); 26 Jan 2007 14:14:24 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Jan 2007 06:14:24 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of lists@nabble.com designates 72.21.53.35 as permitted sender) Received: from [72.21.53.35] (HELO talk.nabble.com) (72.21.53.35) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Jan 2007 06:14:15 -0800 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1HARiC-0003ty-Ss for axis-user@ws.apache.org; Fri, 26 Jan 2007 06:05:52 -0800 Message-ID: <8651318.post@talk.nabble.com> Date: Fri, 26 Jan 2007 06:05:52 -0800 (PST) From: rajac To: axis-user@ws.apache.org Subject: Re: returning Array from a web service method In-Reply-To: <812110.35658.qm@web39215.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: raja.chattopadhyay@gmail.com References: <8646449.post@talk.nabble.com> <45B999D3.7060603@opensource.lk> <8646652.post@talk.nabble.com> <812110.35658.qm@web39215.mail.mud.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi Kinichiro Inoguchi, I am returning the array which is of non Java Bean type and when I am trying to invoke the service I am not getting the value of array (i.e, Object[] response = serviceClient.invokeBlocking(opGetAddress, opGetAddressesArgs, returnTypes)). Although the length of the response is returning "1" but the when I am trying to get/retrieve the value from the response object its returning 'null'. I am not very sure if I am doing any mistake. Do I need to configure anything to get array value of Non Java Bean type? I am uploading the java files. Kinichiro Inoguchi wrote: > > Hi, > > If your "CustomJavaObject" is JavaBean, > I think you can return array of "CustomJavaObject", > and your service class below is right. > > --- rajac wrote: > >> >> But it simply returning a Java Bean. But my purpose is to return an >> array of >> java objects. >> >> like : >> public CustomJavaObject[] getArray((){ >> // set the CustomJavaObject[] >> // return CustomJavaObject[] >> } >> >> >> Regards, >> Raja >> >> >> Deepal Jayasinghe wrote: >> > >> > Hi rajac ; >> > >> >> Hi, I am new to axis2-1.1. Currently I am trying to create a web >> >> service that returns an array of Java custom Objects. >> > >> > You mean Java Bean ? >> > If so please have a look at Samples in Axis2 bistro >> > >> > Thanks >> > Deepal >> > >> >> I could not able to find sample code from samples comes along with >> the >> >> axis2 distribution for this purpose. Can anybody help me sending >> some >> >> sample code for the same. I am using RPCServiceClient to get the >> >> result frm the web service. Thanks. Raja Chattopadhyay >> >> >> > ------------------------------------------------------------------------ >> >> View this message in context: returning Array from a web service >> >> method >> >> >> > >> >> Sent from the Axis - User >> >> mailing list archive >> at >> >> Nabble.com. >> > >> > >> > -- >> > Thanks, >> > Deepal >> > ................................................................ >> > "The highest tower is built one brick at a time" >> > >> > >> > >> > >> --------------------------------------------------------------------- >> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org >> > For additional commands, e-mail: axis-user-help@ws.apache.org >> > >> > >> > >> >> -- >> View this message in context: >> > http://www.nabble.com/returning-Array-from-a-web-service-method-tf3120863.html#a8646652 >> Sent from the Axis - User mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org >> For additional commands, e-mail: axis-user-help@ws.apache.org >> >> > > > > > ____________________________________________________________________________________ > Now that's room service! Choose from over 150,000 hotels > in 45,000 destinations on Yahoo! Travel to find your fit. > http://farechase.yahoo.com/promo-generic-14795097 > > --------------------------------------------------------------------- > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org > For additional commands, e-mail: axis-user-help@ws.apache.org > > > http://www.nabble.com/file/5942/TestService.java TestService.java http://www.nabble.com/file/5943/TestStub.java TestStub.java http://www.nabble.com/file/5944/TestClient.java TestClient.java http://www.nabble.com/file/5945/UserInfo.java UserInfo.java http://www.nabble.com/file/5946/UserInfoImpl.java UserInfoImpl.java -- View this message in context: http://www.nabble.com/returning-Array-from-a-web-service-method-tf3120863.html#a8651318 Sent from the Axis - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org