Anthony, check that activation and mail jars are both in the classpath for java2wsdl. It needs these two libraries for attachment support.

HTH,
Rodrigo

Anthony Perritano wrote:
Hi,
I have a method in a java bean that i want to turn into a webservice that returns a soap attachment of file to the client. From various articles i have read that your method must return a DataHandler object.

my method looks like:

public DataHandler getXYZ()

when i run java2wsdl on the javabean, i get xsd:anytype as the return type in my wsdl and no attachment information. do i have insert the soap attachment information in my wsdl manually? is there a way java2wsdl can generate it?

thx for your help
Anthony


------------------------------------------------------------------------

No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.392 / Virus Database: 268.5.6/339 - Release Date: 14/05/2006

--
-------------------------------------------------------------------
GRIDSYSTEMS                    Rodrigo Ruiz Aguayo
Parc Bit - Son Espanyol
07120 Palma de Mallorca        mailto:[EMAIL PROTECTED]
Baleares - EspaƱa              Tel:+34-971435085 Fax:+34-971435082
http://www.gridsystems.com
-------------------------------------------------------------------


--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.392 / Virus Database: 268.5.6/339 - Release Date: 14/05/2006

Reply via email to