Deepal, the REST "deserialization" requires one to know the binding to know where to pull stuff from (query params, payload etc.). See WSDL 2.0 HTTP binding to understand how that works.

So that has to happen post-dispatch.

Sanjiva.

Deepal jayasinghe wrote:
It is possible that a single POJO (for example) can offer both a
RESTful interface and a normal SOAP interface. In fact, that can
happen by having both JAX-RS and JAX-WS annotations on the same pojo.
Well even without having those annotation we can expose a POJO as a SOAP
and REST. I mean REST and SOAP just the wire format , internally what
happen is everything get converted into SOAP and at the end POJO class
receive a SOAP message.
We currently can't handle that because the message receiver is
associated with the AxisOperation and not BindingOperation. IMO that
was a mistake ..
Well no , because BindingOperation introduced after the AxisOperation :) .
So what we talked about was to introduce the ability to set the MR on
the binding operation but to keep the ability to set it on the
operation itself. That allows us to be totally backwards compatible
but it solve the problem for wanting both a RESTful and a WS-* binding
for the same operation for example.
I can not still understand why we need new MR , because at the core what
we use is SOAP not anything else , and at the end I mean at the
Transport sender level we serialize that to REST or SOAP. Which is done
by Message formatters.

-Deepal
Thoughts?

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]

Reply via email to