axis-java-dev 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/cpp WrapWriter.java
Date Tue, 08 Jun 2004 07:05:12 GMT
damitha     2004/06/08 00:05:12

  Modified:    c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp WrapWriter.java
  Log:
  
  
  Revision  Changes    Path
  1.25      +12 -30    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.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- WrapWriter.java	7 Jun 2004 10:50:18 -0000	1.24
  +++ WrapWriter.java	8 Jun 2004 07:05:12 -0000	1.25
  @@ -349,35 +349,26 @@
   			}
   			writer.write(");\n");
   			writer.write("\treturn AXIS_SUCCESS;\n");
  -		}
  -//--------
  +			
  +		}    
  +	           writer.write("\t}\n");//nithya          
                   Iterator paramsFault = minfo.getFaultType().iterator();
                   String faultInfoName =null;
                   String faultType =null;
                   String langName =null;
                   String paramName =null;
  -                if (paramsFault.hasNext()){
  +                while (paramsFault.hasNext()){
                           FaultInfo info = (FaultInfo)paramsFault.next();
                           faultInfoName =info.getFaultInfo();
  -                        System.out.println("came1");
                           ArrayList paramInfo =info.getParams();
                           for (int i= 0; i < paramInfo.size(); i++) {
  -                                System.out.println("came2");
                                   ParameterInfo par =(ParameterInfo)paramInfo.get(i);
                                   paramName  = par.getParamName();
                                   langName =par.getLangName();
  -                                System.out.println(par.getLangName()+"get Language name
+++++++++++ ");
  -                                System.out.println(par.getParamName()+"to get the parameter
name ^^^^^^^^^^^");
  -                                faultType = WrapperUtils.getClassNameFromParamInfoConsideringArrays(par,wscontext);
  -                                System.out.println(faultType+" Fault type  ..............
  ");
  -                                writer.write("\t}\n");//damitha
  +                                faultType = WrapperUtils.getClassNameFromParamInfoConsideringArrays(par,wscontext);
                              
                                   writeExceptions(faultType,faultInfoName,paramName,langName);
                           }
                    }
  -
  -
  -
  -//--------
   		//write end of method
   		writer.write("}\n");
   	}
  @@ -387,31 +378,22 @@
   
           private void writeExceptions(String faulttype,String faultInfoName,String paramName,String
langName) throws WrapperFault{
                   try{
  -
  -                        writer.write("\tcatch(Axis"+langName+"Exception& e)\n");
  -                        writer.write("\t{\n");
  -                        //writer.write("\t\tif(0 == strcmp(\""+langName+"\", cFaultstring))\n");//damitha
  -                        writer.write("\t\tpIWSSZ->createSoapFault(\""+langName+"\",
\""+wscontext.getWrapInfo().getTargetNameSpaceOfWSDL()+"\");\n");
  -                      
  -                        //writer.write("\t\t{\n");//damitha
  -                        //writer.write("\t\t\tif (AXIS_SUCCESS == m_pCall->checkFault(\"faultdetail\",\""+wscontext.getWrapInfo().getTargetEndpointURI()+"\"))\n");//damitha
  -                        //writer.write("\t\t\t{\n");//damitha added
  +                        writer.write("\tcatch(Axis"+faultInfoName+"Exception& e)\n");
//nithya
  +                        writer.write("\t{\n");                       
  +                        writer.write("\t\tpIWSSZ->createSoapFault(\""+langName+"\",
\""+wscontext.getWrapInfo().getTargetNameSpaceOfWSDL()+"\");\n");                        
                    
                           writer.write("\t\t"+faulttype+" pObjFault = new "+langName+"();\n");//damitha
                           writer.write("\t\t/*User may write code here to fill the struct*/\n");
  -                        writer.write("\t\tif (pObjFault)\n");
  -                        
  +                        writer.write("\t\tif (pObjFault)\n");                        
                           writer.write("\t\t\tpIWSSZ->addFaultDetail(pObjFault, (void*)
Axis_Serialize_"+langName+",\n");//damitha
  -                        writer.write("\t\t\t(void*) Axis_Delete_"+langName+",\""+langName+"\",
0);\n");//damitha
  +                        writer.write("\t\t\t(void*) Axis_Delete_"+langName+",\""+faultInfoName+"\",
Axis_URI_"+langName+");\n");//damitha
                           writer.write("\t\tthrow;\n");//damitha
                           writer.write("\t}\n");
                           writer.write("\n");
                   }
                   catch (IOException e) {
  -                                        throw new WrapperFault(e);
  -                                }
  +                        throw new WrapperFault(e);
  +                 }
           }
  -
  -
           
   	protected void writeGlobalCodes() throws WrapperFault {
   		Iterator types = wscontext.getTypemap().getTypes().iterator();
  
  
  

Mime
View raw message