axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chinmoy Chakraborty <cch...@gmail.com>
Subject Re: Error while uploading File using DataHandler
Date Thu, 25 Jun 2009 05:49:09 GMT
You can try setting the content-type in the service class and getting the
same in the client side using SwA. Enabling MTOM and SwA means MTOM is
getting preference over SwA.

Chinmoy

On Wed, Jun 24, 2009 at 11:18 PM, Moritz M├Ądler <mail@moritz-maedler.de>wrote:

> Ok, i found the bug: just forgot to set one argument - damn me.
>
> I've got another question: As you can see, i request the filetye from the
> DataHandler.getName() using String.substring(String.lastindexof(".")).
> When i test the POJO-Class locally, i get the correct extension. When i use
> it as the mentioned serviceclass i get a "ByteArrayDataSource"
> as file-extension, which is completely useless.
>
> How do i extract the correct file-extension out of my DataHandler?
>
> Thanks alot!
>
>

Mime
View raw message