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/literal ClientStubHeaderWriter.java
Date Tue, 15 Jun 2004 10:18:52 GMT
damitha     2004/06/15 03:18:52

  Modified:    c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal
                        ClientStubHeaderWriter.java
  Log:
  
  
  Revision  Changes    Path
  1.13      +27 -0     ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal/ClientStubHeaderWriter.java
  
  Index: ClientStubHeaderWriter.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal/ClientStubHeaderWriter.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- ClientStubHeaderWriter.java	11 Jun 2004 05:01:28 -0000	1.12
  +++ ClientStubHeaderWriter.java	15 Jun 2004 10:18:52 -0000	1.13
  @@ -39,6 +39,7 @@
   import org.apache.axis.wsdl.wsdl2ws.info.MethodInfo;
   import org.apache.axis.wsdl.wsdl2ws.info.ParameterInfo;
   import org.apache.axis.wsdl.wsdl2ws.info.Type;
  +import org.apache.axis.wsdl.wsdl2ws.info.FaultInfo;
   import org.apache.axis.wsdl.wsdl2ws.info.WebServiceContext;
   
   public class ClientStubHeaderWriter extends HeaderFileWriter{
  @@ -178,12 +179,38 @@
   			{
   				writer.write("#include \""+itr.next().toString()+".h\"\n");
   			}			
  +            //	Method to print the Fault Exception headers
  +			writeFaultHeaders();
   			writer.write("\n");
   		}catch (IOException e) {
   			e.printStackTrace();
   			throw new WrapperFault(e);
   		}
   	}
  +	
  +	  /* (non-Javadoc)
  +		* @see org.apache.axis.wsdl.wsdl2ws.cpp.HeaderFileWriter#writeMethods()
  +		*/
  +	   protected void writeFaultHeaders() throws WrapperFault {
  +		   try{
  +			  
  +			   MethodInfo minfo;
  +			   for (int i = 0; i < methods.size(); i++) {
  +				   minfo = (MethodInfo)methods.get(i);
  +				   Iterator fault = minfo.getFaultType().iterator();
  +				   String faultInfoName =null;		   		
  +				   while (fault.hasNext()){
  +						   FaultInfo info = (FaultInfo)fault.next();
  +						   faultInfoName =info.getFaultInfo();	     
  +						   writer.write("#include \"Axis"+faultInfoName.toString()+"Exception.h\"\n");
  +				   }
  +				   writer.write("\n");
  +			   }			
  +		   }catch(IOException e){
  +			   throw new WrapperFault(e);
  +		   }
  +	   }
  +	   
   	protected String getFileType()
   	{
   		return "ClientStub";	
  
  
  

Mime
View raw message