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"
<[EMAIL PROTECTED]>
To: "tuscany-dev" <[email protected]>
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Jean-Sebastien
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]