You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Simon Laws <si...@googlemail.com> on 2007/10/01 14:48:23 UTC

Re: TUSCANY-1337 and Support for SDO->JSON Databinding

On 9/29/07, Jean-Sebastien Delfino <js...@apache.org> wrote:
>
> Jean-Sebastien Delfino wrote:
> > Raymond Feng wrote:
> >> Hi,
> >>
> >> I looked into the binding-jsonrpc. It seems that the jsonrpc service
> >> binding currently uses the JSONRPCBridge to dispatch the inbound call
> >> to the SCA component. Is there a way to hook up our databinding-json
> >> with this bridge so that we can better handle types (SDO, JAXB, ...)
> >> other than javabeans?
> >>
> >> If not, would it make sense that we do the following to replace the
> >> JSONRPCBridge?
> >> 1) In the jsonrpc binding, we set the databinding to "json"
> >> 2) Dispatch to the SCA component using RuntimeWire.invoke(...)
> >> This way, the databinding-json transformers can be engaged to perform
> >> the json <--> * transformations.
> >>
> >> Thanks,
> >> Raymond
> >
> > This will also help with other types than SDO right?
> >
>
> I'm going to respond to myself as I must be blind, and the answer to my
> question was already in your post.
>
> +1 for doing that.
>
> It'll be nice to have itests testing round tripping between JaxB or SDO
> or XMLBeans and JSON...
>
> >>
> >> ----- Original Message ----- From: "Luciano Resende"
> >> <lu...@gmail.com>
> >> To: "tuscany-dev" <tu...@ws.apache.org>
> >> Sent: Friday, September 28, 2007 2:23 PM
> >> Subject: TUSCANY-1337 and Support for SDO->JSON Databinding
> >>
> >>
> >>> I have a service that produces SDO and is exposed using the JSONRPC
> >>> binding. It looks like I have hit the same issue as the one described
> >>> in TUSCANY-1337 [1], and the SDO->JSON transformation is not happening
> >>> properly and the client side is receiving the following error :
> >>>
> >>> {"error":{"code":593,"msg":"bean
> >>> org.apache.tuscany.sdo.impl.DynamicDataObjectImpl circular reference"}
> >>>
> >>> Thoughts ? Some hints on where i could start playing around to try to
> >>> fix this issue on the databinding "area" ?
> >>>
> >>>
> >>> [1] http://issues.apache.org/jira/browse/TUSCANY-1337
> >>>
> >>> --
> >>> Luciano Resende
> >>> Apache Tuscany Committer
> >>> http://people.apache.org/~lresende
> >>> http://lresende.blogspot.com/
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> >>> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
> >>>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> >> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
> >>
> >>
> >
> >
>
>
> --
> Jean-Sebastien
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>
> On Sebastien's point we can extend the databindings tests to include
xmlbeans and json tests and then include these tests in the interop test
chain to get the full round trip. I've added
https://issues.apache.org/jira/browse/TUSCANY-1824 for this.

Simon