summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules/binding-ws
diff options
context:
space:
mode:
Diffstat (limited to 'sca-java-2.x/trunk/modules/binding-ws')
-rw-r--r--sca-java-2.x/trunk/modules/binding-ws/src/main/java/org/apache/tuscany/sca/binding/ws/impl/WebServiceBindingImpl.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/sca-java-2.x/trunk/modules/binding-ws/src/main/java/org/apache/tuscany/sca/binding/ws/impl/WebServiceBindingImpl.java b/sca-java-2.x/trunk/modules/binding-ws/src/main/java/org/apache/tuscany/sca/binding/ws/impl/WebServiceBindingImpl.java
index efb3b0fb54..550235dbab 100644
--- a/sca-java-2.x/trunk/modules/binding-ws/src/main/java/org/apache/tuscany/sca/binding/ws/impl/WebServiceBindingImpl.java
+++ b/sca-java-2.x/trunk/modules/binding-ws/src/main/java/org/apache/tuscany/sca/binding/ws/impl/WebServiceBindingImpl.java
@@ -116,6 +116,14 @@ class WebServiceBindingImpl implements WebServiceBinding, DefaultingPolicySubjec
public void setURI(String uri) {
this.uri = uri;
+
+ // when the binding is cloned for callback puposes
+ // when the user has not configured a callback binding
+ // we want all the URIs to be null so that the builder
+ // will calculate the correct callback URI
+ if (uri == null){
+ setUserSpecifiedURI(null);
+ }
}
public void setUserSpecifiedURI(String uri) {