axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nadira...@apache.org
Subject svn commit: r387991 - /webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/c/literal/ClientStubWriter.java
Date Thu, 23 Mar 2006 01:20:27 GMT
Author: nadiramra
Date: Wed Mar 22 17:20:24 2006
New Revision: 387991

URL: http://svn.apache.org/viewcvs?rev=387991&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=387991&r1=387990&r2=387991&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 Mar 22 17:20:24 2006
@@ -57,30 +57,27 @@
   {
       try
         {
-          writer.write("AXISCHANDLE get_" + classname + "_stub(const char* pchEndPointUri)\n{");
+          // get_xxx_stub() routine
+          writer.write("AXISCHANDLE get_" + classname + "_stub(const char* pchEndPointUri)\n{\n");
           writer.write("\tif(pchEndPointUri)\n");
-          writer.write("\t{\n");
           writer.write("\t\treturn axiscCreateStub(pchEndPointUri, AXISC_PTHTTP1_1);\n");
-          writer.write("\t}\n");
           writer.write("\telse\n");
-          writer.write("\t{\n");
-          writer.write("\t\treturn axiscCreateStub(\""
-                       + wscontext.getWrapInfo().getTargetEndpointURI()
-                       + "\", AXISC_PTHTTP1_1);\n");
-          writer.write("\t}\n");
-          writer.write("}\n");
-          writer.write("void destroy_" + classname + "_stub(AXISCHANDLE p){\n");
-          writer.write("\taxiscDestroyStub(p);\n}\n");
+          writer.write("\t\treturn axiscCreateStub(\"" 
+                  + wscontext.getWrapInfo().getTargetEndpointURI() 
+                  + "\", AXISC_PTHTTP1_1);\n");
+          writer.write("}\n\n");
+          
+          // destroy_xxxx_stub()
+          writer.write("void destroy_" + classname + "_stub(AXISCHANDLE p)\n{\n");
+          writer.write("\taxiscDestroyStub(p);\n}\n\n");
 
-          writer.write("int get_" + classname + "_Status(AXISCHANDLE stub){\n");
+          // get_xxxx_Status() routine
+          writer.write("int get_" + classname + "_Status(AXISCHANDLE stub)\n{\n");
           writer.write("\tAXISCHANDLE call = axiscGetCall(stub);\n");
-          writer.write("\tif ( stub == NULL )\n");
-          writer.write("\t\treturn AXISC_FAIL;\n");
-          writer.write("\telse\n");
-          writer.write("\t\treturn axiscGetStatusCall(call);\n");
-          writer.write("}\n");
+          writer.write("\treturn axiscGetStatusCall(call);\n");
+          writer.write("}\n\n");
 
-          writer.write("\n/*Methods corresponding to the web service methods*/\n");
+          writer.write("/* Functions corresponding to the web service methods*/\n");
           MethodInfo minfo;
           for (int i = 0; i < methods.size(); i++)
           {
@@ -146,7 +143,7 @@
             returntypeissimple = CUtils.isSimpleType(outparamType);
 
         writer.write("\n/*\n");
-        writer.write(" * This method wrap the service method " + methodName + "\n");
+        writer.write(" * This function wraps the service method " + methodName + "\n");
         writer.write(" */\n");
         //method signature
         String paraTypeName;



Mime
View raw message