axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Subra A Narayanan" <>
Subject Re: [Axis2/C] Attachments in Axis2/C
Date Fri, 27 Jul 2007 02:22:31 GMT
Hello Samisa,

Thanks for the quick reply. Your answers are helping me understand whats
doable and whats not.

One of the requirements for the project that I am working on is that we have
to let the clients make REST calls to our web service.

Having said that, one more clarification. Pls tell me if this is
theoretically possible to achieve in Axis2/C. And I apologize in advance if
what I am saying doesn't make much sense:

--> I will have a Axis2/C web service with REST enabled.
--> A non Axis2/C client would make a REST (HTTP POST) call to this web
service with a MIME attachment (along with some other parameters that tell
the WS what to do with the attachment).
--> Axis2/C framework on the server side delivers this request to the server
code as a SOAP message.
--> The code retrieves the attachment and the other parameters, processes
the request and returns a response.

Please let me know if what I said makes sense and if its doable.

Thanks a lot for your help!!


On 7/26/07, Samisa Abeysinghe <> wrote:
> Subra A Narayanan wrote:
> > Hello folks,
> >
> > Another newbie question:
> >
> > From what I understand, when a web service is called in a RESTful way,
> > Axis2/C framework intercepts and automatically puts the parameters in
> > a SOAP envelop before delivering it to the web service code. This
> > means that a as far as the WS code goes, all client calls are SOAP
> calls.
> >
> > Now MTOM is specifically for SOAP. So how can a Axis2/C web service
> > which is called my lets say a .Net client in a RESTful way, make use
> > of MTOM since as far as the client goes, there is no SOAP involved.
> >
> If the client wants to do MTOM with server, then the client got to use
> SOAP, because MTOM is for SOAP anyway.
> You cannot do MTOM with REST.
> > How do we handle attachments in such cases on the client side and
> > server side? Any simple server side example would be much appreciated.
> I am not sure how REST deals with attachments. Axis2/C currently only
> supports the MTOM way of attachments. Hence there is no way as of now
> that you can make a REST client access attachments with an Axis2/C
> service doing MTOM.
> Samisa...
> >
> > Subra
> --
> Samisa Abeysinghe : (WSO2 Oxygen Tank - Web Services
> Developers' Portal)
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

View raw message