Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 68788 invoked from network); 23 Mar 2006 15:34:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 23 Mar 2006 15:34:55 -0000 Received: (qmail 31685 invoked by uid 500); 23 Mar 2006 15:34:51 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 31613 invoked by uid 500); 23 Mar 2006 15:34:51 -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: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 31578 invoked by uid 99); 23 Mar 2006 15:34:51 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Mar 2006 07:34:51 -0800 X-ASF-Spam-Status: No, hits=2.7 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,SPF_PASS,USERPASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of TEIXOEIRA@terra.es designates 213.4.149.12 as permitted sender) Received: from [213.4.149.12] (HELO csmtpout4.frontal.correo) (213.4.149.12) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Mar 2006 07:34:49 -0800 Received: from cps3 (213.4.149.20) by csmtpout4.frontal.correo (7.2.056.6) id 4421DC3000014E4D for axis-dev@ws.apache.org; Thu, 23 Mar 2006 16:34:47 +0100 Received: from [193.144.84.187] by correo6.terra.es with HTTP (authenticated as teixoeira@terra.es); Thu, 23 Mar 2006 16:34:28 +0100 Message-ID: <30039382.1143128068628.JavaMail.root@cps3> Date: Thu, 23 Mar 2006 16:34:28 +0100 (MET) From: "TEIXOEIRA@terra.es" Reply-To: TEIXOEIRA@terra.es To: Subject: Re: streams MIME-Version: 1.0 Content-Type: text/plain;charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Sorry, this is the mail I wanted to send ... I'm trying to avoid storing the whole contents in memory so, I think that's= not a solution. Lets suppose I define a wsdl element =20 ... and a message called fileRequest. Then, WSDL2Java would translate it in= to something like private void file(FileRequest fileRequest){ } where class FileRequest{ private String name; private byte[] content; getters and setters ... } Then, what I need is, that "content" in "FileRequest" be some sort of Input= Stream instead of being a byte array. Can Axis generate this? If not, would it be too difficult to get it work li= ke that? Kind regards

----Mensaje original----
De: ciaran.dunn@gmail.com
Recibido: 23/03/2006 13:45
Para: ,
Asunto: Re: streams

Can you not in your client code simply do this?

myInputStream.toString().getBytes()

Cheers,
Ciaran

On 3/23/06, TEIXOEIRA@terra.es <TEIXOEIRA@terra.es>=20 wrote:
Hi!

I have a web service developed with Axis. In my WSDL I define a message type in which I include a base64 binary element. WSDL2Java
generates a method interface passing a byte[] argument representing the value described by that element. Could it be an InputStream instead
a byte[]? = Does it make sense to you?

Thanks.


Prueba el=20 Nuevo Correo Terra; Seguro, R=EF=BF=BDpido, Fiable.




Prueba el Nuevo Correo Terra; Seguro, R=C3=A1pido, Fiable.