axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thilina Gunarathne" <cset...@gmail.com>
Subject Re: MTOM passing multiple files
Date Fri, 13 Jul 2007 05:07:26 GMT
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 <Anna.Simonenko@greenpoint.com> 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


Mime
View raw message