diff options
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) { |