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 na...@apache.org on 2010/01/11 10:07:35 UTC
svn commit: r897804 -
/webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/c/ServiceSkeleton.xsl
Author: nandika
Date: Mon Jan 11 09:07:35 2010
New Revision: 897804
URL: http://svn.apache.org/viewvc?rev=897804&view=rev
Log:
ServiceSkeleton.xsl Bug in fault union generation fixed
Modified:
webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/c/ServiceSkeleton.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?rev=897804&r1=897803&r2=897804&view=diff
==============================================================================
--- 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 Mon Jan 11 09:07:35 2010
@@ -49,7 +49,6 @@
extern "C" {
#endif
-
/**
* creating a custom structure to wrap the axis2_svc_skeleton class
*/
@@ -57,6 +56,7 @@
axis2_svc_skeleton_t svc_skeleton;
/* union to keep all the exception objects */
+ <xsl:if test="count(method/fault/*) > 0">
union {
<xsl:for-each select="method">
<xsl:if test="count(fault/*)">
@@ -64,12 +64,12 @@
</xsl:if>
</xsl:for-each>
} fault;
+ </xsl:if>
}<xsl:value-of select="$method-prefix"/>_t;
/**
* functions prototypes
*/
-
/* On fault, handle the fault */
axiom_node_t* AXIS2_CALL
<xsl:value-of select="$method-prefix"/>_on_fault(axis2_svc_skeleton_t *svc_skeleton,