You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Eduardo Elgueta <ee...@navix.cl> on 2005/09/02 16:17:28 UTC
RE: Client Side: Enable Attachment Support SOLVED
I was missing MAIL.JAR in the classpath.
Regards.
-----Original Message-----
From: Eduardo Elgueta [mailto:eelgueta@navix.cl]
Sent: Jueves, 01 de Septiembre de 2005 17:50
To: axis-user@ws.apache.org
Subject: Client Side: Enable Attachment Support
Hi All,
I'm writing a SOAP WS client in which I must use attachments. As I'm using a
logger, at startup I see this line:
- org.apache.axis.i18n.resource::handleGetObject(attachEnabled)
- Attachment support is enabled? False
This is consistent with the problem I'm having -- I get a
NullPointerException on this line:
AttachmentPart ap = soapMsg.createAttachmentPart();
(BTW, I know soapMsg is not null, because I test it before like this:
config.getLog().debug("soapMsg: " + soapMsg); and I get "- soapMsg:
org.apache.axis.Message@3ee284")
What do I have to do to enable attachment support?
Thank you very much in advance.
Ed.
Eduardo Elgueta
Senior Consultant
Navix
correo/email: eelgueta@navix.cl
teléfono/phone: +56 (2) 204-5823
celular/mobile: +56 (9) 821-0033
web: www.navix.cl
Av. Pedro de Valdivia 555 Of. 216
Providencia 7500913
Santiago, Chile