Thilina Gunarathne wrote:
No I think your statement is too strong - yes, we support different XML Infoset serializations too via the MessageBuilder/Formatter architecture but its a lot more than that because of how we ended up doing non-SOAP stuff. Not only can we serialize the SOAP Infoset (as an XML Infoset) into a different XML serialization, but we can also write message formatters and builders that use the integrated MTOM stuff and OMSourcedElement stuff (which you did IIRC!) to keep ANY kind of content. In fact those can even fail if you ask for the payload as XML (or may not)- so if you take a JSON message and serialize as XML then Bablefish or whatever will kick in. However if you ask to serialize as JSON directly then NO transforms will occur and the JSON characters should go in and out seamlessly. See above. Yes - and there's nothing at all wrong if the JSON formatter just printed the payload out in JSON either! What the formatter decides to serialize is a decision up to that .. and the real contract is between the formatter and the builder when they are coupled in a request/response MEP. That is, a message coming in via JSON should probably go out via JSON, unless some type of content negotiation has kicked in to ask for a different response format. (BTW did you ever do the content negotiation stuff we discussed? Or was that with Keith .. gettin' old. Maybe we should get content negotiation working right too in the context of this cleanup. Its not hard.)
I think the JSON builder should build the payload only and the formatter should serialize the payload only. Others are welcome to write other JSON formatters that print the SOAP stuff too but IMO that's not the common case.
OK good - we're all in agreement that not doing the faults was a mistake! Sanjiva. -- 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
- Re: [AXIS2] Should JSON messages be consi... Eran Chinthaka
- Re: [AXIS2] Should JSON messages be c... Sanjiva Weerawarana
- Re: [AXIS2] Should JSON messages... Eran Chinthaka
