Hi, You are right, DataHandler is not Serializable.
When we change to use pure Java class it worked. However when we subclass DataHandler to make it serializable, then use this new DataHandler, soap can not handle it. Is there any quick way to make the attachment serializable to work with EJBs? Thank you. -- wei -----Original Message----- From: Scott Nichol [mailto:[EMAIL PROTECTED] Sent: Saturday, June 07, 2003 9:33 AM To: [EMAIL PROTECTED] Subject: Re: Will Soap Attachment DataHandler work with J2EE EJBs? Based on the error you get, it is apparent that the DataHandler is not Java serializable. The Apache SOAP serialization is not done with Java serialization, of course, but EJBs use Java serialization. On 6 Jun 2003 at 16:14, Wei Li wrote: > Hi, > > Any one had successfully used Apache soap attachment (passing DataHandler) to call a > method in a J2EE EJB? > > We are failing to deserialize the DataHandler at the J2EE server side which > generated java.io.NotSerializableException. > Although the client side has successfully serialized the DataHandler, and generated > correct soap xml and MIME attachment. > > Thanks for any info. > > -- wei > Scott Nichol Do not reply directly to this e-mail address, as it is filtered to only receive e-mail from specific mailing lists.