axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "" <>
Subject Re: streams
Date Thu, 23 Mar 2006 15:34:28 GMT
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

<element name="file">
      <element name="name"    type="string"/>
      <element name="content" type="base64Binary"/>

... and a message called fileRequest. Then, WSDL2Java would translate it into something like

private void file(FileRequest fileRequest){



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----<br>
Recibido: 23/03/2006 13:45<br>
Para: <>, <><br>
Asunto: Re: streams<br>
Can you not in your client code simply do this?<br>
Ciaran<br><br><div><span class="gmail_quote">On 3/23/06, <b class="gmail_sendername"><a
<<a href="

</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204,
204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi!
have a web service developed with Axis. In my WSDL I define a message
type in which I include a base64 binary element. WSDL2Java<br>generates
a method interface passing a byte[] argument representing the value
described by that element. Could it be an InputStream instead<br>a byte[]? Does it make
sense to you?<br><br>Thanks.<br><br><br>Prueba el 
Nuevo Correo Terra; Seguro, R�pido, Fiable.<br><br></blockquote></div><br>

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

View raw message