Hi, Simon.

We have a JSON databinding but it's not in the main build. I thought that we moved it to "contrib" but I cannot find it in the source tree any more. Sebastien, do you know where they are?

Thanks,
Raymond

----- Original Message ----- From: "Simon Laws" <[EMAIL PROTECTED]>
To: "tuscany-dev" <[email protected]>
Sent: Friday, June 01, 2007 3:41 AM
Subject: JSONRPC binding and SDO?


I have a service which returns an SDO and the JSONRPC binding complains
about it...

{"id":1,"error":{"code":593,"msg":"bean
org.apache.tuscany.sca.samples.aggregator.types.impl.AlertsTypeImpl element
0 be
an org.apache.tuscany.sca.samples.aggregator.types.impl.AlertTypeImpl bean
org.apache.tuscany.sdo.impl.ClassImpl element
0 bean org.apache.tuscany.sdo.impl.AttributeImpl bean java.lang.Class bean
java.lang.reflect.Method circular reference"
}}

Now, I have worked round this for now by building my own, non SDO, POJOs to
represent the data I want to return.

It looks like we need a databinding in here to convert from the SDO/EMF
classes to something else that the JSON conversion can handle. But what
whould we convert to in this case? Is there are generic object representatin
that the JSON conversion is happy with. Either that or fix SDO so that the
JSON conversion works but we would have to ensure that and SDO meta data
doesn't get pushed out into JSON.

Had anyone tried this before?

Regards

Simon



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to