diff options
author | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2009-10-22 02:25:36 +0000 |
---|---|---|
committer | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2009-10-22 02:25:36 +0000 |
commit | 6b86cb355cb6e30fb32a768446a3e56b9460e301 (patch) | |
tree | 46c20109cb5137fe3ac4d6a3853afb25939af275 /java/sca/modules/binding-jsonrpc-runtime | |
parent | 49478b72eb1ac8aa533ec89c19688e46ab5ed9e5 (diff) |
Stop setting JSON databinding in the interface contract now that we use jabsorb client for remote invocation and that is taking care of databinding and returning expected java beans
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@828283 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules/binding-jsonrpc-runtime')
-rw-r--r-- | java/sca/modules/binding-jsonrpc-runtime/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/provider/JSONRPCReferenceBindingProvider.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/java/sca/modules/binding-jsonrpc-runtime/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/provider/JSONRPCReferenceBindingProvider.java b/java/sca/modules/binding-jsonrpc-runtime/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/provider/JSONRPCReferenceBindingProvider.java index cda6153aa8..e5d24f1e1c 100644 --- a/java/sca/modules/binding-jsonrpc-runtime/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/provider/JSONRPCReferenceBindingProvider.java +++ b/java/sca/modules/binding-jsonrpc-runtime/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/provider/JSONRPCReferenceBindingProvider.java @@ -58,6 +58,7 @@ public class JSONRPCReferenceBindingProvider implements ReferenceBindingProvider this.reference = (RuntimeComponentReference) endpointReference.getReference(); //clone the service contract to avoid databinding issues + /* try { this.referenceContract = (InterfaceContract)reference.getInterfaceContract().clone(); } catch(CloneNotSupportedException e) { @@ -65,6 +66,7 @@ public class JSONRPCReferenceBindingProvider implements ReferenceBindingProvider } JSONRPCDatabindingHelper.setDataBinding(referenceContract.getInterface()); + */ // Create an HTTP client HttpParams defaultParameters = new BasicHttpParams(); @@ -82,7 +84,8 @@ public class JSONRPCReferenceBindingProvider implements ReferenceBindingProvider } public InterfaceContract getBindingInterfaceContract() { - return referenceContract; + //return referenceContract; + return reference.getInterfaceContract(); } public Invoker createInvoker(Operation operation) { |