ws-axis-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nadira...@apache.org
Subject svn commit: r391756 - /webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/c/literal/ClientStubWriter.java
Date Wed, 05 Apr 2006 19:46:38 GMT
Author: nadiramra
Date: Wed Apr  5 12:46:38 2006
New Revision: 391756

URL: http://svn.apache.org/viewcvs?rev=391756&view=rev
Log:
C support fixes/enhancements.

Modified:
    webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/c/literal/ClientStubWriter.java

Modified: webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/c/literal/ClientStubWriter.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/c/literal/ClientStubWriter.java?rev=391756&r1=391755&r2=391756&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/c/literal/ClientStubWriter.java
(original)
+++ webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/c/literal/ClientStubWriter.java
Wed Apr  5 12:46:38 2006
@@ -56,6 +56,12 @@
   {
       try
         {
+          writer.write("\n");
+          writer.write("/* ================================================== */\n" +
+                       "/* Functions corresponding to actual web service      */\n" +
+                       "/* ================================================== */\n");
+          writer.write("\n");
+          
           // get_xxx_stub() routine
           writer.write("AXISCHANDLE get_" + classname + "_stub(const char* pchEndPointUri)\n{\n");
           writer.write("\tif(pchEndPointUri)\n");
@@ -74,9 +80,14 @@
           writer.write("int get_" + classname + "_Status(AXISCHANDLE stub)\n{\n");
           writer.write("\tAXISCHANDLE call = axiscGetCall(stub);\n");
           writer.write("\treturn axiscGetStatusCall(call);\n");
-          writer.write("}\n\n");
+          writer.write("}\n");
 
-          writer.write("/* Functions corresponding to the web service methods*/\n");
+          writer.write("\n");
+          writer.write("/* ================================================== */\n" +
+                       "/* Functions corresponding to the web service methods */\n" +
+                       "/* ================================================== */\n");
+          writer.write("\n");
+          
           MethodInfo minfo;
           for (int i = 0; i < methods.size(); i++)
           {
@@ -577,8 +588,7 @@
             }
             else if (CUtils.isPointerType(outparamType))
             {
-                writer.write( "\t\t\t" + outparamType 
-                              + " pReturn = " 
+                writer.write( "\t\t\t" + outparamType + " pReturn = " 
                               + CUtils.getParameterGetValueMethodName( outparamType, false)
                               + "(call, \"" + returntype.getElementNameAsString() + "\",
0);\n");           
                 writer.write ("\t\t\tif(pReturn)\n");
@@ -586,8 +596,7 @@
             }
             else
             {
-                writer.write( "\t\t\t" + outparamType 
-                              + " *pReturn = " 
+                writer.write( "\t\t\t" + outparamType + " *pReturn = " 
                               + CUtils.getParameterGetValueMethodName( outparamType, false)
                               + "(call, \"" + returntype.getElementNameAsString() + "\",
0);\n");           
                 writer.write ("\t\t\tif(pReturn)\n");
@@ -610,8 +619,7 @@
             {
                 String outparamTypeBase = outparamType.substring (0, outparamType.lastIndexOf("*"));
 
-                writer.write( "\t\t\tpReturn = ("
-                              + outparamType
+                writer.write( "\t\t\tpReturn = (" + outparamType
                               + ")axiscGetCmplxObjectCall(call, (void*) Axis_DeSerialize_"
+ outparamTypeBase
                               + ", (void*) Axis_Create_" + outparamTypeBase
                               + ", (void*) Axis_Delete_" + outparamTypeBase
@@ -619,8 +627,7 @@
             }
             else
             {
-                writer.write( "\t\t\tpReturn = ("
-                              + outparamType
+                writer.write( "\t\t\tpReturn = (" + outparamType
                               + "*)axiscGetCmplxObjectCall(call, (void*) Axis_DeSerialize_"
+ outparamType
                               + ", (void*) Axis_Create_" + outparamType
                               + ", (void*) Axis_Delete_" + outparamType



Mime
View raw message