diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2010-03-02 22:17:44 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2010-03-02 22:17:44 +0000 |
commit | 18d6de80525d2a4ca920844f1d45ba9da79377c8 (patch) | |
tree | de27a40961b809a2babac4dd266fb7c8b6e89636 /sca-java-2.x/trunk/modules/binding-jsonrpc-js-dojo/src/main/java | |
parent | ea8efc9201e9e2c349b44598d49492d5f2a9c8cb (diff) |
Remove any leading slash from the service URI
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@918222 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/binding-jsonrpc-js-dojo/src/main/java')
-rw-r--r-- | sca-java-2.x/trunk/modules/binding-jsonrpc-js-dojo/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/js/dojo/JSONRPCBindingJavascriptProxyFactoryImpl.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sca-java-2.x/trunk/modules/binding-jsonrpc-js-dojo/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/js/dojo/JSONRPCBindingJavascriptProxyFactoryImpl.java b/sca-java-2.x/trunk/modules/binding-jsonrpc-js-dojo/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/js/dojo/JSONRPCBindingJavascriptProxyFactoryImpl.java index 0388c8bd77..5c20fb3c4f 100644 --- a/sca-java-2.x/trunk/modules/binding-jsonrpc-js-dojo/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/js/dojo/JSONRPCBindingJavascriptProxyFactoryImpl.java +++ b/sca-java-2.x/trunk/modules/binding-jsonrpc-js-dojo/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/js/dojo/JSONRPCBindingJavascriptProxyFactoryImpl.java @@ -70,6 +70,9 @@ public class JSONRPCBindingJavascriptProxyFactoryImpl implements JavascriptProxy URI targetURI = URI.create(binding.getURI()); String targetPath = targetURI.getPath(); + if (targetPath.startsWith("/")) { + targetPath = targetPath.substring(1); + } return "dojo.rpc.JsonService(\"" + targetPath + "?smd\")"; } |