axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aj...@apache.org
Subject svn commit: r391999 - /webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/emitter/AxisServiceBasedMultiLanguageEmitter.java
Date Thu, 06 Apr 2006 15:39:27 GMT
Author: ajith
Date: Thu Apr  6 08:39:22 2006
New Revision: 391999

URL: http://svn.apache.org/viewcvs?rev=391999&view=rev
Log:
doing a minor improvement

Modified:
    webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/emitter/AxisServiceBasedMultiLanguageEmitter.java

Modified: webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/emitter/AxisServiceBasedMultiLanguageEmitter.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/emitter/AxisServiceBasedMultiLanguageEmitter.java?rev=391999&r1=391998&r2=391999&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/emitter/AxisServiceBasedMultiLanguageEmitter.java
(original)
+++ webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/emitter/AxisServiceBasedMultiLanguageEmitter.java
Thu Apr  6 08:39:22 2006
@@ -1116,28 +1116,14 @@
         writer.parse(model, resolver);
     }
 
+    /**
+     * Adds the soap action
+     * @param doc
+     * @param rootElement
+     * @param axisOperation
+     */
     private void addSOAPAction(Document doc, Element rootElement, AxisOperation axisOperation)
{
-        List extensibilityElements = axisOperation.getWsdlExtElements();
-        boolean actionAdded = false;
-
-        if ((extensibilityElements != null) && !extensibilityElements.isEmpty())
{
-            Iterator extIterator = extensibilityElements.iterator();
-
-            while (extIterator.hasNext()) {
-                AxisExtensiblityElementWrapper axisExtensibilityElement = (AxisExtensiblityElementWrapper)
extIterator.next();
-                WSDLExtensibilityElement element = axisExtensibilityElement.getExtensibilityElement();
-
-                if (element != null && ExtensionConstants.SOAP_11_OPERATION.equals(element.getType())
-                        || ExtensionConstants.SOAP_12_OPERATION.equals(element.getType()))
{
-                    addAttribute(doc, "soapaction", ((SOAPOperation) element).getSoapAction(),
rootElement);
-                    actionAdded = true;
-                }
-            }
-        }
-
-        if (!actionAdded) {
-            addAttribute(doc, "soapaction", "", rootElement);
-        }
+           addAttribute(doc, "soapaction", axisOperation.getSoapAction(), rootElement);
     }
 
     private void addHeaderOperations(List soapHeaderParameterQNameList, AxisOperation axisOperation,



Mime
View raw message