Also, and the reason I replied to the original message, what is the nature of your data in the byte[] part. Ive worked on working axis code that has had to deal with arbitary incoming byte[]'s that might be bit maps/embedded xml data/whatever and Ive never really had a problem with axis as such. Mostly with the support code that was processing the byte64 data. And I agree with Tom. Been well over the axis code to see how it can be faster. No such luck.

Cheers,
Ciaran

On 4/11/06, Tom Jordahl <[EMAIL PROTECTED]> wrote:
The short answer - yes it would be very difficult for Axis to generate code like this via WSDL2Java.

You are welcome to take the generated stub code and try to enhance it to do what you want.  But I think you will find it a challenge.  Axis is not set up to handle streamed data as an argument to an operation and you will have to change many things in the call sequence.

--
Tom Jordahl

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 23, 2006 10:34 AM
To: axis-dev@ws.apache.org
Subject: Re: streams

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">
  <complexType>
    <sequence>
      <element name="name"    type="string"/>
      <element name="content" type="base64Binary"/>
    </sequence>
  </complexType>
</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



<br>
<br>
----Mensaje original----<br>
De: [EMAIL PROTECTED]<br>
Recibido: 23/03/2006 13:45<br>
Para: <axis-dev@ws.apache.org>, <[EMAIL PROTECTED] ><br>
Asunto: Re: streams<br>
<br>
Can you not in your client code simply do this?<br>
<br>
myInputStream.toString().getBytes()<br>
<br>
Cheers,<br>
Ciaran<br><br><div><span class="gmail_quote">On 3/23/06, <b class="gmail_sendername"><a href="">es&u=teixoeira&url="" href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]&urlHash=-2.414014924187458E217 ">[EMAIL PROTECTED]</a></b> <<a href="">/cp/ps/Mail/ExternalURLProxy?d=terra.es&u=teixoeira&url="" PROTECTED]&urlHash=-2.414014924187458E217">[EMAIL PROTECTED]</a>>
wrote:
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi!
<br><br>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<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>
<br>
<br>



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


Reply via email to