Re: Returning a PDF from a web service

2004-03-12 Thread tnelson
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

Re: Problems with complex type serialization using JMS transport

2004-03-10 Thread tnelson
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

Re: Problem with RPC Datahandler attachment over jms (1.2alpha)- fixed by adding MimeHeader to Message created in SimpleJMSWorker

2004-02-19 Thread tnelson
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

Re: Problem with EchoAttachment sample

2004-02-18 Thread tnelson
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

Problem with RPC Datahandler attachment over jms

2004-02-11 Thread tnelson
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