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 aj...@apache.org on 2006/01/27 12:25:59 UTC

svn commit: r372817 - in /webservices/axis2/trunk/java/modules/codegen: src/org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl test/org/apache/axis2/schema/compile/SimpleAnyTypeTest.java

Author: ajith
Date: Fri Jan 27 03:25:36 2006
New Revision: 372817

URL: http://svn.apache.org/viewcvs?rev=372817&view=rev
Log:
1. Fixed a testcase teardown issue (I've forgotten to comment the teardown)
2. Fixed the in-only MEP issue for the client

Modified:
    webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl
    webservices/axis2/trunk/java/modules/codegen/test/org/apache/axis2/schema/compile/SimpleAnyTypeTest.java

Modified: webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl?rev=372817&r1=372816&r2=372817&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl (original)
+++ webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl Fri Jan 27 03:25:36 2006
@@ -46,7 +46,15 @@
         org.apache.axis2.description.AxisOperation __operation;
         _operations = new org.apache.axis2.description.OutInAxisOperation[<xsl:value-of select="count(method)"/>];
         <xsl:for-each select="method">
-            __operation = new org.apache.axis2.description.OutInAxisOperation();
+            <xsl:choose>
+                <xsl:when test="@mep='http://www.w3.org/2004/08/wsdl/in-only'">"
+                    __operation = new org.apache.axis2.description.OutOnlyAxisOperation();
+                </xsl:when>
+                <xsl:otherwise>
+                   __operation = new org.apache.axis2.description.OutInAxisOperation();
+                </xsl:otherwise>
+            </xsl:choose>
+
             __operation.setName(new javax.xml.namespace.QName("<xsl:value-of select="@namespace"/>", "<xsl:value-of select="@name"/>"));
             _operations[<xsl:value-of select="position()-1"/>]=__operation;
             _service.addOperation(__operation);
@@ -148,7 +156,7 @@
                                     <xsl:for-each select="input/param[@location='header']">
                                         // add the children only if the parameter is not null
                                         if (<xsl:value-of select="@name"/>!=null){
-                                        env.getHeader().addChild(toOM(<xsl:value-of select="@name"/>));
+                                           env.getHeader().addChild(toOM(<xsl:value-of select="@name"/>));
                                         }
                                     </xsl:for-each>
                                 </xsl:when>

Modified: webservices/axis2/trunk/java/modules/codegen/test/org/apache/axis2/schema/compile/SimpleAnyTypeTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/codegen/test/org/apache/axis2/schema/compile/SimpleAnyTypeTest.java?rev=372817&r1=372816&r2=372817&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/codegen/test/org/apache/axis2/schema/compile/SimpleAnyTypeTest.java (original)
+++ webservices/axis2/trunk/java/modules/codegen/test/org/apache/axis2/schema/compile/SimpleAnyTypeTest.java Fri Jan 27 03:25:36 2006
@@ -22,7 +22,5 @@
         super.setUp();
     }
 
-    protected void tearDown() throws Exception {
-
-    }
+  
 }