I was able to do this:
put 'application/pdfpdf'
into a .mime.types file in my home directory...
Create a javax.activation.DataHandler
new DataHandler(new FileDataSource("myfile.pdf"))
and pass it as a method parameter (or return type)
then the resulting soap message has the pdf as an attachme
Manuel,
Are you sure that your server is seeing your deploy.wsdd file?
I can get a similar example to work (with Axis1.2alpha).
I only get a 'No Serializer Found' error if I take away
the beanMapping element in the wsdd file.
Which axis version are you using?
Tom Nelson
RABA Technologies
On Mar 10
By making this change starting at line 124 in SimpleJMSWorker.java:
// take this out:
//Message msg = new Message(in);
// put this in:
MimeHeaders header = new MimeHeaders();
header.addHeader("Content-Type", "multipart/related");
Message msg = new Mess
Are you sure that activation.jar and mail.jar are in
your classpath? They are from the Java Activation Framework.
Tom Nelson
On Feb 18 2004, ROBERT SJODIN wrote:
When running the samples.attachments.EchoAttachment code, a
NullPointerException is thrown in
org.apache.axis.Message.createAttachmen
Greetings,
I have a demo application that attempts to send
various types of attachments as SOAP messages over JMS using jaxrpc
Service methods include:
sendString(String str)
sendBytes(byte[] bytes)
sendDataHandler(DataHander dh)
Sending a String or a byte array works fine, but sending
a