summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--java/sca/modules/implementation-widget-runtime/src/main/java/org/apache/tuscany/sca/implementation/widget/provider/WidgetImplementationInvoker.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/java/sca/modules/implementation-widget-runtime/src/main/java/org/apache/tuscany/sca/implementation/widget/provider/WidgetImplementationInvoker.java b/java/sca/modules/implementation-widget-runtime/src/main/java/org/apache/tuscany/sca/implementation/widget/provider/WidgetImplementationInvoker.java
index 81454162f7..18bf692401 100644
--- a/java/sca/modules/implementation-widget-runtime/src/main/java/org/apache/tuscany/sca/implementation/widget/provider/WidgetImplementationInvoker.java
+++ b/java/sca/modules/implementation-widget-runtime/src/main/java/org/apache/tuscany/sca/implementation/widget/provider/WidgetImplementationInvoker.java
@@ -222,14 +222,11 @@ class WidgetImplementationInvoker implements Invoker {
if (binding instanceof OptimizableBinding) {
Binding targetBinding = ((OptimizableBinding)binding).getTargetBinding();
if (targetBinding != null) {
- targetURI = URI.create(targetBinding.getURI()).getPath();
+ targetURI = targetBinding.getURI();
}
}
if (targetURI == null) {
- targetURI = URI.create(binding.getURI()).getPath();
- if (!targetURI.startsWith("/")) {
- targetURI = "/" + targetURI;
- }
+ targetURI = binding.getURI();
}
if(proxyClient.equals("JSONRpcClient")) {