You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by pr...@apache.org on 2008/02/25 16:49:44 UTC
svn commit: r630889 -
/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/WSDL11ToAxisServiceBuilder.java
Author: pradine
Date: Mon Feb 25 07:49:42 2008
New Revision: 630889
URL: http://svn.apache.org/viewvc?rev=630889&view=rev
Log:
Improvements around the loading of the SOAPAction from WSDL.
Modified:
webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/WSDL11ToAxisServiceBuilder.java
Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/WSDL11ToAxisServiceBuilder.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/WSDL11ToAxisServiceBuilder.java?rev=630889&r1=630888&r2=630889&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/WSDL11ToAxisServiceBuilder.java (original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/WSDL11ToAxisServiceBuilder.java Mon Feb 25 07:49:42 2008
@@ -29,6 +29,7 @@
import org.apache.axis2.addressing.wsdl.WSDL11ActionHelper;
import org.apache.axis2.transport.http.HTTPConstants;
import org.apache.axis2.transport.http.util.RESTUtil;
+import org.apache.axis2.util.LoggingControl;
import org.apache.axis2.util.PolicyUtil;
import org.apache.axis2.util.XMLUtils;
import org.apache.axis2.wsdl.SOAPHeaderMessage;
@@ -2321,10 +2322,22 @@
}
String soapActionURI = soapOperation.getSoapActionURI();
- if (soapActionURI != null) {
+
+ if (LoggingControl.debugLoggingAllowed && log.isDebugEnabled())
+ log.debug("WSDL Binding Operation: " + axisBindingOperation.getName() +
+ ", SOAPAction: " + soapActionURI);
+
+ if (soapActionURI != null && !soapActionURI.equals("")) {
axisBindingOperation
.setProperty(WSDL2Constants.ATTR_WSOAP_ACTION, soapActionURI);
axisBindingOperation.getAxisOperation().setSoapAction(soapActionURI);
+ if (isServerSide) {
+ axisBindingOperation.getAxisOperation().setSoapAction(soapActionURI);
+ }
+ else {
+ axisBindingOperation.getAxisOperation().setOutputAction(soapActionURI);
+ }
+
axisService.mapActionToOperation(soapActionURI,
axisBindingOperation.getAxisOperation());
}
@@ -2339,11 +2352,17 @@
}
String soapAction = soapOperation.getSoapActionURI();
- if ((soapAction != null) && (!soapAction.equals(""))) {
+
+ if (LoggingControl.debugLoggingAllowed && log.isDebugEnabled())
+ log.debug("WSDL Binding Operation: " + axisBindingOperation.getName() +
+ ", SOAPAction: " + soapAction);
+
+ if (soapAction != null && !soapAction.equals("")) {
axisBindingOperation.setProperty(WSDL2Constants.ATTR_WSOAP_ACTION, soapAction);
if (isServerSide) {
axisBindingOperation.getAxisOperation().setSoapAction(soapAction);
- } else {
+ }
+ else {
axisBindingOperation.getAxisOperation().setOutputAction(soapAction);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org