Return-Path: Mailing-List: contact axis-user-help@xml.apache.org; run by ezmlm Delivered-To: mailing list axis-user@xml.apache.org Received: (qmail 49908 invoked from network); 18 Apr 2002 19:20:19 -0000 Received: from web9908.mail.yahoo.com (216.136.129.251) by daedalus.apache.org with SMTP; 18 Apr 2002 19:20:19 -0000 Message-ID: <20020418192024.47654.qmail@web9908.mail.yahoo.com> Received: from [204.168.183.165] by web9908.mail.yahoo.com via HTTP; Thu, 18 Apr 2002 12:20:24 PDT Date: Thu, 18 Apr 2002 12:20:24 -0700 (PDT) From: vidula pant Subject: Re: Help required!! To: axis-user@xml.apache.org In-Reply-To: <001001c1e70b$f5bc4f20$c50e560c@DELL850> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N So in the client I can just say: result=(byte[])call.invoke( new Object[]{bytearray}); And it should work? Thanks a ton, Vidula --- Stan Jordan wrote: > I should have mentioned that the stub does this > (more-or-less): > Object resp = call.invoke(new Object[] {s}); > return > (byte[])org.apache.axis.utils.JavaUtils.convert(resp,byte[].class); > > ----- Original Message ----- > From: "Stan Jordan" > To: > Sent: Thursday, April 18, 2002 12:55 PM > Subject: Re: Help required!! > > > > Uh, I disagree. I have built a (toy) Axis web > service that returns a byte > > array, and the signature I used is: > > public byte[] sayHello(String s) > > The client invokes like this: > > byte[] b = (byte[])port.sayHello("Hello"); > > Works fine. > > Cheers. > > Stan > > > > ----- Original Message ----- > > From: "Newman, Scott" > > To: > > Sent: Thursday, April 18, 2002 12:42 PM > > Subject: RE: Help required!! > > > > > > > The object Byte, rather than the native type > byte. > > > > > > -----Original Message----- > > > From: vidula pant [mailto:vpp201@yahoo.com] > > > Sent: 18 April, 2002 1:43 PM > > > To: axis-user@xml.apache.org > > > Subject: RE: Help required!! > > > > > > I don't quite get it? "BYTE[]" do you mean > "Byte" the > > > wrapper class? > > > -Vidula > > > --- Rajesh.Mittal@us.hsbc.COM wrote: > > > > I think it will be BYTE[] theByte = (BYTE[]) > > > > someMethodThatReturnObject(); > > > > and then you have to convert it in to > primitive type > > > > array ..... > > > > > > > > rajesh > > > > > > > > > > > > > > > > > > > > Please respond to axis-user@xml.apache.org > > > > > > > > > > > > > > > > To: "'axis-user@xml.apache.org'" > > > > > > > > > > > > > > > > cc: > > > > (bcc: Rajesh Mittal/HBUS/HSBC) > > > > Subject: RE: Help required!! > > > > > > > > > > > > > > > > cast it to a byte[] .... byte[] bytes = > > > > (byte[])someMethodThatReturnObject(); > > > > > > > > if your sure it will be a byhte array > > > > > > > > -----Original Message----- > > > > From: vidula pant [mailto:vpp201@yahoo.com] > > > > Sent: Thursday, April 18, 2002 1:55 PM > > > > To: axis-user@xml.apache.org > > > > Subject: Help required!! > > > > > > > > > > > > When returning byte arrays, the return type is > > > > Object. > > > > So I am confused how would I get the byte > array? > > > > Many thanks for any help, > > > > Vidula > > > > > > > > > > > > > __________________________________________________ > > > > Do You Yahoo!? > > > > Yahoo! Tax Center - online filing with > TurboTax > > > > http://taxes.yahoo.com/ > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ******************************************************************** > > > > This message and any attachments are > confidential > > > > to the ordinary > > > > user of the e-mail address to which it was > > > > addressed and may also > > > > be privileged. If you are not the > addressee > > > > you may not copy, > > > > forward, disclose or use any part of > the > > > > message or its > > > > attachments and if you have received this > message > > > > in error, please > > > > notify the sender immediately by return > e-mail and > > > > delete it from > > > > your system. > > > > > > > > Internet communications cannot be > guaranteed > > > > to be secure or > > > > error-free as information could be > intercepted, > > > > corrupted, lost, > > > > arrive late or contain viruses. The sender > > > > therefore does not > > > > accept liability for any errors or > omissions in > > > > the context of > > > > this message which arise as a result of > > > > Internet transmission. > > > > > > > > Any opinions contained in this message are > those of > > > > the author and > > > > are not given or endorsed by the HSBC Group > company > > > > or office > > > > through which this message is sent unless > otherwise > > > > clearly > > > > indicated in this message and the authority > of the > > > > author to so > > > > bind the HSBC entity referred to is duly > verified. > > > > > > > > > > > > ******************************************************************** > > > > > > > > > > __________________________________________________ > > > Do You Yahoo!? > > > Yahoo! Tax Center - online filing with TurboTax > > > http://taxes.yahoo.com/ > > > > > > > > __________________________________________________ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/