axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject svn commit: r505269 - in /webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/c: ServiceSkeleton.xsl StubSourceTemplate.xsl
Date Fri, 09 Feb 2007 12:34:12 GMT
Author: samisa
Date: Fri Feb  9 04:34:08 2007
New Revision: 505269

URL: http://svn.apache.org/viewvc?view=rev&rev=505269
Log:
Fixed code generation problems related to performance

Modified:
    webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/c/ServiceSkeleton.xsl
    webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/c/StubSourceTemplate.xsl

Modified: webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/c/ServiceSkeleton.xsl
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/c/ServiceSkeleton.xsl?view=diff&rev=505269&r1=505268&r2=505269
==============================================================================
--- webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/c/ServiceSkeleton.xsl
(original)
+++ webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/c/ServiceSkeleton.xsl
Fri Feb  9 04:34:08 2007
@@ -168,7 +168,7 @@
                 <xsl:variable name="name"><xsl:value-of select="@name"/></xsl:variable>
                 <xsl:variable name="method-name"><xsl:value-of select="@name"/></xsl:variable>
                 <xsl:variable name="method-ns"><xsl:value-of select="@namespace"/>
</xsl:variable>
-                <xsl:variable name="outputCapsType"><xsl:value-of select="@output/param/@caps-type"/>
</xsl:variable>
+                <xsl:variable name="outputCapsType"><xsl:value-of select="output/param/@caps-type"/>
</xsl:variable>
                 <xsl:variable name="outputtype"><xsl:value-of select="output/param/@type"/></xsl:variable>
 
                 if ( AXIS2_STRCMP(op_name, "<xsl:value-of select="@localpart"/>") ==
0 )
@@ -177,7 +177,7 @@
                     input_val<xsl:value-of select="$position"/>_<xsl:value-of select="position()"/>
= <xsl:choose>
                         <xsl:when test="@ours">
                         axis2_<xsl:value-of select="@type"/>_create( env);
-                        AXIS2_<xsl:value-of select="@caps-type"/>_BUILD_OM(input_val<xsl:value-of
select="$position"/>_<xsl:value-of select="position()"/>, env, content_node );
+                        AXIS2_<xsl:value-of select="@caps-type"/>_DESERIALIZE(input_val<xsl:value-of
select="$position"/>_<xsl:value-of select="position()"/>, env, content_node );
                         </xsl:when>
                         <xsl:otherwise>content_node;</xsl:otherwise>
                         </xsl:choose>
@@ -192,7 +192,9 @@
                     }
                     ret_node = <xsl:choose>
                                    <xsl:when test="@ours">
-                               AXIS2_<xsl:value-of select="@caps-type"/>_PARSE_OM(ret_val<xsl:value-of
select="$position"/>, env, NULL );
+                               AXIS2_<xsl:value-of select="$outputCapsType"/>_SERIALIZE(ret_val<xsl:value-of
select="$position"/>, env, NULL, AXIS2_FALSE);
+                               AXIS2_<xsl:value-of select="$outputCapsType"/>_FREE(ret_val<xsl:value-of
select="$position"/>, env);
+                               AXIS2_<xsl:value-of select="@caps-type"/>_FREE(input_val<xsl:value-of
select="$position"/>_<xsl:value-of select="position()"/>, env);
                                    </xsl:when>
                                    <xsl:otherwise>ret_val<xsl:value-of select="$position"/>;</xsl:otherwise>
                                 </xsl:choose>
@@ -231,7 +233,7 @@
 	 * Following block distinguish the exposed part of the dll.
  	 */
 
-    AXIS2_EXTERN int AXIS2_CALL
+    AXIS2_EXTERN int
     axis2_get_instance(struct axis2_svc_skeleton **inst,
 	                        const axis2_env_t *env)
 	{
@@ -245,7 +247,7 @@
   		return AXIS2_SUCCESS;
 	}
 
-	AXIS2_EXTERN int AXIS2_CALL
+	AXIS2_EXTERN int 
     axis2_remove_instance(axis2_svc_skeleton_t *inst,
                             const axis2_env_t *env)
 	{

Modified: webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/c/StubSourceTemplate.xsl
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/c/StubSourceTemplate.xsl?view=diff&rev=505269&r1=505268&r2=505269
==============================================================================
--- webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/c/StubSourceTemplate.xsl
(original)
+++ webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/c/StubSourceTemplate.xsl
Fri Feb  9 04:34:08 2007
@@ -156,7 +156,7 @@
                 <xsl:if test="position()=1">
                     <xsl:choose>
                         <xsl:when test="@ours">
-                            payload = AXIS2_<xsl:value-of select="@caps-type"/>_PARSE_OM(<xsl:value-of
select="@name"/>, env, NULL);
+                            payload = AXIS2_<xsl:value-of select="@caps-type"/>_SERIALIZE(<xsl:value-of
select="@name"/>, env, NULL, AXIS2_FALSE);
                         </xsl:when>
                         <xsl:otherwise>
                             payload = <xsl:value-of select="@name"/>;
@@ -205,7 +205,7 @@
                     }
                     ret_val = axis2_<xsl:value-of select="output/param/@type"/>_create(env);
 
-                    AXIS2_<xsl:value-of select="$caps-outputtype"/>_BUILD_OM(ret_val,
env, ret_node );
+                    AXIS2_<xsl:value-of select="$caps-outputtype"/>_DESERIALIZE(ret_val,
env, ret_node );
                     return ret_val;
                 </xsl:when>
                 <xsl:otherwise>
@@ -249,7 +249,7 @@
                 <xsl:if test="position()=1">
                     <xsl:choose>
                         <xsl:when test="@ours">
-                            payload = AXIS2_<xsl:value-of select="@caps-type"/>_PARSE_OM(<xsl:value-of
select="@name"/>, env, NULL);
+                            payload = AXIS2_<xsl:value-of select="@caps-type"/>_SERIALIZE(<xsl:value-of
select="@name"/>, env, NULL, AXIS2_FALSE);
                         </xsl:when>
                         <xsl:otherwise>
                             payload = <xsl:value-of select="@name"/>;
@@ -328,7 +328,7 @@
                 <xsl:if test="position()=1">
                     <xsl:choose>
                         <xsl:when test="@ours">
-                            payload = AXIS2_<xsl:value-of select="@caps-type"/>_PARSE_OM(<xsl:value-of
select="@name"/>, env, NULL);
+                            payload = AXIS2_<xsl:value-of select="@caps-type"/>_SERIALIZE(<xsl:value-of
select="@name"/>, env, NULL, AXIS2_FALSE);
                         </xsl:when>
                         <xsl:otherwise>
                             payload = <xsl:value-of select="@name"/>;



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message