axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thilina Gunarathne" <>
Subject Re: [Axis2] REST webservice that returns pdf/word document
Date Tue, 05 Aug 2008 07:49:21 GMT
Theoretically Axis2 MTOM implementation has support for POX+MTOM due to it's
tight binding to the XML object model. But I have never tested it nor scene
it used.  If it works, the message will go inside a MIME package same as in
SOAP+MTOM but without the SOAP envelope & body elements.

But I would recomend you to use full MTOM+SOAP if that is a possibility..
With file caching enabled, Axis2 can handle attachements of virtually any
size (memory is not a limitation).


On Mon, Aug 4, 2008 at 4:34 PM, Chris Richmond <>wrote:

>  If you are dealing with more binary than you'd like to load into memory
> at once, then I would return a url to a (temporary or otherwise depending on
> you security concerns) file on the server for standard http or ftp download
> and it is easy for a ws client implemented on any stack to get that.
> That's what I have done in the past.   Sending files from within a ws
> without using attachments has always been a bit of a workaround from what I
> have found. If the files you are dealing with CAN be read into memory, then
> simply serialize to the bytes and send that in the proper field, you could
> send another response parameter within the complex type that indicates files
> types, names, etc if you wanted.
> Chris
>  ------------------------------
> *From:* Pantvaidya, Vishwajit []
> *Sent:* Monday, August 04, 2008 10:17 AM
> *To:*
> *Subject:* [Axis2] REST webservice that returns pdf/word document
> My Axis2 1.3 based webservice is working fine using MTOM attachments and
> everything else. The default REST (POX) support also works well for the
> existing webservices. Now I need to add a REST service that returns a
> pdf/word document. The Axis REST doc says that "the GET based REST Web
> services support only simple types as arguments and it should adhere to the IRI
> style<>",
> which means I cannot have xsd:base64Binary types in my wsdl. Is there anyway
> I can add this webservice to return the word/pdf doc?
> - Vish.

Thilina Gunarathne -

View raw message