Vidula...
This kinda client code should do the trick...
   call.addParameter("ba", new QName(endpointURL, "ArrayOf_xsd_byte"),
ParameterMode.PARAM_MODE_IN);
   call.setReturnType(new QName(endpointURL, "ArrayOf_xsd_byte"));
   byte[] ba = new byte[] {1, 3, 5};
   Object o = call.invoke(new Object[] { ba } );
   byte[] result = (byte[])o;
Good luck
Stan
----- Original Message -----
From: "vidula pant" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 18, 2002 1:20 PM
Subject: Re: Help required!!


> 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 <[EMAIL PROTECTED]> 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" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > 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" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > 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:[EMAIL PROTECTED]]
> > > > Sent: 18 April, 2002 1:43 PM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: RE: Help required!!
> > > >
> > > > I don't quite get it? "BYTE[]" do you mean
> > "Byte" the
> > > > wrapper class?
> > > > -Vidula
> > > > --- [EMAIL PROTECTED] 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 [EMAIL PROTECTED]
> > > > >
> > > > >
> > > > >
> > > > > To:   "'[EMAIL PROTECTED]'"
> > > > > <[EMAIL PROTECTED]>
> > > > >
> > > > >
> > > > > 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:[EMAIL PROTECTED]]
> > > > > Sent: Thursday, April 18, 2002 1:55 PM
> > > > > To: [EMAIL PROTECTED]
> > > > > 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/
>

Reply via email to