Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 99341 invoked from network); 13 Jul 2007 05:08:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Jul 2007 05:08:02 -0000 Received: (qmail 1055 invoked by uid 500); 13 Jul 2007 05:07:57 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 690 invoked by uid 500); 13 Jul 2007 05:07:56 -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 676 invoked by uid 99); 13 Jul 2007 05:07:56 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jul 2007 22:07:56 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of csethil@gmail.com designates 209.85.146.182 as permitted sender) Received: from [209.85.146.182] (HELO wa-out-1112.google.com) (209.85.146.182) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jul 2007 22:07:51 -0700 Received: by wa-out-1112.google.com with SMTP id k22so487992waf for ; Thu, 12 Jul 2007 22:07:31 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=gLTy+kosSD97NxyDSOX8ZDCqA2ooBmKDJefxwfXMqBlyW51Dz1okXcTSCwMY5tvv8uMfTGYwtmKrrEufxw1ubqDhoPO6ifIWeTx+nx56KpEn+UAsmkYpZcRdbxEKu6+wmy4PSvH8S5fVKmcngYLIPYb+x50PEf9zCuGc8avb4FI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ceeke0FAdqBNm+AEK2Z424vcbIG/rRpJmyBJRDFfsvqdzWhxknwBZBy5p2qiCiMtxGjho1AacZtDuhYX83WWncwqO6UdJyExQ5GXdK7DM0RkAMMWmS9FFCUA+4ff3iFnFXtu1wJor6/C2xERZee4wbpre8JEBZz36KqWnJDU72c= Received: by 10.114.209.1 with SMTP id h1mr1293523wag.1184303251112; Thu, 12 Jul 2007 22:07:31 -0700 (PDT) Received: by 10.115.93.8 with HTTP; Thu, 12 Jul 2007 22:07:26 -0700 (PDT) Message-ID: Date: Fri, 13 Jul 2007 10:37:26 +0530 From: "Thilina Gunarathne" To: axis-user@ws.apache.org Subject: Re: MTOM passing multiple files In-Reply-To: <5BBC860C204CC94093085055E94EAC2D02E82DCE@exnovmbs001.gpmort.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <5BBC860C204CC94093085055E94EAC2D02E82DCE@exnovmbs001.gpmort.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi, >. In other cases (without using MTOM > attachements), I could always create a simple POJO class and generate > wsdl. You can use a pojo approach with MTOM too... > If I create a POJO defined a s service with a method something like this > and enable MTOM : > > Public Status getFilesScanStatus(File[] fileArray{ > ...... > } Please use javax.activation.DataHandler as the argument... Public Status getFilesScanStatus(javax.activation.DataHandler[] fileArray) > Will javatowsdl generate wsdl with appropriate types or I need to > always start with wsdl first when dealing with MTOM. Java2wsdl will generate the correct WSDL, when having DataHandler's as arguments.. thanks, Thilina > > Thanks!! > Anna > > > -----Original Message----- > From: Thilina Gunarathne [mailto:csethil@gmail.com] > Sent: Wednesday, July 11, 2007 10:20 AM > To: axis-user@ws.apache.org > Subject: Re: MTOM passing multiple files > > Hi, > Yes... It's possible.. You need to have a array of xs:base64Binary type > elements.. > > thanks, > Thilina > > On 7/11/07, Simonenko, Anna wrote: > > > > > > > > Hello: > > > > I need to pass collection/array of files to our axis2 web service > > using MTOM. Can I do that? If yes, how do I need configure WSDL? > > > > Thanks!! > > > > > > > > Anna Simonenko > > > -- > Thilina Gunarathne - http://www.wso2.com - > http://thilinag.blogspot.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org > For additional commands, e-mail: axis-user-help@ws.apache.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org > For additional commands, e-mail: axis-user-help@ws.apache.org > > -- Thilina Gunarathne - http://www.wso2.com - http://thilinag.blogspot.com --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org