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










... and a message called fileRequest. Then, WSDL2Java would translate it into 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 InputStream instead of being a byte array.
Can Axis generate this? If not, would it be too difficult to get it work like that?

Kind regards






----Mensaje original----

De: [EMAIL PROTECTED]

Recibido: 23/03/2006 13:45

Para: , <[EMAIL PROTECTED]>

Asunto: Re: streams



Can you not in your client code simply do this?



myInputStream.toString().getBytes()



Cheers,

Ciaran

On 3/23/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> 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 Nuevo Correo Terra; Seguro, R�pido, Fiable.










Prueba el Nuevo Correo Terra; Seguro, Rápido, Fiable.

Reply via email to