axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <luciano.fiande...@ecb.int>
Subject RE: Zip files as attachments
Date Thu, 26 Feb 2004 16:04:13 GMT
Well, I think so, even if with RPC I would feel safer using Base64 encoded Strings.
 
Luciano

-----Original Message-----
From: Neil Blue [mailto:Neil.Blue@denovopharma.com]
Sent: Thursday 26 February 2004 17:03
To: axis-user@ws.apache.org
Subject: RE: Zip files as attachments


Thanks Luciano,
 
Can I use this with normal RPC parameters too?
 
Cheers
Neil

-----Original Message-----
From: luciano.fiandesio@ecb.int [mailto:luciano.fiandesio@ecb.int]
Sent: 26 February 2004 15:21
To: axis-user@ws.apache.org
Subject: RE: Zip files as attachments


Neil,
you can do this in many different ways. The quickest, in my opinion, is to write an interface
representing your web service, something like
 
public class mywebservice {
    receiveZip(byte[] zipfile)
}
 
Than 
1) you generate the wsdl against this interface
2) generate the wsdd and the stub code against the wsdl 
3) deploy
 
Just keep in mind that Axis1.1 has memory problems to handle large xml messages. If your zip
file is goiing to be big (over 2Mb) you may encounter this memory inefficiency issues.
 
Luciano 

-----Original Message-----
From: Neil Blue [mailto:Neil.Blue@denovopharma.com]
Sent: Thursday 26 February 2004 16:14
To: axis-user@ws.apache.org
Subject: RE: Zip files as attachments


Hi, Luciano
 
I would like to send an array of bytes so a non-java client can still use the service. However
as long as I can send a generic zip file I don't mind what underlying encoding is used. The
problem I have is I don't know how to use any of the non DataHandler serializers or deserialisers
for this.
 
Thanks
Neil

-----Original Message-----
From: luciano.fiandesio@ecb.int [mailto:luciano.fiandesio@ecb.int]
Sent: 26 February 2004 15:09
To: axis-user@ws.apache.org
Subject: RE: Zip files as attachments



Neil, 
which datatype are you planning to use to transfer the zip files? 
String or array of bytes? 

Luciano 

-----Original Message----- 
From: Neil Blue [ mailto:Neil.Blue@denovopharma.com] 
Sent: Thursday 26 February 2004 16:06 
To: axis-user@ws.apache.org 
Subject: Zip files as attachments 


Hello, 

I am trying to use attachments with axis 1.1. I have run the echo example. Now I would like
to send an zip file as an attachment without using the java specific DataHandler but I seem
unable to find any documentation on using the handlers. Has anyone else done this or could
anyone shed some light on this please.

Cheers 
Neil 

 

Any e-mail message from the European Central Bank (ECB) is sent in good faith but shall neither
be binding nor construed as constituting a commitment by the ECB except where provided for
in a written agreement.
This e-mail is intended only for the use of the recipient(s) named above. Any unauthorised
disclosure, use or dissemination, either in whole or in part, is prohibited.
If you have received this e-mail in error, please notify the sender immediately via e-mail
and delete this e-mail from your system.



Mime
View raw message