|
I think the whole question of "REST" is not the point here. Axis2's underlying data model is a SOAP Infoset. As a result, any type of data that runs thru the system has to be represented as a SOAP Infoset. That's not a big deal - essentially it means we need to create two extra Axiom nodes (a s:Envelope node and an s:Body node) and stick a child in there that contains whatever the real data is. Using our nice MTOM integration and the deferred pull architecture of Axiom, we can do that efficiently using OMSourceElement nodes as we've proven multiple times now. That's for incoming stuff - we take whatever that comes in and represent it within a SOAP Infoset. When we have an outgoing message, the inverse question is relevant - if the message is not going out as SOAP, then someone needs to take the real message payload (which is in the child node of the s:Body node) and only write the content of that. That's basically what MessageFormatters do. [So calling all of that "REST" is totally wrong and an abuse of what "REST" means. I think we need to refactor that code and get rid of any references to REST as this has nothing to do with REST. Yes I know the history and how it got called that but now its time to fix it.] Now to get back to your original point - I think the idea of having message formatters applied to faults too (which you proposed in a later mail) is the right answer. Faults are just messages too and its clearly an oversight that we didn't apply the design orthogonally there too. Time to fix it. Sanjiva. keith chapman wrote:
-- Sanjiva Weerawarana, Ph.D. Founder & Director; Lanka Software Foundation; http://www.opensource.lk/ Founder, Chairman & CEO; WSO2, Inc.; http://www.wso2.com/ Member; Apache Software Foundation; http://www.apache.org/ Visiting Lecturer; University of Moratuwa; http://www.cse.mrt.ac.lk/ Blog: http://sanjiva.weerawarana.org/--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] |
- [AXIS2] Should JSON messages be considered as REST? keith chapman
- Re: [AXIS2] Should JSON messages be considered as... keith chapman
- Re: [AXIS2] Should JSON messages be considere... Sanjiva Weerawarana
- Re: [AXIS2] Should JSON messages be consi... keith chapman
- Re: [AXIS2] Should JSON messages be c... Eran Chinthaka
- Re: [AXIS2] Should JSON messages... keith chapman
- Re: [AXIS2] Should JSON mess... Eran Chinthaka
- Re: [AXIS2] Should JSON messages be c... Sanjiva Weerawarana
- Re: [AXIS2] Should JSON messages... keith chapman
- Re: [AXIS2] Should JSON mess... Thilina Gunarathne
- Re: [AXIS2] Should JSON ... Sanjiva Weerawarana
- Re: [AXIS2] Should JSON ... Thilina Gunarathne
- Re: [AXIS2] Should JSON messages be considered as... David Illsley
- Re: [AXIS2] Should JSON messages be considered as... Eran Chinthaka
- Re: [AXIS2] Should JSON messages be considere... keith chapman
- RE: [AXIS2] Should JSON messages be consi... Martin Gainty
- Re: [AXIS2] Should JSON messages be c... keith chapman
- RE: [AXIS2] Should JSON messages... Martin Gainty
