You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by ng...@apache.org on 2006/12/14 06:40:35 UTC
svn commit: r486971 -
/webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/client/proxy/JAXWSProxyHandler.java
Author: ngallardo
Date: Wed Dec 13 21:40:34 2006
New Revision: 486971
URL: http://svn.apache.org/viewvc?view=rev&rev=486971
Log:
Copy request context properties from the BindingProvider to the
context, as the Dispatch does.
Modified:
webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/client/proxy/JAXWSProxyHandler.java
Modified: webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/client/proxy/JAXWSProxyHandler.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/client/proxy/JAXWSProxyHandler.java?view=diff&rev=486971&r1=486970&r2=486971
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/client/proxy/JAXWSProxyHandler.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/client/proxy/JAXWSProxyHandler.java Wed Dec 13 21:40:34 2006
@@ -165,11 +165,16 @@
}
}
- // Configure the SOAPAction.
+ // Only configure the SOAPAction if it hasn't already been
+ // set by the client.
String action = operationDesc.getAction();
- if (action != null) {
+ if (action != null && requestContext.get(BindingProvider.SOAPACTION_URI_PROPERTY) == null) {
getRequestContext().put(BindingProvider.SOAPACTION_URI_PROPERTY, action);
}
+
+ // Before we invoke, copy all of the properties from the client request
+ // context to the MessageContext
+ request.getProperties().putAll(getRequestContext());
requestIC.setRequestMessageContext(request);
InvocationController controller = new AxisInvocationController();
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org