axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nadira...@apache.org
Subject svn commit: r688130 [6/7] - in /webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws: ./ c/ c/literal/ cpp/ cpp/literal/
Date Fri, 22 Aug 2008 17:37:40 GMT
Modified: webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/ParmHeaderFileWriter.java
URL: http://svn.apache.org/viewvc/webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/ParmHeaderFileWriter.java?rev=688130&r1=688129&r2=688130&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/ParmHeaderFileWriter.java (original)
+++ webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/ParmHeaderFileWriter.java Fri Aug 22 10:37:39 2008
@@ -53,12 +53,12 @@
     {
         try
         {
-            this.writer = new BufferedWriter(new FileWriter(getFilePath(), false));
+            c_writer = new BufferedWriter(new FileWriter(getFilePath(), false));
             writeClassComment();
             // if this headerfile not defined define it
-            this.writer.write("#if !defined(__" + classname.toUpperCase() + "_"
+            c_writer.write("#if !defined(__" + c_classname.toUpperCase() + "_"
                     + getFileType().toUpperCase() + "_H__INCLUDED_)\n");
-            this.writer.write("#define __" + classname.toUpperCase() + "_"
+            c_writer.write("#define __" + c_classname.toUpperCase() + "_"
                     + getFileType().toUpperCase() + "_H__INCLUDED_\n\n");
 
             if (type.isSimpleType())
@@ -67,33 +67,33 @@
             {
                 writePreprocessorStatements();
 
-                writer.write("\n");
-                writer.write("/* ********************************************************************* */\n");
-                writer.write("/* --- Custom type                                                   --- */\n");
-                writer.write("/* ********************************************************************* */\n");
-                writer.write("\n");                
+                c_writer.write("\n");
+                c_writer.write("/* ********************************************************************* */\n");
+                c_writer.write("/* --- Custom type                                                   --- */\n");
+                c_writer.write("/* ********************************************************************* */\n");
+                c_writer.write("\n");                
                 
                 
-                classname = CUtils.sanitizeString( classname);
+                c_classname = CUtils.sanitizeString( c_classname);
                 
-                this.writer.write("class STORAGE_CLASS_INFO " + classname);
+                c_writer.write("class STORAGE_CLASS_INFO " + c_classname);
                 if (this.type.isFault())
-                    this.writer.write(" : public SoapFaultException");
-                this.writer.write("\n{\n");
+                    c_writer.write(" : public SoapFaultException");
+                c_writer.write("\n{\n");
                 writeAttributes();
                 writeGetSetMethods();
                 writeConstructors();
                 writeDestructors();
                 writeDeepCopyFlags();
-                this.writer.write("};\n\n");
+                c_writer.write("};\n\n");
                 
                 writeFunctionPrototypes();
             }
-            this.writer.write("\n");
-            this.writer.write("#endif /* !defined(__" + classname.toUpperCase()
+            c_writer.write("\n");
+            c_writer.write("#endif /* !defined(__" + c_classname.toUpperCase()
                     + "_" + getFileType().toUpperCase() + "_H__INCLUDED_)*/\n");
-            writer.flush();
-            writer.close();
+            c_writer.flush();
+            c_writer.close();
             if (WSDL2Ws.c_verbose)
                 System.out.println(getFilePath().getAbsolutePath() + " created.....");
         } 
@@ -137,10 +137,10 @@
                 {
                     if (!foundDeepCopyType)
                     {
-                        writer.write("\nprivate:\n");
+                        c_writer.write("\nprivate:\n");
                         foundDeepCopyType = true;
                     }
-                    writer.write("\tbool __axis_deepcopy_" + attribs[i].getParamNameAsMember() + ";\n");
+                    c_writer.write("\tbool __axis_deepcopy_" + attribs[i].getParamNameAsMember() + ";\n");
                 }
             }
         }
@@ -154,8 +154,8 @@
     {
         try
         {
-            writer.write("#include <axis/AxisUserAPI.hpp>\n");
-            writer.write("#include <axis/AxisUserAPIArrays.hpp>\n");
+            c_writer.write("#include <axis/AxisUserAPI.hpp>\n");
+            c_writer.write("#include <axis/AxisUserAPIArrays.hpp>\n");
             
             Vector restrictionData = type.getEnumerationdata();
             if (restrictionData == null)
@@ -174,18 +174,18 @@
             if (null != restrictionBaseType )
             {  
                 langTypeName = CUtils.sanitizeString(restrictionBaseType);               
-                writer.write( "#include \"" + langTypeName + ".hpp\"\n\n");
+                c_writer.write( "#include \"" + langTypeName + ".hpp\"\n\n");
             }
             else
                 langTypeName = baseTypeName;
             
-            writer.write("AXIS_CPP_NAMESPACE_USE \n\n");
+            c_writer.write("AXIS_CPP_NAMESPACE_USE \n\n");
 
-            writer.write("\n");
-            writer.write("/* ********************************************************************* */\n");
-            writer.write("/* --- Simple types and restrictions                                 --- */\n");
-            writer.write("/* ********************************************************************* */\n");
-            writer.write("\n");  
+            c_writer.write("\n");
+            c_writer.write("/* ********************************************************************* */\n");
+            c_writer.write("/* --- Simple types and restrictions                                 --- */\n");
+            c_writer.write("/* ********************************************************************* */\n");
+            c_writer.write("\n");  
 
             // Need to determine what to use for enumeration identifiers.  That is, if a string
             // enumeration value is "foobar", then we can generate an enumerator identifer of 
@@ -202,43 +202,43 @@
                     break;
             }            
             
-            writer.write("typedef ");
+            c_writer.write("typedef ");
             if (CUtils.isPointerType(baseTypeName) 
                     || "xsd__base64Binary".equals(baseTypeName) 
                     || "xsd__hexBinary".equals(baseTypeName))
             {
-                writer.write(langTypeName + " " + classname + ";\n");
-                writer.write("typedef " + langTypeName + "_Array " + classname + "_Array;\n");
-                writer.write("\n");
+                c_writer.write(langTypeName + " " + c_classname + ";\n");
+                c_writer.write("typedef " + langTypeName + "_Array " + c_classname + "_Array;\n");
+                c_writer.write("\n");
                 
                 for (int i = 1; i < restrictionData.size(); i++)
                 {
                     QName value = (QName) restrictionData.elementAt(i);
                     if ("enumeration".equals(value.getLocalPart()))
                     {
-                        writer.write("static const " + classname + " " + classname + "_");
+                        c_writer.write("static const " + c_classname + " " + c_classname + "_");
                         if (validEnumIdentifier)
-                            writer.write(value.getNamespaceURI());
+                            c_writer.write(value.getNamespaceURI());
                         else
-                            writer.write("ENUM" + i);
-                        writer.write(" = \"" + value.getNamespaceURI() + "\";\n");
+                            c_writer.write("ENUM" + i);
+                        c_writer.write(" = \"" + value.getNamespaceURI() + "\";\n");
                     } 
                     else if ("maxLength".equals(value.getLocalPart()))
                     {
-                        writer.write("static const int " + classname
+                        c_writer.write("static const int " + c_classname
                                 + "_MaxLength = " + value.getNamespaceURI() + ";\n");
                     } 
                     else if ("minLength".equals(value.getLocalPart()))
                     {
-                        writer.write("static const int " + classname
+                        c_writer.write("static const int " + c_classname
                                 + "_MinLength = " + value.getNamespaceURI() + ";\n");
                     }
                 }
             } 
             else if ("int".equals(baseType.getLocalPart()))
             {
-                writer.write(langTypeName + " " + classname + ";\n");
-                writer.write("typedef " + langTypeName + "_Array " + classname + "_Array;\n");
+                c_writer.write(langTypeName + " " + c_classname + ";\n");
+                c_writer.write("typedef " + langTypeName + "_Array " + c_classname + "_Array;\n");
             
                 if (restrictionData.size() > 1)
                 {
@@ -252,46 +252,46 @@
                         {
                             isEnum = true;
                             if (i > 1)
-                                writer.write(", ");
+                                c_writer.write(", ");
                             else
-                                writer.write("typedef enum { ");
+                                c_writer.write("typedef enum { ");
 
-                            writer.write("ENUM" + classname.toUpperCase() + "_"
+                            c_writer.write("ENUM" + c_classname.toUpperCase() + "_"
                                     + value.getNamespaceURI() + "="
                                     + value.getNamespaceURI());
                         } 
                         else if ("minInclusive".equals(value.getLocalPart()))
                         {
-                            writer.write("static const int " + classname
+                            c_writer.write("static const int " + c_classname
                                     + "_MinInclusive = " + value.getNamespaceURI() + ";\n");
                         } 
                         else if ("maxInclusive".equals(value.getLocalPart()))
                         {
-                            writer.write("static const int " + classname
+                            c_writer.write("static const int " + c_classname
                                     + "_MaxInclusive = " + value.getNamespaceURI() + ";\n");
                         }
                     }
                     
                     if (isEnum)
-                        writer.write("} " + classname + "_Enum;\n");
+                        c_writer.write("} " + c_classname + "_Enum;\n");
                 } 
             } 
             else
             {
-                writer.write(langTypeName + " " + classname + ";\n");
-                writer.write("typedef " + langTypeName + "_Array " + classname + "_Array;\n");
+                c_writer.write(langTypeName + " " + c_classname + ";\n");
+                c_writer.write("typedef " + langTypeName + "_Array " + c_classname + "_Array;\n");
                 
                 for (int i = 1; i < restrictionData.size(); i++)
                 {
                     QName value = (QName) restrictionData.elementAt(i);
                     if ("enumeration".equals(value.getLocalPart()))
                     {
-                        writer.write("static const " + classname + " " + classname + "_");
+                        c_writer.write("static const " + c_classname + " " + c_classname + "_");
                         if (validEnumIdentifier)
-                            writer.write(value.getNamespaceURI());
+                            c_writer.write(value.getNamespaceURI());
                         else
-                            writer.write("ENUM" + i);
-                        writer.write(" = \"" + value.getNamespaceURI() + "\";\n");
+                            c_writer.write("ENUM" + i);
+                        c_writer.write(" = \"" + value.getNamespaceURI() + "\";\n");
                     }
                 }
             }
@@ -311,7 +311,7 @@
 
         try
         {
-            writer.write("public:\n");
+            c_writer.write("public:\n");
             for (int i = 0; i < attribs.length; i++)
             {                
                 // Following will set the correct type 
@@ -335,22 +335,22 @@
                     
                     if ((!attribs[i].isSimpleType() && attribs[i].getType().isSimpleType()) 
                             || attribs[i].getType().isRestriction())
-                        writer.write("\t");
+                        c_writer.write("\t");
                     else
-                        writer.write("\tclass ");                    
+                        c_writer.write("\tclass ");                    
                 }
                 else
-                    writer.write("\t");
+                    c_writer.write("\t");
 
                 // Print out field.
-                writer.write(paramType + " " + paramName + ";\n");
+                c_writer.write(paramType + " " + paramName + ";\n");
             }
             
             // Handle extension 
             if (extensionBaseAttrib != null &&
                 getCorrectParmNameConsideringArraysAndComplexTypes(extensionBaseAttrib) != null)
             {
-                writer.write("\t"
+                c_writer.write("\t"
                              + getCorrectParmNameConsideringArraysAndComplexTypes(extensionBaseAttrib)
                              + " "
                              + extensionBaseAttrib.getParamNameAsMember() + ";\n");
@@ -393,13 +393,13 @@
                 if (attribs[i].isArray() && !paramType.endsWith("*"))
                         paramType += "* ";  
                 
-                writer.write("\n");
+                c_writer.write("\n");
                 
                 // Generate getter prototype
-                writer.write("\t" + paramType + " get" + methodName + "();\n");
+                c_writer.write("\t" + paramType + " get" + methodName + "();\n");
                 
                 // Generate setter prototype - need to consider deep copies
-                writer.write("\t" + "void set" + methodName + "(" + paramType + " InValue");
+                c_writer.write("\t" + "void set" + methodName + "(" + paramType + " InValue");
                 
                 Type type = attribs[i].getType();
                 boolean isPointerType;                
@@ -415,9 +415,9 @@
                                 || isPointerType 
                                 || attribs[i].getChoiceElement() 
                                 || attribs[i].getAllElement()))                
-                    writer.write(", bool deep=true, bool makeCopy=true");
+                    c_writer.write(", bool deep=true, bool makeCopy=true");
                     
-                writer.write(");\n");
+                c_writer.write(");\n");
             }
         } 
         catch (IOException e)
@@ -430,8 +430,8 @@
     {
         try
         {
-            writer.write("\n\t" + classname + "();\n");
-            writer.write("\t" + classname + "(const " + classname + " & original);\n");
+            c_writer.write("\n\t" + c_classname + "();\n");
+            c_writer.write("\t" + c_classname + "(const " + c_classname + " & original);\n");
             writeReset();
         } 
         catch (IOException e)
@@ -443,7 +443,7 @@
     {
         try
         {
-            writer.write("\n\tvoid reset();\n");
+            c_writer.write("\n\tvoid reset();\n");
         } 
         catch (IOException e)
         {
@@ -456,9 +456,9 @@
         try
         {
             if (this.type.isFault())
-                writer.write("\tvirtual ~" + classname + "() throw();\n");
+                c_writer.write("\tvirtual ~" + c_classname + "() throw();\n");
             else
-                writer.write("\tvirtual ~" + classname + "();\n");
+                c_writer.write("\tvirtual ~" + c_classname + "();\n");
         } 
         catch (IOException e)
         {
@@ -475,13 +475,13 @@
         String targetOutputLocation = this.wscontext.getWrapperInfo().getTargetOutputLocation();
         new File(targetOutputLocation).mkdirs();
 
-        String fileName = targetOutputLocation + "/" + classname + CUtils.getHeaderFileExtension();
+        String fileName = targetOutputLocation + "/" + c_classname + CUtils.getHeaderFileExtension();
 
         if (useServiceName)
         {
             fileName = targetOutputLocation + "/"
                     + this.wscontext.getServiceInfo().getServicename() + "_"
-                    + classname + CUtils.getHeaderFileExtension();
+                    + c_classname + CUtils.getHeaderFileExtension();
         }
 
         return new File(fileName);
@@ -496,20 +496,20 @@
                     || (type.isAnonymous() && !type.isExternalized()))
                 return;
             
-            String typeName = classname;
+            String typeName = c_classname;
             
-            writer.write("\n");
-            writer.write("/* ********************************************************************* */\n");
-            writer.write("/* --- Functions to create/delete, serialize/deserialize custom type --- */\n");
-            writer.write("/* ********************************************************************* */\n");
-            writer.write("\n");  
+            c_writer.write("\n");
+            c_writer.write("/* ********************************************************************* */\n");
+            c_writer.write("/* --- Functions to create/delete, serialize/deserialize custom type --- */\n");
+            c_writer.write("/* ********************************************************************* */\n");
+            c_writer.write("\n");  
             
-            writer.write("extern int Axis_DeSerialize_" + typeName
+            c_writer.write("extern int Axis_DeSerialize_" + typeName
                     + "(" + typeName + "* param, IWrapperSoapDeSerializer* pDZ);\n");
-            writer.write("extern void* Axis_Create_" + typeName + "(int nSize=0);\n");
-            writer.write("extern void Axis_Delete_" + typeName + "("
+            c_writer.write("extern void* Axis_Create_" + typeName + "(int nSize=0);\n");
+            c_writer.write("extern void Axis_Delete_" + typeName + "("
                     + typeName + "* param, int nSize=0);\n");
-            writer.write("extern int Axis_Serialize_" + typeName + "("
+            c_writer.write("extern int Axis_Serialize_" + typeName + "("
                     + typeName + "* param, IWrapperSoapSerializer* pSZ, bool bArray = false);\n\n");
 
         }
@@ -528,20 +528,20 @@
     {
         try
         {
-            writer.write("#include <axis/AxisUserAPI.hpp>\n");
-            writer.write("#include <axis/AxisUserAPIArrays.hpp>\n");
-            writer.write("#include <axis/IWrapperSoapDeSerializer.hpp>\n");
-            writer.write("#include <axis/IWrapperSoapSerializer.hpp>\n");
+            c_writer.write("#include <axis/AxisUserAPI.hpp>\n");
+            c_writer.write("#include <axis/AxisUserAPIArrays.hpp>\n");
+            c_writer.write("#include <axis/IWrapperSoapDeSerializer.hpp>\n");
+            c_writer.write("#include <axis/IWrapperSoapSerializer.hpp>\n");
 
             
             if (this.type.isFault())
             {
-                writer.write("#include <axis/SoapFaultException.hpp>\n");
-                writer.write("\n");
-                writer.write("using namespace std;\n");
+                c_writer.write("#include <axis/SoapFaultException.hpp>\n");
+                c_writer.write("\n");
+                c_writer.write("using namespace std;\n");
             }
             
-            writer.write("AXIS_CPP_NAMESPACE_USE \n\n");
+            c_writer.write("AXIS_CPP_NAMESPACE_USE \n\n");
             HashSet typeSet = new HashSet();
             for (int i = 0; i < attribs.length; i++)
             {
@@ -576,22 +576,22 @@
             
             Iterator itr = typeSet.iterator();
              if (itr.hasNext())
-                writer.write("\n"); 
+                c_writer.write("\n"); 
                 
             while (itr.hasNext())
             {
                 // Do not want to include the header file we are generating!
                 String includeFile = itr.next().toString();
-                if (!includeFile.equals(classname))                
-                    writer.write("#include \"" + includeFile + CUtils.getHeaderFileExtension() + "\"\n");
+                if (!includeFile.equals(c_classname))                
+                    c_writer.write("#include \"" + includeFile + CUtils.getHeaderFileExtension() + "\"\n");
             }
 
-            writer.write("\n");
+            c_writer.write("\n");
             //Local name and the URI for the type
-            writer.write("/*Local name and the URI for the type*/\n");
-            writer.write("static const char Axis_URI_" + classname + "[] = \""
+            c_writer.write("/*Local name and the URI for the type*/\n");
+            c_writer.write("static const char Axis_URI_" + c_classname + "[] = \""
                     + type.getName().getNamespaceURI() + "\";\n");
-            writer.write("static const char Axis_TypeName_" + classname
+            c_writer.write("static const char Axis_TypeName_" + c_classname
                     + "[] = \"" + type.getName().getLocalPart() + "\";\n\n");
 
             // Define class to avoid compilation issues (cycle in includes).
@@ -610,7 +610,7 @@
             itr = typeSet.iterator();
             while (itr.hasNext())
             {
-                writer.write("class " + itr.next().toString() + ";\n");
+                c_writer.write("class " + itr.next().toString() + ";\n");
             }
 
         } 

Modified: webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/ServiceHeaderWriter.java
URL: http://svn.apache.org/viewvc/webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/ServiceHeaderWriter.java?rev=688130&r1=688129&r2=688130&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/ServiceHeaderWriter.java (original)
+++ webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/ServiceHeaderWriter.java Fri Aug 22 10:37:39 2008
@@ -52,18 +52,18 @@
     {
         try
         {
-            writer.write("/*\n");
-            writer.write(
+            c_writer.write("/*\n");
+            c_writer.write(
                 " * This is the Service Class genarated by the tool WSDL2Ws\n");
-            writer.write(
+            c_writer.write(
                 " * "
-                    + classname
+                    + c_classname
                     + CUtils.getHeaderFileExtension()
                     + ": interface for the "
-                    + classname
+                    + c_classname
                     + "class.\n");
-            writer.write(" *\n");
-            writer.write(" */\n");
+            c_writer.write(" *\n");
+            c_writer.write(" */\n");
         }
         catch (IOException e)
         {
@@ -78,7 +78,7 @@
     {
         try
         {
-            writer.write("\tpublic:\n\t\t" + classname + "();\n");
+            c_writer.write("\tpublic:\n\t\t" + c_classname + "();\n");
         }
         catch (IOException e)
         {
@@ -93,7 +93,7 @@
     {
         try
         {
-            writer.write("\tpublic:\n\t\tvirtual ~" + classname + "();\n");
+            c_writer.write("\tpublic:\n\t\tvirtual ~" + c_classname + "();\n");
         }
         catch (IOException e)
         {
@@ -109,8 +109,8 @@
         MethodInfo minfo;
         try
         {
-            writer.write("\tpublic: \n");
-            writer.write("\t\tvoid onFault();\n");
+            c_writer.write("\tpublic: \n");
+            c_writer.write("\t\tvoid onFault();\n");
             //writer.write("\t\tvoid init();\n");
             //writer.write("\t\tvoid fini();\n");
             for (int i = 0; i < methods.size(); i++)
@@ -122,7 +122,7 @@
                 if (0 == noOfOutParams)
                 {
                     returntype = null;
-                    writer.write("\t\tvoid ");
+                    c_writer.write("\t\tvoid ");
                 }
                 else
                 {
@@ -141,14 +141,14 @@
     							&& (returntype.isNillable() || returntype.isOptional())
     							&& !(CUtils.isPointerType(returnTypeName))))
                         {
-                        	writer.write(
+                        	c_writer.write(
     	                            "\t\t"
     	                                + returnType
     	                                + " * ");
                         }
                         else
                         {
-	                        writer.write(
+	                        c_writer.write(
 	                            "\t\t"
 	                                + returnType
 	                                + " ");
@@ -157,11 +157,11 @@
                     else
                     {
                         isAllTreatedAsOutParams = true;
-                        writer.write("\t\tvoid ");
+                        c_writer.write("\t\tvoid ");
                     }
                 }
                 //write return type
-                writer.write(minfo.getMethodname() + "(");
+                c_writer.write(minfo.getMethodname() + "(");
                 //write parameter names 
                 
                 boolean hasInputParms = false;
@@ -175,21 +175,21 @@
                     
                     if (fparam.getType().isAttachment())
                     {
-                    	writer.write("ISoapAttachment *Value" + 0);
+                    	c_writer.write("ISoapAttachment *Value" + 0);
                     }
                     
                     else if ((paramType.lastIndexOf ("_Array") > 0)||(CUtils.isSimpleType(paramTypeName)
                     		&& (fparam.isNillable() || fparam.isOptional())
 							&& !(CUtils.isPointerType(paramTypeName))))
                     {
-                    	writer.write(
+                    	c_writer.write(
                     			paramType
     	                            + " * Value"
     	                            + 0);
                     }
                     else
                     {
-	                    writer.write(
+	                    c_writer.write(
 	                            CUtils
 	                            .getClassNameFromParamInfoConsideringArrays(
 	                            fparam,
@@ -207,14 +207,14 @@
                     
                     if (nparam.getType().isAttachment())
                     {
-                    	writer.write(", ISoapAttachment *Value" + j);
+                    	c_writer.write(", ISoapAttachment *Value" + j);
                     }
                                         
                     else if ((typeName.lastIndexOf ("_Array") > 0)||(CUtils.isSimpleType(paramTypeName)
                     		&& (nparam.isNillable()|| nparam.isOptional())
 							&& !(CUtils.isPointerType(paramTypeName))))
                     {
-                    	writer.write(
+                    	c_writer.write(
     	                        ","
     	                            + typeName
     	                            + " * Value"
@@ -222,7 +222,7 @@
                     }
                     else
                     {
-	                    writer.write(
+	                    c_writer.write(
 	                        ","
 	                            + typeName
 	                            + " Value"
@@ -238,13 +238,13 @@
                         
                         if (0 != j || hasInputParms)
                         {
-                            writer.write(",");
+                            c_writer.write(",");
                         }
                         
                         String typeName = CUtils.getClassNameFromParamInfoConsideringArrays(
                                         	nparam, wscontext);
                         
-                        writer.write(" AXIS_OUT_PARAM "
+                        c_writer.write(" AXIS_OUT_PARAM "
                                 + typeName + " ");
                         
                         
@@ -254,13 +254,13 @@
                                 && !CUtils.isPointerType(typeName)
                                 && !nparam.isArray())
                         {
-                            writer.write("*");
+                            c_writer.write("*");
                         }
                         
-                        writer.write("* OutValue" + j);
+                        c_writer.write("* OutValue" + j);
                     }
                 }
-                writer.write(");\n");
+                c_writer.write(");\n");
             }
         }
         catch (Exception e)
@@ -281,10 +281,10 @@
             HashSet typeSet = new HashSet();
             HashSet removeSet = new HashSet();
             
-            writer.write("#include <axis/AxisUserAPI.hpp>\n");
-            writer.write("#include <axis/AxisUserAPIArrays.hpp>\n");
-            writer.write("#include <axis/ISoapAttachment.hpp>\n");
-            writer.write("#include \"AxisServiceException.hpp\" \n\n");
+            c_writer.write("#include <axis/AxisUserAPI.hpp>\n");
+            c_writer.write("#include <axis/AxisUserAPIArrays.hpp>\n");
+            c_writer.write("#include <axis/ISoapAttachment.hpp>\n");
+            c_writer.write("#include \"AxisServiceException.hpp\" \n\n");
             String typeName = null;
             while (types.hasNext())
             {
@@ -308,10 +308,10 @@
             Iterator itr = typeSet.iterator();
             while (itr.hasNext())
             {
-                writer.write("#include \"" + itr.next().toString() + CUtils.getHeaderFileExtension() + "\"\n");
+                c_writer.write("#include \"" + itr.next().toString() + CUtils.getHeaderFileExtension() + "\"\n");
             }
             //writeFaultHeaders();
-            writer.write("\n");
+            c_writer.write("\n");
         }
         catch (IOException e)
         {
@@ -337,7 +337,7 @@
                 {
                     FaultInfo info = (FaultInfo) fault.next();
                     faultInfoName = info.getFaultInfo();
-                    writer.write(
+                    c_writer.write(
                         "#include \"Axis"
                             + faultInfoName.toString()
                             + "Exception"
@@ -345,7 +345,7 @@
                             + "\"\n");
                 }
             }
-            writer.write("\n");
+            c_writer.write("\n");
         }
         catch (IOException e)
         {

Modified: webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/ServiceWriter.java
URL: http://svn.apache.org/viewvc/webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/ServiceWriter.java?rev=688130&r1=688129&r2=688130&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/ServiceWriter.java (original)
+++ webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/ServiceWriter.java Fri Aug 22 10:37:39 2008
@@ -53,24 +53,24 @@
     {
         try
         {
-            writer.write("/*\n");
-			writer.write(" * Copyright 2003-2006 The Apache Software Foundation.\n\n");
-			writer.write(" *\n");
-			writer.write(" * Licensed under the Apache License, Version 2.0 (the \"License\");\n");
-			writer.write(" * you may not use this file except in compliance with the License.\n");
-			writer.write(" * You may obtain a copy of the License at\n");
-			writer.write(" *\n");
-			writer.write(" *\t\thttp://www.apache.org/licenses/LICENSE-2.0\n");
-			writer.write(" *\n");
-			writer.write(" * Unless required by applicable law or agreed to in writing, software\n");
-			writer.write(" * distributed under the License is distributed on an \"AS IS\" BASIS,\n");
-			writer.write(" * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n");
-			writer.write(" * See the License for the specific language governing permissions and\n");
-			writer.write(" * limitations under the License.\n");
-			writer.write(" *\n");
-            writer.write(" * This file was auto-generated by the Axis C++ Web Service Generator (WSDL2Ws)\n");
-            writer.write(" * This file contains definitions of the web service\n");
-            writer.write(" */\n\n");
+            c_writer.write("/*\n");
+			c_writer.write(" * Copyright 2003-2006 The Apache Software Foundation.\n\n");
+			c_writer.write(" *\n");
+			c_writer.write(" * Licensed under the Apache License, Version 2.0 (the \"License\");\n");
+			c_writer.write(" * you may not use this file except in compliance with the License.\n");
+			c_writer.write(" * You may obtain a copy of the License at\n");
+			c_writer.write(" *\n");
+			c_writer.write(" *\t\thttp://www.apache.org/licenses/LICENSE-2.0\n");
+			c_writer.write(" *\n");
+			c_writer.write(" * Unless required by applicable law or agreed to in writing, software\n");
+			c_writer.write(" * distributed under the License is distributed on an \"AS IS\" BASIS,\n");
+			c_writer.write(" * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n");
+			c_writer.write(" * See the License for the specific language governing permissions and\n");
+			c_writer.write(" * limitations under the License.\n");
+			c_writer.write(" *\n");
+            c_writer.write(" * This file was auto-generated by the Axis C++ Web Service Generator (WSDL2Ws)\n");
+            c_writer.write(" * This file contains definitions of the web service\n");
+            c_writer.write(" */\n\n");
         }
         catch (IOException e)
         {
@@ -85,8 +85,8 @@
     {
         try
         {
-            writer.write("\n" + classname + "::\n" + classname + "()\n{\n");
-            writer.write("}\n");
+            c_writer.write("\n" + c_classname + "::\n" + c_classname + "()\n{\n");
+            c_writer.write("}\n");
         }
         catch (IOException e)
         {
@@ -101,8 +101,8 @@
     {
         try
         {
-            writer.write("\n" + classname + "::\n~" + classname + "()\n{\n");
-            writer.write("}\n");
+            c_writer.write("\n" + c_classname + "::\n~" + c_classname + "()\n{\n");
+            c_writer.write("}\n");
         }
         catch (IOException e)
         {
@@ -118,11 +118,11 @@
         MethodInfo minfo;
         try
         {
-            writer.write(
+            c_writer.write(
                 "\n/* This function is called by the AxisEngine when something went wrong"
                     + "\n with the current web service request processing. Appropriate actions should"
                     + "\n be taken here.*/");
-            writer.write("\nvoid " + classname + "::\nonFault()\n{\n}");
+            c_writer.write("\nvoid " + c_classname + "::\nonFault()\n{\n}");
             /*writer.write(
                 "\n/* This function is called by the AxisEngine when this web service"
                     + "\n library is first loaded. So here we can initialize any global/static"
@@ -133,7 +133,7 @@
                     + "\n library is unloaded. So we can deallocate any global/static data structures"
                     + "\n and close database connections etc here. *//*");
             writer.write("\nvoid " + classname + "::\nfini()\n{\n}");*/
-            writer.write("\n\n");
+            c_writer.write("\n\n");
             for (int i = 0; i < methods.size(); i++)
             {
                 minfo = (MethodInfo) this.methods.get(i);
@@ -143,7 +143,7 @@
                 if (0 == noOfOutParams)
                 {
                     returntype = null;
-                    writer.write("void ");
+                    c_writer.write("void ");
                 }
                 else
                 {
@@ -160,13 +160,13 @@
                         		&& (returntype.isNillable()|| returntype.isOptional())
 								&& !(CUtils.isPointerType(returnTypeName))))
                         {
-                        	writer.write(
+                        	c_writer.write(
                         			returnType
     	                                + " * ");
                         }
                         else
                         {
-	                        writer.write(
+	                        c_writer.write(
 	                        		returnType
 	                                + " ");
                         }
@@ -174,10 +174,10 @@
                     else
                     {
                         isAllTreatedAsOutParams = true;
-                        writer.write("void ");
+                        c_writer.write("void ");
                     }
                 }
-                writer.write(classname + "::\n" + minfo.getMethodname() + "(");
+                c_writer.write(c_classname + "::\n" + minfo.getMethodname() + "(");
                 //write parameter names 
                 
                 boolean hasInputParms = false;
@@ -191,21 +191,21 @@
                     
                     if (fparam.getType().isAttachment())
                     {
-                    	writer.write("ISoapAttachment *Value" + 0);
+                    	c_writer.write("ISoapAttachment *Value" + 0);
                     }
                     
                     else if ((fparamType.lastIndexOf ("_Array") > 0)||(CUtils.isSimpleType(fparamTypeName)
 							&& (fparam.isNillable()|| fparam.isOptional())
 							&& !(CUtils.isPointerType(fparamTypeName))))
                     {
-                    	writer.write(
+                    	c_writer.write(
                     			fparamType
     	                            + " * Value"
     	                            + 0);
                     }
                     else
                     {
-	                    writer.write(
+	                    c_writer.write(
 	                    		fparamType
 	                            + " Value"
 	                            + 0);
@@ -219,14 +219,14 @@
                     
                     if (nparam.getType().isAttachment())
                     {
-                    	writer.write(", ISoapAttachment *Value" + j);
+                    	c_writer.write(", ISoapAttachment *Value" + j);
                     }
                                         
                     else if ((paramType.lastIndexOf ("_Array") > 0)||(CUtils.isSimpleType(paramTypeName)
                     		&& (nparam.isNillable()|| nparam.isOptional())
 							&& !(CUtils.isPointerType(paramTypeName))))
                     {
-                    	writer.write(
+                    	c_writer.write(
     	                        ","
     	                            + paramType
     	                            + " * Value"
@@ -234,7 +234,7 @@
                     }
                     else
                     {
-	                    writer.write(
+	                    c_writer.write(
 	                        ","
 	                            + paramType
 	                            + " Value"
@@ -250,13 +250,13 @@
                         
                         if (0 != j || hasInputParms)
                         {
-                            writer.write(",");
+                            c_writer.write(",");
                         }
                         
                         String typeName = CUtils.getClassNameFromParamInfoConsideringArrays(
                                         	nparam, wscontext);
                         
-                        writer.write(" AXIS_OUT_PARAM "
+                        c_writer.write(" AXIS_OUT_PARAM "
                                 + typeName + " ");
                         
                         
@@ -266,13 +266,13 @@
                                 && !CUtils.isPointerType(typeName)
                                 && !nparam.isArray())
                         {
-                            writer.write("*");
+                            c_writer.write("*");
                         }
                         
-                        writer.write("* OutValue" + j);
+                        c_writer.write("* OutValue" + j);
                     }
                 }
-                writer.write(")  \n{\n}\n\n");
+                c_writer.write(")  \n{\n}\n\n");
 
             }
         }
@@ -289,9 +289,9 @@
     {
         try
         {
-            writer.write(
+            c_writer.write(
                 "#include \""
-                    + classname
+                    + c_classname
                     + CUtils.getHeaderFileExtension()
                     + "\"\n\n");
         }

Modified: webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/WrapHeaderWriter.java
URL: http://svn.apache.org/viewvc/webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/WrapHeaderWriter.java?rev=688130&r1=688129&r2=688130&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/WrapHeaderWriter.java (original)
+++ webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/WrapHeaderWriter.java Fri Aug 22 10:37:39 2008
@@ -48,24 +48,24 @@
     {
         try
         {
-            writer.write("/*\n");
-			writer.write(" * Copyright 2003-2006 The Apache Software Foundation.\n\n");
-			writer.write(" *\n");
-			writer.write(" * Licensed under the Apache License, Version 2.0 (the \"License\");\n");
-			writer.write(" * you may not use this file except in compliance with the License.\n");
-			writer.write(" * You may obtain a copy of the License at\n");
-			writer.write(" *\n");
-			writer.write(" *\t\thttp://www.apache.org/licenses/LICENSE-2.0\n");
-			writer.write(" *\n");
-			writer.write(" * Unless required by applicable law or agreed to in writing, software\n");
-			writer.write(" * distributed under the License is distributed on an \"AS IS\" BASIS,\n");
-			writer.write(" * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n");
-			writer.write(" * See the License for the specific language governing permissions and\n");
-			writer.write(" * limitations under the License.\n");
-			writer.write(" *\n");
-            writer.write(" * This file was auto-generated by the Axis C++ Web Service Generator (WSDL2Ws)\n");
-            writer.write(" * This file contains Web Service Wrapper declarations\n");
-            writer.write(" */\n\n");
+            c_writer.write("/*\n");
+			c_writer.write(" * Copyright 2003-2006 The Apache Software Foundation.\n\n");
+			c_writer.write(" *\n");
+			c_writer.write(" * Licensed under the Apache License, Version 2.0 (the \"License\");\n");
+			c_writer.write(" * you may not use this file except in compliance with the License.\n");
+			c_writer.write(" * You may obtain a copy of the License at\n");
+			c_writer.write(" *\n");
+			c_writer.write(" *\t\thttp://www.apache.org/licenses/LICENSE-2.0\n");
+			c_writer.write(" *\n");
+			c_writer.write(" * Unless required by applicable law or agreed to in writing, software\n");
+			c_writer.write(" * distributed under the License is distributed on an \"AS IS\" BASIS,\n");
+			c_writer.write(" * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n");
+			c_writer.write(" * See the License for the specific language governing permissions and\n");
+			c_writer.write(" * limitations under the License.\n");
+			c_writer.write(" *\n");
+            c_writer.write(" * This file was auto-generated by the Axis C++ Web Service Generator (WSDL2Ws)\n");
+            c_writer.write(" * This file contains Web Service Wrapper declarations\n");
+            c_writer.write(" */\n\n");
         }
         catch (IOException e)
         {
@@ -80,7 +80,7 @@
     {
         try
         {
-            writer.write("public:\n\t" + classname + "();\n");
+            c_writer.write("public:\n\t" + c_classname + "();\n");
         }
         catch (IOException e)
         {
@@ -95,7 +95,7 @@
     {
         try
         {
-            writer.write("public:\n\tvirtual ~" + classname + "();\n");
+            c_writer.write("public:\n\tvirtual ~" + c_classname + "();\n");
         }
         catch (IOException e)
         {
@@ -110,25 +110,25 @@
     {
         try
         {
-            writer.write(
+            c_writer.write(
                 "public:/*implementation of WrapperClassHandler interface*/\n");
-            writer.write("\tint AXISCALL invoke(void* pMsg);\n");
-            writer.write("\tvoid AXISCALL onFault(void* pMsg);\n");
+            c_writer.write("\tint AXISCALL invoke(void* pMsg);\n");
+            c_writer.write("\tvoid AXISCALL onFault(void* pMsg);\n");
             //writer.write("\tint AXISCALL init();\n");
             //writer.write("\tint AXISCALL fini();\n");
-            writer.write(
+            c_writer.write(
                 "\tAXIS_BINDING_STYLE AXISCALL getBindingStyle(){return "
                     + bindingStyle
                     + ";};\n");
-            writer.write(
+            c_writer.write(
                 "private:/*Methods corresponding to the web service methods*/\n");
             MethodInfo minfo;
             for (int i = 0; i < methods.size(); i++)
             {
                 minfo = (MethodInfo) methods.get(i);
-                writer.write(
+                c_writer.write(
                     "\tint " + minfo.getMethodname() + "(void* pMsg);");
-                writer.write("\n");
+                c_writer.write("\n");
             }
 
         }
@@ -145,19 +145,19 @@
     {
         try
         {
-            writer.write("#include <axis/server/WrapperClassHandler.hpp>\n");
-            writer.write("#include <axis/IMessageData.hpp>\n");
-            writer.write("#include <axis/GDefine.hpp>\n");
-            writer.write("#include <axis/Axis.hpp>\n");
-            writer.write("#include <axis/AxisWrapperAPI.hpp>\n");
-            writer.write("#include <axis/OtherFaultException.hpp>\n\n");
+            c_writer.write("#include <axis/server/WrapperClassHandler.hpp>\n");
+            c_writer.write("#include <axis/IMessageData.hpp>\n");
+            c_writer.write("#include <axis/GDefine.hpp>\n");
+            c_writer.write("#include <axis/Axis.hpp>\n");
+            c_writer.write("#include <axis/AxisWrapperAPI.hpp>\n");
+            c_writer.write("#include <axis/OtherFaultException.hpp>\n\n");
             
-            writer.write("#include \""
-                        + CUtils.getWebServiceNameFromWrapperName(classname)
+            c_writer.write("#include \""
+                        + CUtils.getWebServiceNameFromWrapperName(c_classname)
                         + CUtils.getHeaderFileExtension()
                         + "\"\n");
-            writer.write("#include \"AxisServiceException.hpp\" \n\n");
-            writer.write("AXIS_CPP_NAMESPACE_USE \n\n");
+            c_writer.write("#include \"AxisServiceException.hpp\" \n\n");
+            c_writer.write("AXIS_CPP_NAMESPACE_USE \n\n");
             //writeFaultHeaders();
 
         }
@@ -184,7 +184,7 @@
                 {
                     FaultInfo info = (FaultInfo) fault.next();
                     faultInfoName = info.getFaultInfo();
-                    writer.write(
+                    c_writer.write(
                         "#include \"Axis"
                             + faultInfoName.toString()
                             + "Exception"
@@ -192,7 +192,7 @@
                             + "\"\n");
                 }
             }
-            writer.write("\n");
+            c_writer.write("\n");
         }
         catch (IOException e)
         {
@@ -207,9 +207,9 @@
     {
         try
         {
-            writer.write(
+            c_writer.write(
                 "private:/* Actual web service object*/\n\t"
-                    + CUtils.getWebServiceNameFromWrapperName(classname)
+                    + CUtils.getWebServiceNameFromWrapperName(c_classname)
                     + " *pWs;\n");
         }
         catch (IOException e)

Modified: webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/WrapWriter.java
URL: http://svn.apache.org/viewvc/webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/WrapWriter.java?rev=688130&r1=688129&r2=688130&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/WrapWriter.java (original)
+++ webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/WrapWriter.java Fri Aug 22 10:37:39 2008
@@ -50,24 +50,24 @@
     {
         try
         {
-            writer.write("/*\n");
-			writer.write(" * Copyright 2003-2006 The Apache Software Foundation.\n\n");
-			writer.write(" *\n");
-			writer.write(" * Licensed under the Apache License, Version 2.0 (the \"License\");\n");
-			writer.write(" * you may not use this file except in compliance with the License.\n");
-			writer.write(" * You may obtain a copy of the License at\n");
-			writer.write(" *\n");
-			writer.write(" *\t\thttp://www.apache.org/licenses/LICENSE-2.0\n");
-			writer.write(" *\n");
-			writer.write(" * Unless required by applicable law or agreed to in writing, software\n");
-			writer.write(" * distributed under the License is distributed on an \"AS IS\" BASIS,\n");
-			writer.write(" * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n");
-			writer.write(" * See the License for the specific language governing permissions and\n");
-			writer.write(" * limitations under the License.\n");
-			writer.write(" *\n");
-            writer.write(" * This file was auto-generated by the Axis C++ Web Service Generator (WSDL2Ws)\n");
-            writer.write(" * This file contains Web Service Wrapper implementations\n");
-            writer.write(" */\n\n");
+            c_writer.write("/*\n");
+			c_writer.write(" * Copyright 2003-2006 The Apache Software Foundation.\n\n");
+			c_writer.write(" *\n");
+			c_writer.write(" * Licensed under the Apache License, Version 2.0 (the \"License\");\n");
+			c_writer.write(" * you may not use this file except in compliance with the License.\n");
+			c_writer.write(" * You may obtain a copy of the License at\n");
+			c_writer.write(" *\n");
+			c_writer.write(" *\t\thttp://www.apache.org/licenses/LICENSE-2.0\n");
+			c_writer.write(" *\n");
+			c_writer.write(" * Unless required by applicable law or agreed to in writing, software\n");
+			c_writer.write(" * distributed under the License is distributed on an \"AS IS\" BASIS,\n");
+			c_writer.write(" * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n");
+			c_writer.write(" * See the License for the specific language governing permissions and\n");
+			c_writer.write(" * limitations under the License.\n");
+			c_writer.write(" *\n");
+            c_writer.write(" * This file was auto-generated by the Axis C++ Web Service Generator (WSDL2Ws)\n");
+            c_writer.write(" * This file contains Web Service Wrapper implementations\n");
+            c_writer.write(" */\n\n");
         }
         catch (IOException e)
         {
@@ -82,12 +82,12 @@
     {
         try
         {
-            writer.write(classname + "::\n" + classname + "()\n{\n");
-            writer.write(
+            c_writer.write(c_classname + "::\n" + c_classname + "()\n{\n");
+            c_writer.write(
                 "\tpWs = new "
-                    + CUtils.getWebServiceNameFromWrapperName(classname)
+                    + CUtils.getWebServiceNameFromWrapperName(c_classname)
                     + "();\n");
-            writer.write("}\n\n");
+            c_writer.write("}\n\n");
         }
         catch (IOException e)
         {
@@ -102,8 +102,8 @@
     {
         try
         {
-            writer.write(
-                classname + "::\n~" + classname + "()\n{\n\tdelete pWs;\n}\n\n");
+            c_writer.write(
+                c_classname + "::\n~" + c_classname + "()\n{\n\tdelete pWs;\n}\n\n");
         }
         catch (IOException e)
         {
@@ -118,12 +118,12 @@
     {
         try
         {
-            CUtils.printMethodComment(writer, "This method handles faults.");
+            CUtils.printMethodComment(c_writer, "This method handles faults.");
 
 
-            writer.write(
+            c_writer.write(
                 "void "
-                    + classname
+                    + c_classname
                     + "::\nonFault(void *pMsg)\n{"
                     + "\n\tpWs->onFault();\n}\n\n");
 
@@ -134,7 +134,7 @@
             {
                 minfo = (MethodInfo) methods.get(i);
                 this.writeMethodInWrapper(minfo);
-                writer.write("\n");
+                c_writer.write("\n");
             }
 
         }
@@ -151,9 +151,9 @@
     {
         try
         {
-            writer.write(
+            c_writer.write(
                 "#include \""
-                    + classname
+                    + c_classname
                     + CUtils.getHeaderFileExtension()
                     + "\"\n\n");
         }
@@ -169,36 +169,36 @@
      */
     private void writeInvoke() throws IOException
     {
-        CUtils.printMethodComment(writer, "This method invokes the right service method.");
+        CUtils.printMethodComment(c_writer, "This method invokes the right service method.");
 
-        writer.write("int " + classname + "::\ninvoke(void *pMsg)\n{\n");
-        writer.write("\tIMessageData* mc = (IMessageData*)pMsg;\n");
-        writer.write("\tconst AxisChar *method = mc->getOperationName();\n");
+        c_writer.write("int " + c_classname + "::\ninvoke(void *pMsg)\n{\n");
+        c_writer.write("\tIMessageData* mc = (IMessageData*)pMsg;\n");
+        c_writer.write("\tconst AxisChar *method = mc->getOperationName();\n");
         
         //if no methods in the service simply return
         if (methods.size() != 0)
         {
             MethodInfo minfo = (MethodInfo) methods.get(0);
             //if conditions (if parts)		
-            writer.write(
+            c_writer.write(
                 "\tif( (0 == strcmp(method, \"" + minfo.getInputMessage().getLocalPart() + "\")) || (0 == strcmp(method, \"" + minfo.getMethodname() + "\")) )\n");
-            writer.write("\t\treturn " + minfo.getMethodname() + "(mc);\n");
+            c_writer.write("\t\treturn " + minfo.getMethodname() + "(mc);\n");
             //(else if parts)
             if (methods.size() > 1)
             {
                 for (int i = 1; i < methods.size(); i++)
                 {
                     minfo = (MethodInfo) methods.get(i);
-                    writer.write(
+                    c_writer.write(
                         "\telse if ( (0 == strcmp(method, \"" + minfo.getInputMessage().getLocalPart() + "\")) || (0 == strcmp(method, \"" + minfo.getMethodname() + "\")) )\n");
-                    writer.write("\t\treturn " + minfo.getMethodname() + "(mc);\n");
+                    c_writer.write("\t\treturn " + minfo.getMethodname() + "(mc);\n");
                 }
             }
             //(else part)
-            writer.write("\telse return AXIS_FAIL;\n");
+            c_writer.write("\telse return AXIS_FAIL;\n");
         }
         //end of method
-        writer.write("}\n\n");
+        c_writer.write("}\n\n");
     }
 
     /**
@@ -259,37 +259,37 @@
                 }
             }
         }
-        writer.write("\n/*\n");
-        writer.write(" * This method wrap the service method \n");
-        writer.write(" */\n");
+        c_writer.write("\n/*\n");
+        c_writer.write(" * This method wrap the service method \n");
+        c_writer.write(" */\n");
         //method signature
-        writer.write(
-            "int " + classname + "::\n" + methodName + "(void* pMsg)\n{\n");
-        writer.write("\tIMessageData* mc = (IMessageData*)pMsg;\n");
-        writer.write("\tint nStatus;\n");
-        writer.write("\tIWrapperSoapSerializer* pIWSSZ = NULL;\n");
-        writer.write("\tmc->getSoapSerializer(&pIWSSZ);\n");
-        writer.write("\tif (!pIWSSZ)\n");
-        writer.write("\t{\n");
-        writer.write("\t\treturn AXIS_FAIL;\n");
-        writer.write("\t}\n");
-        writer.write("\tIWrapperSoapDeSerializer* pIWSDZ = NULL;\n");
-        writer.write("\tmc->getSoapDeSerializer(&pIWSDZ);\n");
-        writer.write("\tif (!pIWSDZ)\n");
-        writer.write("\t{\n");
-        writer.write("\t\treturn AXIS_FAIL;\n");
-        writer.write("\t}\n");
-        writer.write("\t/* check whether we have got correct message */\n");
-        writer.write(
+        c_writer.write(
+            "int " + c_classname + "::\n" + methodName + "(void* pMsg)\n{\n");
+        c_writer.write("\tIMessageData* mc = (IMessageData*)pMsg;\n");
+        c_writer.write("\tint nStatus;\n");
+        c_writer.write("\tIWrapperSoapSerializer* pIWSSZ = NULL;\n");
+        c_writer.write("\tmc->getSoapSerializer(&pIWSSZ);\n");
+        c_writer.write("\tif (!pIWSSZ)\n");
+        c_writer.write("\t{\n");
+        c_writer.write("\t\treturn AXIS_FAIL;\n");
+        c_writer.write("\t}\n");
+        c_writer.write("\tIWrapperSoapDeSerializer* pIWSDZ = NULL;\n");
+        c_writer.write("\tmc->getSoapDeSerializer(&pIWSDZ);\n");
+        c_writer.write("\tif (!pIWSDZ)\n");
+        c_writer.write("\t{\n");
+        c_writer.write("\t\treturn AXIS_FAIL;\n");
+        c_writer.write("\t}\n");
+        c_writer.write("\t/* check whether we have got correct message */\n");
+        c_writer.write(
             "\tif (AXIS_SUCCESS != pIWSDZ->checkMessageBody(\""
                 + minfo.getMethodname()
                 + "\", \""
                 + wscontext.getWrapperInfo().getTargetNameSpaceOfWSDL()
                 + "\"))\n");
-        writer.write("\t{\n");
-        writer.write("\t\treturn AXIS_FAIL;\n");
-        writer.write("\t}\n");
-        writer.write(
+        c_writer.write("\t{\n");
+        c_writer.write("\t\treturn AXIS_FAIL;\n");
+        c_writer.write("\t}\n");
+        c_writer.write(
             "\tpIWSSZ->createSoapMethod(\""
         		//Chinthana:Fixed for AXISCPP-378 
                 //+ minfo.getMethodname()
@@ -322,8 +322,8 @@
             	{
             		if (CUtils.isPointerType(param.getLangName()))
             		{
-            		    writer.write("\n\t" + paraTypeName + " v" + i + " = NULL;\n");
-	        			writer.write("\t"
+            		    c_writer.write("\n\t" + paraTypeName + " v" + i + " = NULL;\n");
+	        			c_writer.write("\t"
 	                            + paraTypeName
 	                            + " value"
 	                            + i
@@ -331,17 +331,17 @@
 	                            + CUtils.getDeserializerMethodName(paraTypeName, false)
 	                            + "(\""
 	                            + parameterName + "\",0);\n");
-            			writer.write("\tif (value" + i + ")\n");
-            			writer.write("\t{\n");
-            			writer.write("\t\tv" + i + " = new char[ strlen( value" + i + " ) + 1 ];\n");
-            			writer.write("\t\tstrcpy( v" + i + ", value" + i + " );\n");
-            			writer.write("\t\tAxis::AxisDelete( (void *) value" + i + ", " + CUtils.getXSDEnumeratorForType(paraTypeName) + ");\n");
-            			writer.write("\t}\n");
+            			c_writer.write("\tif (value" + i + ")\n");
+            			c_writer.write("\t{\n");
+            			c_writer.write("\t\tv" + i + " = new char[ strlen( value" + i + " ) + 1 ];\n");
+            			c_writer.write("\t\tstrcpy( v" + i + ", value" + i + " );\n");
+            			c_writer.write("\t\tAxis::AxisDelete( (void *) value" + i + ", " + CUtils.getXSDEnumeratorForType(paraTypeName) + ");\n");
+            			c_writer.write("\t}\n");
         			}
             		else
             		{
-            		    writer.write("\n\t" + paraTypeName + " * v" + i + " = NULL;\n");
-            			writer.write("\t"
+            		    c_writer.write("\n\t" + paraTypeName + " * v" + i + " = NULL;\n");
+            			c_writer.write("\t"
 								+ paraTypeName
 								+ "* pValue"
 								+ i
@@ -349,20 +349,20 @@
 								+ CUtils.getDeserializerMethodName(paraTypeName, false)
 								+ "(\""
 								+ parameterName + "\",0);\n");
-            			writer.write("\tif (pValue" + i + ")\n");
-            			writer.write("\t{\n");
-            			writer.write("\t\tv" + i + " = new " + paraTypeName + "();");
-            			writer.write("\t\t*v" + i + " = *pValue" + i + ";\n");
-            			writer.write("\t\tAxis::AxisDelete( (void *) pValue" + i + ", " + CUtils.getXSDEnumeratorForType(paraTypeName) + ");\n");
-            			writer.write("\t}\n");
+            			c_writer.write("\tif (pValue" + i + ")\n");
+            			c_writer.write("\t{\n");
+            			c_writer.write("\t\tv" + i + " = new " + paraTypeName + "();");
+            			c_writer.write("\t\t*v" + i + " = *pValue" + i + ";\n");
+            			c_writer.write("\t\tAxis::AxisDelete( (void *) pValue" + i + ", " + CUtils.getXSDEnumeratorForType(paraTypeName) + ");\n");
+            			c_writer.write("\t}\n");
             		}
             	}
             	else
             	{
             		if (CUtils.isPointerType(param.getLangName()))
             		{
-            		    writer.write("\n\t" + paraTypeName + " v" + i + " = NULL;\n");
-            			writer.write("\t"
+            		    c_writer.write("\n\t" + paraTypeName + " v" + i + " = NULL;\n");
+            			c_writer.write("\t"
                             + paraTypeName
                             + " value"
                             + i
@@ -370,22 +370,22 @@
                             + CUtils.getDeserializerMethodName(paraTypeName, false)
                             + "(\""
                             + parameterName + "\",0);\n");
-            			writer.write("\tif (value" + i + ")\n");
-            			writer.write("\t{\n");
-            			writer.write("\t\tv" + i + " = new char[ strlen( value" + i + " ) + 1 ];\n");
-            			writer.write("\t\tstrcpy( v" + i + ", value" + i + " );\n");
-            			writer.write("\t\tAxis::AxisDelete( (void *) value" + i + ", " + CUtils.getXSDEnumeratorForType(paraTypeName) + ");\n");
-            			writer.write("\t}\n");
+            			c_writer.write("\tif (value" + i + ")\n");
+            			c_writer.write("\t{\n");
+            			c_writer.write("\t\tv" + i + " = new char[ strlen( value" + i + " ) + 1 ];\n");
+            			c_writer.write("\t\tstrcpy( v" + i + ", value" + i + " );\n");
+            			c_writer.write("\t\tAxis::AxisDelete( (void *) value" + i + ", " + CUtils.getXSDEnumeratorForType(paraTypeName) + ");\n");
+            			c_writer.write("\t}\n");
             		}
             		else
             		{
-            		    writer.write("\n\t" + paraTypeName + " v" + i);
+            		    c_writer.write("\n\t" + paraTypeName + " v" + i);
                         String typeInitValue = CUtils.getInitValueForType(paraTypeName);
             		    if (typeInitValue != null)
-            		        writer.write(" = " + typeInitValue);
+            		        c_writer.write(" = " + typeInitValue);
 
-            		    writer.write(";\n");
-	            		writer.write("\t"
+            		    c_writer.write(";\n");
+	            		c_writer.write("\t"
 							+ paraTypeName
 							+ " * pValue"
 							+ i
@@ -393,11 +393,11 @@
 							+ CUtils.getDeserializerMethodName(paraTypeName, false)
 							+ "(\""
 							+ parameterName + "\",0);\n");
-	            		writer.write("\tif (pValue" + i + ")\n");
-	            		writer.write("\t{\n");
-	            		writer.write("\t\tv" + i + " = *pValue" + i + ";\n");
-	            		writer.write("\t\tAxis::AxisDelete( (void *) pValue" + i + ", " + CUtils.getXSDEnumeratorForType(paraTypeName) + " );\n");
-	            		writer.write("\t}\n");
+	            		c_writer.write("\tif (pValue" + i + ")\n");
+	            		c_writer.write("\t{\n");
+	            		c_writer.write("\t\tv" + i + " = *pValue" + i + ";\n");
+	            		c_writer.write("\t\tAxis::AxisDelete( (void *) pValue" + i + ", " + CUtils.getXSDEnumeratorForType(paraTypeName) + " );\n");
+	            		c_writer.write("\t}\n");
             		}
             	}
             }
@@ -414,8 +414,8 @@
                     {
                         containedType = CUtils.getSimpleType(qname);
                         
-                        writer.write("\n\t" + containedType + "_Array * v" + i +" = new " + containedType + "_Array();\n");
-                        writer.write(
+                        c_writer.write("\n\t" + containedType + "_Array * v" + i +" = new " + containedType + "_Array();\n");
+                        c_writer.write(
                             "\t"
                                 + "Axis_Array * RetArray"
                                 + i
@@ -424,14 +424,14 @@
                                 + ", \""
                                 + parameterName
                                 + "\",0);\n");
-                        writer.write ("\tv" + i + "->clone(*RetArray"+ i + ");\n");
-                        writer.write ("\tAxis::AxisDelete( (void *)RetArray" + i + ", XSD_ARRAY);\n\n");
+                        c_writer.write ("\tv" + i + "->clone(*RetArray"+ i + ");\n");
+                        c_writer.write ("\tAxis::AxisDelete( (void *)RetArray" + i + ", XSD_ARRAY);\n\n");
                     }
                     else
                     {
                         containedType = qname.getLocalPart();
-                        writer.write("\t" + containedType + "_Array * v" + i +" = new " + containedType + "_Array();\n");
-                        writer.write(
+                        c_writer.write("\t" + containedType + "_Array * v" + i +" = new " + containedType + "_Array();\n");
+                        c_writer.write(
                             "\t"
                                 + "pIWSDZ->getCmplxArray(v" + i + ", (void*)Axis_DeSerialize_"
                                 + containedType
@@ -449,7 +449,7 @@
                 else
                 {
                     //for complex types 
-                    writer.write(
+                    c_writer.write(
                         "\n\t"
                             + paraTypeName
                             + " *v"
@@ -469,10 +469,10 @@
                             + ");\n");
                 }
         }
-        writer.write("\tif (AXIS_SUCCESS != (nStatus = pIWSDZ->getStatus()))\n");
-        writer.write("\t{\n");
-        writer.write("\t\treturn nStatus;\n");
-        writer.write("\t}\n");
+        c_writer.write("\tif (AXIS_SUCCESS != (nStatus = pIWSDZ->getStatus()))\n");
+        c_writer.write("\t{\n");
+        c_writer.write("\t\treturn nStatus;\n");
+        c_writer.write("\t}\n");
         // Multiples parameters so fill the methods prototype
         if (isAllTreatedAsOutParams)
         {
@@ -482,29 +482,29 @@
                 ParameterInfo param = (ParameterInfo) paramsC.get(i);
                 String typeName = CUtils.getClassNameFromParamInfoConsideringArrays(
                         			(ParameterInfo) paramsC.get(i), wscontext);
-                writer.write("\t" + typeName);
+                c_writer.write("\t" + typeName);
                 
                 if ( (param.isOptional() || param.isNillable()) && CUtils.isSimpleType(typeName) && !CUtils.isPointerType(typeName) && !param.isArray())
                 {
-                    writer.write(" *");
+                    c_writer.write(" *");
                 }
-                writer.write(" out" + i + ";\n");
+                c_writer.write(" out" + i + ";\n");
             }
         }
-        writer.write("\ttry\n\t{\n");
+        c_writer.write("\ttry\n\t{\n");
         if (returntype != null)
         {
         	/* Invoke the service when return type not void */
-        	writer.write("\t\t" + outparamTypeName);
+        	c_writer.write("\t\t" + outparamTypeName);
   
         	if ((outparamTypeName.lastIndexOf ("_Array") > 0)
         		||(returntypeissimple
         			&& returntype.isNillable()
         			&&!(CUtils.isPointerType(outparamTypeName))))
         	{
-        		writer.write(" *");
+        		c_writer.write(" *");
         	}
-            writer.write(" ret = "
+            c_writer.write(" ret = "
                     + "pWs->"
                     + methodName
                     + "(");
@@ -512,18 +512,18 @@
             {
                 for (int i = 0; i < paramsB.size() - 1; i++)
                 {
-                    writer.write("v" + i + ",");
+                    c_writer.write("v" + i + ",");
                 }
-                writer.write("v" + (paramsB.size() - 1));
+                c_writer.write("v" + (paramsB.size() - 1));
             }
-            writer.write(");\n");
+            c_writer.write(");\n");
             /* set the result */
             if (returntypeissimple)
             {
             	if (returntype.isNillable()
             			|| (CUtils.isPointerType(outparamTypeName)))
             	{
-            		writer.write(
+            		c_writer.write(
     	                    "\t\treturn pIWSSZ->addOutputParam(\""
     	                        + methodName
     	                        + "Return\", (void*)ret, "
@@ -532,7 +532,7 @@
             	}
             	else
             	{
-	                writer.write(
+	                c_writer.write(
 	                    "\t\treturn pIWSSZ->addOutputParam(\""
 	                        + methodName
 	                        + "Return\", (void*)&ret, "
@@ -548,19 +548,19 @@
                     if (CUtils.isSimpleType(qname))
                     {
                         containedType = CUtils.getSimpleType(qname);
-                        writer.write(
+                        c_writer.write(
                             "\t\tnStatus = pIWSSZ->addOutputBasicArrayParam(ret,"
                                 + CUtils.getXSDEnumeratorForType(containedType)
                                 + ", \""
                                 + methodName
                                 + "Return\");\n");
-                        writer.write("\t\tdelete ret;\n");
-                        writer.write("\t\t return nStatus;\n");
+                        c_writer.write("\t\tdelete ret;\n");
+                        c_writer.write("\t\t return nStatus;\n");
                     }
                     else
                     {
                         containedType = qname.getLocalPart();
-                        writer.write(
+                        c_writer.write(
                             "\t\tnStatus = pIWSSZ->addOutputCmplxArrayParam(ret,"
                                 + "(void*) Axis_Serialize_"
                                 + containedType
@@ -571,8 +571,8 @@
                                 + "Return\", Axis_URI_"
                                 + containedType
                                 + ");\n");
-                        writer.write("\t\tdelete ret;\n");
-                        writer.write("\t\treturn nStatus;\n");
+                        c_writer.write("\t\tdelete ret;\n");
+                        c_writer.write("\t\treturn nStatus;\n");
                     }
                 }
                 else
@@ -580,7 +580,7 @@
                     //complex type
                     outparamTypeName = returntype.getLangName();
                     //need to have complex type name without *
-                    writer.write(
+                    c_writer.write(
                         "\t\treturn pIWSSZ->addOutputCmplxParam(ret, (void*)Axis_Serialize_"
                             + outparamTypeName
                             + ", (void*)Axis_Delete_"
@@ -595,22 +595,22 @@
         else
             if (isAllTreatedAsOutParams)
             {
-                writer.write("\t\tpWs->" + methodName + "(");
+                c_writer.write("\t\tpWs->" + methodName + "(");
                 if (0 < paramsB.size())
                 {
                     for (int i = 0; i < paramsB.size(); i++)
                     {
-                        writer.write("v" + i + ",");
+                        c_writer.write("v" + i + ",");
                     }
                 }
                 ArrayList paramsC = (ArrayList) minfo.getOutputParameterTypes();
                 for (int i = 0; i < paramsC.size() - 1; i++)
                 {
-                    writer.write("&out" + i + ",");
+                    c_writer.write("&out" + i + ",");
                 }
-                writer.write("&out" + (paramsC.size() - 1));
+                c_writer.write("&out" + (paramsC.size() - 1));
 
-                writer.write(");\n");
+                c_writer.write(");\n");
                 paramsC = (ArrayList) minfo.getOutputParameterTypes();
                 for (int i = 0; i < paramsC.size(); i++)
                 {
@@ -637,11 +637,11 @@
                     	{
                             if (param.isOptional())
                             {
-                                writer.write("\tif (out" + i + ")\n");
-                                writer.write("\t{\n");
-                                writer.write("\t");
+                                c_writer.write("\tif (out" + i + ")\n");
+                                c_writer.write("\t{\n");
+                                c_writer.write("\t");
                             }
-                    		writer.write(
+                    		c_writer.write(
                                     "\tpIWSSZ->addOutputParam(\""
                                         + returnParamName.substring(returnParamName.lastIndexOf(">")+1)
                                         + "\", (void*)out"
@@ -651,12 +651,12 @@
                                         + ");\n");
                     		if (param.isOptional())
                     		{
-                    		    writer.write("\t}\n");
+                    		    c_writer.write("\t}\n");
                     		}
                     	}
                     	else
                     	{
-                    		writer.write(
+                    		c_writer.write(
                                     "\tpIWSSZ->addOutputParam(\""
                     				    + returnParamName.substring(returnParamName.lastIndexOf(">")+1)
                                         + "\", (void*)&out"
@@ -675,7 +675,7 @@
                             if (CUtils.isSimpleType(qname))
                             {
                                 containedType = CUtils.getSimpleType(qname);
-                                writer.write(
+                                c_writer.write(
                                     "\t\tpIWSSZ->addOutputBasicArrayParam((Axis_Array*)(&out"
                                         + i
                                         + "),"
@@ -688,7 +688,7 @@
                             else
                             {
                                 containedType = qname.getLocalPart();
-                                writer.write(
+                                c_writer.write(
                                     "\t\tpIWSSZ->addOutputCmplxArrayParam((Axis_Array*)(&out"
                                         + i
                                         + "),"
@@ -708,11 +708,11 @@
                             //complex type
                             if (param.isOptional())
                             {
-                                writer.write("\tif (out" + i + ")\n");
-                                writer.write("\t{\n");
-                                writer.write("\t");
+                                c_writer.write("\tif (out" + i + ")\n");
+                                c_writer.write("\t{\n");
+                                c_writer.write("\t");
                             }
-                            writer.write(
+                            c_writer.write(
                                 "\t\tpIWSSZ->addOutputCmplxParam(out"
                                     + i
                                     + ", (void*)Axis_Serialize_"
@@ -726,29 +726,29 @@
                                     + ");\n");
                             if (param.isOptional())
                             {
-                                writer.write("\t}\n");
+                                c_writer.write("\t}\n");
                             }
                         }
                 }
-                writer.write("\treturn AXIS_SUCCESS;\n");
+                c_writer.write("\treturn AXIS_SUCCESS;\n");
             }
             else
             { //method does not return anything
                 /* Invoke the service when return type is void */
-                writer.write("\t\tpWs->" + methodName + "(");
+                c_writer.write("\t\tpWs->" + methodName + "(");
                 if (0 < paramsB.size())
                 {
                     for (int i = 0; i < paramsB.size() - 1; i++)
                     {
-                        writer.write("v" + i + ",");
+                        c_writer.write("v" + i + ",");
                     }
-                    writer.write("v" + (paramsB.size() - 1));
+                    c_writer.write("v" + (paramsB.size() - 1));
                 }
-                writer.write(");\n");
-                writer.write("\treturn AXIS_SUCCESS;\n");
+                c_writer.write(");\n");
+                c_writer.write("\treturn AXIS_SUCCESS;\n");
 
             }
-        writer.write("\t}\n"); //nithya          
+        c_writer.write("\t}\n"); //nithya          
         Iterator paramsFault = minfo.getFaultType().iterator();
         String faultInfoName = null;
         String faultType = null;
@@ -773,33 +773,33 @@
         }
         
         // Handle SOAP faults not specified within the WSDL (ie OtherFaultException)
-        writer.write("\tcatch(OtherFaultException * pObjFault)\n");
-        writer.write("\t{\n");
-        writer.write("\t\tif (pObjFault)\n");
-        writer.write("\t\t{\n");
-        writer.write("\t\t\tpIWSSZ->createSoapFault(\"\", \"\", pObjFault->getFaultCode(), pObjFault->getFaultString());\n");
-        writer.write("\t\t\tpIWSSZ->addFaultDetail(pObjFault->getFaultDetail());\n");
-        writer.write("\t\t\tdelete pObjFault;\n");
-        writer.write("\t\t\tthrow AxisServiceException(AXISC_SERVICE_THROWN_EXCEPTION);\n");
-        writer.write("\t\t}\n");
-        writer.write("\t\treturn AXIS_FAIL;\n");
-        writer.write("\t}\n");
+        c_writer.write("\tcatch(OtherFaultException * pObjFault)\n");
+        c_writer.write("\t{\n");
+        c_writer.write("\t\tif (pObjFault)\n");
+        c_writer.write("\t\t{\n");
+        c_writer.write("\t\t\tpIWSSZ->createSoapFault(\"\", \"\", pObjFault->getFaultCode(), pObjFault->getFaultString());\n");
+        c_writer.write("\t\t\tpIWSSZ->addFaultDetail(pObjFault->getFaultDetail());\n");
+        c_writer.write("\t\t\tdelete pObjFault;\n");
+        c_writer.write("\t\t\tthrow AxisServiceException(AXISC_SERVICE_THROWN_EXCEPTION);\n");
+        c_writer.write("\t\t}\n");
+        c_writer.write("\t\treturn AXIS_FAIL;\n");
+        c_writer.write("\t}\n");
         
         // Handle generic exception, placing the message into a generic SOAP fault
-        writer.write("\tcatch (exception & e)\n");
-        writer.write("\t{\n");
-        writer.write("\t\tpIWSSZ->createSoapFault(\"\", \"\", \"Server\", e.what());\n");
-        writer.write("\t\tthrow AxisServiceException(AXISC_SERVICE_THROWN_EXCEPTION);\n");
-        writer.write("\t\treturn AXIS_FAIL;\n");
-        writer.write("\t}\n");
+        c_writer.write("\tcatch (exception & e)\n");
+        c_writer.write("\t{\n");
+        c_writer.write("\t\tpIWSSZ->createSoapFault(\"\", \"\", \"Server\", e.what());\n");
+        c_writer.write("\t\tthrow AxisServiceException(AXISC_SERVICE_THROWN_EXCEPTION);\n");
+        c_writer.write("\t\treturn AXIS_FAIL;\n");
+        c_writer.write("\t}\n");
         
         // Handle any other exception
-        writer.write("\tcatch(...)\n");
-        writer.write("\t{\n");
-        writer.write("\t\treturn AXIS_FAIL;\n");
-        writer.write("\t}\n");
+        c_writer.write("\tcatch(...)\n");
+        c_writer.write("\t{\n");
+        c_writer.write("\t\treturn AXIS_FAIL;\n");
+        c_writer.write("\t}\n");
         //write end of method
-        writer.write("}\n");
+        c_writer.write("}\n");
     }
     
     /* (non-Javadoc)
@@ -814,22 +814,22 @@
     {
         try
         {
-            writer.write("\tcatch(" + faulttype + " pObjFault)\n");
-            writer.write("\t{\n");
-            writer.write("\t\tif (pObjFault)\n");
-            writer.write("\t\t{\n");
-            writer.write(
+            c_writer.write("\tcatch(" + faulttype + " pObjFault)\n");
+            c_writer.write("\t{\n");
+            c_writer.write("\t\tif (pObjFault)\n");
+            c_writer.write("\t\t{\n");
+            c_writer.write(
                 "\t\tpIWSSZ->createSoapFault(\""
                     + langName
                     + "\", \""
                     + wscontext.getWrapperInfo().getTargetNameSpaceOfWSDL()
                     + "\",\"AxisC++ Faultcode\", \"Custom Out of bound exception\");\n");
             //  writer.write("\t\t"+faulttype+" pObjFault = new "+langName+"();\n");                                                                       
-            writer.write(
+            c_writer.write(
                 "\t\t\tpIWSSZ->addFaultDetail(pObjFault, (void*) Axis_Serialize_"
                     + langName
                     + ",\n");
-            writer.write(
+            c_writer.write(
                 "\t\t\t(void*) Axis_Delete_"
                     + langName
                     + ",\""
@@ -837,11 +837,11 @@
                     + "\", Axis_URI_"
                     + langName
                     + ");\n");
-            writer.write("\t\tthrow AxisServiceException(AXISC_SERVICE_THROWN_EXCEPTION);\n");
-            writer.write("\t\t}\n");
-            writer.write("\t\treturn AXIS_FAIL;\n");
-            writer.write("\t}\n");
-            writer.write("\n");
+            c_writer.write("\t\tthrow AxisServiceException(AXISC_SERVICE_THROWN_EXCEPTION);\n");
+            c_writer.write("\t\t}\n");
+            c_writer.write("\t\treturn AXIS_FAIL;\n");
+            c_writer.write("\t}\n");
+            c_writer.write("\n");
         }
         catch (IOException e)
         {



Mime
View raw message