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 am...@apache.org on 2008/08/07 06:14:58 UTC

svn commit: r683502 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/WSDL11ToAxisServiceBuilder.java

Author: amilas
Date: Wed Aug  6 21:14:57 2008
New Revision: 683502

URL: http://svn.apache.org/viewvc?rev=683502&view=rev
Log:
if the soap action is null, then the default addressing action shuld be used for disptching. 

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=683502&r1=683501&r2=683502&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 Wed Aug  6 21:14:57 2008
@@ -2328,6 +2328,10 @@
 
                 String soapActionURI = soapOperation.getSoapActionURI();
                 
+                if (this.isCodegen && ((soapActionURI == null) || (soapActionURI.equals("")))) {
+                    soapActionURI = axisBindingOperation.getAxisOperation().getInputAction();
+                }
+                
                 if (LoggingControl.debugLoggingAllowed && log.isDebugEnabled())
                     log.debug("WSDL Binding Operation: " + axisBindingOperation.getName() +
                             ", SOAPAction: " + soapActionURI);
@@ -2354,6 +2358,9 @@
                 }
 
                 String soapAction = soapOperation.getSoapActionURI();
+                if (this.isCodegen && ((soapAction == null) || (soapAction.equals("")))) {
+                    soapAction = axisBindingOperation.getAxisOperation().getInputAction();
+                }
                 
                 if (LoggingControl.debugLoggingAllowed && log.isDebugEnabled())
                     log.debug("WSDL Binding Operation: " + axisBindingOperation.getName() +