From ed6f3914323ff4b67762719dedb906d4b8ab5fcc Mon Sep 17 00:00:00 2001 From: rfeng Date: Fri, 21 May 2010 21:42:33 +0000 Subject: Remove the workaround git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@947188 13f79535-47bb-0310-9956-ffa450edef68 --- .../binding/ws/axis2/provider/Axis2ReferenceBindingInvoker.java | 9 --------- 1 file changed, 9 deletions(-) (limited to 'sca-java-2.x/trunk/modules/binding-ws-runtime-axis2/src/main') diff --git a/sca-java-2.x/trunk/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/provider/Axis2ReferenceBindingInvoker.java b/sca-java-2.x/trunk/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/provider/Axis2ReferenceBindingInvoker.java index 5b7cc5b3b0..712eba0cea 100644 --- a/sca-java-2.x/trunk/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/provider/Axis2ReferenceBindingInvoker.java +++ b/sca-java-2.x/trunk/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/provider/Axis2ReferenceBindingInvoker.java @@ -40,7 +40,6 @@ import org.apache.axis2.client.OperationClient; import org.apache.axis2.client.Options; import org.apache.axis2.client.ServiceClient; import org.apache.axis2.context.MessageContext; -import org.apache.tuscany.sca.assembly.ComponentService; import org.apache.tuscany.sca.assembly.Endpoint; import org.apache.tuscany.sca.binding.ws.WebServiceBinding; import org.apache.tuscany.sca.interfacedef.util.FaultException; @@ -132,14 +131,6 @@ public class Axis2ReferenceBindingInvoker implements Invoker { operationClient.setOptions(options); Endpoint callbackEndpoint = msg.getFrom().getCallbackEndpoint(); - - // [rfeng] This is a hack to populate the callback endpoint - if (callbackEndpoint == null) { - ComponentService callbackService = msg.getFrom().getReference().getCallbackService(); - if (callbackService != null && !callbackService.getEndpoints().isEmpty()) { - callbackEndpoint = callbackService.getEndpoints().get(0); - } - } // add WS-Addressing header //FIXME: is there any way to use the Axis2 addressing support for this? -- cgit v1.2.3