axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From susan...@apache.org
Subject cvs commit: ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp WrapWriter.java ClientStubWriter.java
Date Fri, 17 Oct 2003 11:00:33 GMT
susantha    2003/10/17 04:00:33

  Modified:    c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp WrapWriter.java
                        ClientStubWriter.java
  Log:
  corrected few problems in the generated wrappers and stubs when the web service metod returns
void
  
  Revision  Changes    Path
  1.8       +1 -1      ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/WrapWriter.java
  
  Index: WrapWriter.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/WrapWriter.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- WrapWriter.java	17 Oct 2003 08:34:01 -0000	1.7
  +++ WrapWriter.java	17 Oct 2003 11:00:32 -0000	1.8
  @@ -306,7 +306,7 @@
   				}
   				writer.write("v" + ( paramsB.size() - 1));
   			}
  -			writer.write(")\n");
  +			writer.write(");\n");
   			writer.write("\treturn SUCCESS;\n");
   		}
   		//write end of method
  
  
  
  1.11      +8 -2      ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/ClientStubWriter.java
  
  Index: ClientStubWriter.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/ClientStubWriter.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- ClientStubWriter.java	17 Oct 2003 08:34:01 -0000	1.10
  +++ ClientStubWriter.java	17 Oct 2003 11:00:33 -0000	1.11
  @@ -240,8 +240,9 @@
   			}
   		}
   		writer.write(")\n{\n");
  -		writer.write("\tint nStatus;\n\t");
  +		writer.write("\tint nStatus;\n");
   		if (returntype != null){
  +			writer.write("\t");
   			if(returntypeisarray){
   				//for arrays
   				writer.write(outparamType+" RetArray = {NULL, 0};\n");
  @@ -255,7 +256,12 @@
   			}
   		}
   		writer.write("\tif (SUCCESS != m_pCall->Initialize()) return ");
  -		writer.write((returntypeisarray?"RetArray":returntypeissimple?"Ret":"pReturn")+";\n\t");
  +		if (returntype != null){
  +			writer.write((returntypeisarray?"RetArray":returntypeissimple?"Ret":"pReturn")+";\n\t");
  +		}
  +		else{
  +			writer.write(";\n\t");
  +		}
   		writer.write("m_pCall->SetSOAPVersion(SOAP_VER_1_1);\n"); //TODO check which version
is it really.
   		writer.write("\tm_pCall->SetOperation(\""+methodName+"\", \""+ wscontext.getWrapInfo().getTargetNameSpaceOfWSDL()
+"\");\n");
   		for (int i = 0; i < paramsB.size(); i++) {
  
  
  

Mime
View raw message