Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 32022 invoked from network); 25 Jun 2009 05:49:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Jun 2009 05:49:30 -0000 Received: (qmail 53020 invoked by uid 500); 25 Jun 2009 05:49:39 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 52937 invoked by uid 500); 25 Jun 2009 05:49:39 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 52928 invoked by uid 99); 25 Jun 2009 05:49:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Jun 2009 05:49:38 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of cchinu@gmail.com designates 74.125.92.148 as permitted sender) Received: from [74.125.92.148] (HELO qw-out-1920.google.com) (74.125.92.148) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Jun 2009 05:49:30 +0000 Received: by qw-out-1920.google.com with SMTP id 4so509468qwk.28 for ; Wed, 24 Jun 2009 22:49:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=MxFo7BQxzwHytC7RO7l90tM0hdPmVWxSgvbWWpWEAC4=; b=KA0dPQz6KGhZzKzyQNvuWxxEm7mXIHZGp50RN/dV1INZAygrDFdbIjZRs+qnpQpGhI 2gef/Ui1DXfEgkpyxFzktiZV3/ExO+B0ZggdMbxBl+Bs0wZs26Ij4egMgfw6xs2Z5tJv MQbqfvHCs7CkKMn/jJ/O4WtsI2AuvOFy8OE70= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=rETLYeFEoeJoG7+RQpeCQ3ihZbebt1swNPIZuvswLFti+RtUMwP/yWoYxpcHy6ou/T 9x4O8t76hWufGzdClPMHsulvQDcPUvr7ZU0Sv7CP6QqpUJagwA/dsPFDqwXuGh8n6Qew m30HQnEc3ilAUDY9S8no5WXdiko5J/9SaXaZc= MIME-Version: 1.0 Received: by 10.220.72.194 with SMTP id n2mr2061075vcj.52.1245908949878; Wed, 24 Jun 2009 22:49:09 -0700 (PDT) In-Reply-To: <1BA34CE9-FB77-4E6D-AACB-54BFF6985005@moritz-maedler.de> References: <1BA34CE9-FB77-4E6D-AACB-54BFF6985005@moritz-maedler.de> Date: Thu, 25 Jun 2009 11:19:09 +0530 Message-ID: Subject: Re: Error while uploading File using DataHandler From: Chinmoy Chakraborty To: axis-user@ws.apache.org Content-Type: multipart/alternative; boundary=0016364edd44614a3d046d25c8cf X-Virus-Checked: Checked by ClamAV on apache.org --0016364edd44614a3d046d25c8cf Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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=E4dler w= rote: > 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 u= se > 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! > > --0016364edd44614a3d046d25c8cf Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
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=A0preference over SwA.
=A0
Chinmoy

On Wed, Jun 24, 2009 at 11:18 PM, Moritz M=E4dle= r <mail@mori= tz-maedler.de> wrote:
Ok, i found the bug: just forgot= to set one argument - damn me.

I've got another question: As yo= u can see, i request the filetye from the DataHandler.getName() using Strin= g.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 t= he correct file-extension out of my DataHandler?

Thanks alot!


--0016364edd44614a3d046d25c8cf--