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 WrapHeaderWriter.java
Date Tue, 15 Jun 2004 10:17:30 GMT
damitha     2004/06/15 03:17:30

  Modified:    c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal
                        WrapHeaderWriter.java
  Log:
  
  
  Revision  Changes    Path
  1.10      +27 -0     ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal/WrapHeaderWriter.java
  
  Index: WrapHeaderWriter.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal/WrapHeaderWriter.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- WrapHeaderWriter.java	11 Jun 2004 05:01:28 -0000	1.9
  +++ WrapHeaderWriter.java	15 Jun 2004 10:17:30 -0000	1.10
  @@ -25,10 +25,12 @@
   import java.io.File;
   import java.io.IOException;
   import java.util.ArrayList;
  +import java.util.Iterator;
   
   import org.apache.axis.wsdl.wsdl2ws.WrapperFault;
   import org.apache.axis.wsdl.wsdl2ws.WrapperUtils;
   import org.apache.axis.wsdl.wsdl2ws.info.MethodInfo;
  +import org.apache.axis.wsdl.wsdl2ws.info.FaultInfo;
   import org.apache.axis.wsdl.wsdl2ws.info.WebServiceContext;
   import org.apache.axis.wsdl.wsdl2ws.CUtils;
   
  @@ -116,10 +118,35 @@
   			writer.write("#include <axis/server/IMessageData.h>\n");
   			writer.write("#include <axis/server/GDefine.h>\n");
   			writer.write("#include <axis/server/AxisWrapperAPI.h>\n\n");
  +			writeFaultHeaders();
  +			
   		}catch(IOException e){
   			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 getExtendsPart(){return " : public WrapperClassHandler";}
   	protected void writeAttributes()throws WrapperFault{
   		try{
  
  
  

Mime
View raw message