ws-axis-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dami...@apache.org
Subject cvs commit: ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/c BeanParamWriter.java
Date Wed, 04 Aug 2004 05:50:57 GMT
damitha     2004/08/03 22:50:57

  Modified:    c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/c Tag:
                        NamespaceTesting_branch BeanParamWriter.java
  Log:
  bug fixes - Extra space was removed
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.17.14.1 +8 -8      ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/c/BeanParamWriter.java
  
  Index: BeanParamWriter.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/c/BeanParamWriter.java,v
  retrieving revision 1.17
  retrieving revision 1.17.14.1
  diff -u -r1.17 -r1.17.14.1
  --- BeanParamWriter.java	11 Jun 2004 05:01:27 -0000	1.17
  +++ BeanParamWriter.java	4 Aug 2004 05:50:55 -0000	1.17.14.1
  @@ -93,25 +93,25 @@
   		writer.write("\tconst AxisChar* sPrefix;\n");
   		writer.write("\tif (bArray)\n");
   		writer.write("\t{\n");
  -		writer.write("\t\tpSZ->_functions->serialize StartElementOfType(pSZ->_object,
Axis_TypeName_"+classname+", 0, 0);\n");
  +		writer.write("\t\tpSZ->_functions->serializeStartElementOfType(pSZ->_object,
Axis_TypeName_"+classname+", 0, 0);\n");
   		writer.write("\t}\n");
   		writer.write("\telse\n");
   		writer.write("\t{\n");
   		writer.write("\t\tsPrefix = pSZ->_functions->getNamespacePrefix(pSZ->_object,
Axis_URI_"+classname+");\n");
  -		writer.write("\t\tpSZ->_functions->serialize StartElementOfType(pSZ->_object,
Axis_TypeName_"+classname+", Axis_URI_"+classname+", sPrefix);\n");
  +		writer.write("\t\tpSZ->_functions->serializeStartElementOfType(pSZ->_object,
Axis_TypeName_"+classname+", Axis_URI_"+classname+", sPrefix);\n");
   		writer.write("\t}\n\n");
   		String arrayType = null;
   		for(int i = 0; i< attribs.length;i++){
   			if(attribs[i].isArray()){
   				if(attribs[i].isSimpleType()){
  -					writer.write("\tpSZ->_functions->serialize BasicArray(pSZ->_object, (Axis_Array*)(&param->"+attribs[i].getParamName()+"),"+CUtils.getXSDTypeForBasicType(attribs[i].getTypeName())+",
\""+attribs[i].getParamName()+"\");\n"); 
  +					writer.write("\tpSZ->_functions->serializeBasicArray(pSZ->_object, (Axis_Array*)(&param->"+attribs[i].getParamName()+"),"+CUtils.getXSDTypeForBasicType(attribs[i].getTypeName())+",
\""+attribs[i].getParamName()+"\");\n"); 
   				}
   				else{
   					String elm = attribs[i].getParamName();
   					if ( attribs[i].isReference() )
   						elm = attribs[i].getTypeName();					
   					arrayType = attribs[i].getTypeName();
  -					writer.write("\tpSZ->_functions->serialize CmplxArray(pSZ->_object, (Axis_Array*)(&param->"+attribs[i].getParamName()+"),\n");

  +					writer.write("\tpSZ->_functions->serializeCmplxArray(pSZ->_object, (Axis_Array*)(&param->"+attribs[i].getParamName()+"),\n");

   					writer.write("\t\t(void*) Axis_Serialize_"+arrayType+", (void*) Axis_Delete_"+arrayType+",
(void*) Axis_GetSize_"+arrayType+",\n"); 
   					writer.write("\t\t\""+elm+"\", Axis_TypeName_"+arrayType+");\n");
   				}
  @@ -120,13 +120,13 @@
   				if(attribs[i].isAttribute()){
   					if(attribs[i].isOptional()){
   						writer.write("\tif(0 != param->"+attribs[i].getParamName()+")\n");
  -						writer.write("\t\tpSZ->_functions->serialize AsAttribute(pSZ->_object, \""+attribs[i].getParamName()+"\",
0, (void*)(param->"+attribs[i].getParamName()+"), "+ CUtils.getXSDTypeForBasicType(attribs[i].getTypeName())+");\n");
  +						writer.write("\t\tpSZ->_functions->serializeAsAttribute(pSZ->_object, \""+attribs[i].getParamName()+"\",
0, (void*)(param->"+attribs[i].getParamName()+"), "+ CUtils.getXSDTypeForBasicType(attribs[i].getTypeName())+");\n");
   					}else{
  -						writer.write("\tpSZ->_functions->serialize AsAttribute(pSZ->_object, \""+attribs[i].getParamName()+"\",
0, (void*)&(param->"+attribs[i].getParamName()+"), "+ CUtils.getXSDTypeForBasicType(attribs[i].getTypeName())+");\n");
  +						writer.write("\tpSZ->_functions->serializeAsAttribute(pSZ->_object, \""+attribs[i].getParamName()+"\",
0, (void*)&(param->"+attribs[i].getParamName()+"), "+ CUtils.getXSDTypeForBasicType(attribs[i].getTypeName())+");\n");
   					}
   				}
   				else{
  -					writer.write("\tpSZ->_functions->serialize AsElement(pSZ->_object, \""+attribs[i].getParamName()+"\",
(void*)&(param->"+attribs[i].getParamName()+"), "+ CUtils.getXSDTypeForBasicType(attribs[i].getTypeName())+");\n");
  +					writer.write("\tpSZ->_functions->serializeAsElement(pSZ->_object, \""+attribs[i].getParamName()+"\",
(void*)&(param->"+attribs[i].getParamName()+"), "+ CUtils.getXSDTypeForBasicType(attribs[i].getTypeName())+");\n");
   				}
   			}
   			else{
  @@ -134,7 +134,7 @@
   				writer.write("\tAxis_Serialize_"+attribs[i].getTypeName()+"(param->"+attribs[i].getParamName()+",
pSZ, false);\n");
   			}			
   		}
  -		writer.write("\n\tpSZ->_functions->serialize EndElementOfType(pSZ->_object,
Axis_TypeName_"+classname+");\n");
  +		writer.write("\n\tpSZ->_functions->serializeEndElementOfType(pSZ->_object, Axis_TypeName_"+classname+");\n");
   		writer.write("\treturn AXIS_SUCCESS;\n");
   		writer.write("}\n\n");
   	
  
  
  

Mime
View raw message