ws-axis-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dami...@apache.org
Subject cvs commit: ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal ServiceHeaderWriter.java
Date Tue, 15 Jun 2004 10:18:01 GMT
damitha     2004/06/15 03:18:01

  Modified:    c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal
                        ServiceHeaderWriter.java
  Log:
  
  
  Revision  Changes    Path
  1.10      +27 -0     ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal/ServiceHeaderWriter.java
  
  Index: ServiceHeaderWriter.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal/ServiceHeaderWriter.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- ServiceHeaderWriter.java	11 Jun 2004 05:01:28 -0000	1.9
  +++ ServiceHeaderWriter.java	15 Jun 2004 10:18:01 -0000	1.10
  @@ -32,6 +32,7 @@
   import org.apache.axis.wsdl.wsdl2ws.WrapperUtils;
   import org.apache.axis.wsdl.wsdl2ws.info.MethodInfo;
   import org.apache.axis.wsdl.wsdl2ws.info.ParameterInfo;
  +import org.apache.axis.wsdl.wsdl2ws.info.FaultInfo; 
   import org.apache.axis.wsdl.wsdl2ws.info.Type;
   import org.apache.axis.wsdl.wsdl2ws.info.WebServiceContext;
   
  @@ -166,12 +167,38 @@
   			{
   				writer.write("#include \""+itr.next().toString()+".h\"\n");
   			}		
  +			
  +			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 "ServerSkeleton";	
  
  
  

Mime
View raw message