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

  Modified:    c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp
                        WrapHeaderWriter.java
  Log:
  
  
  Revision  Changes    Path
  1.14      +26 -0     ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/WrapHeaderWriter.java
  
  Index: WrapHeaderWriter.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/WrapHeaderWriter.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- WrapHeaderWriter.java	11 Jun 2004 05:01:28 -0000	1.13
  +++ WrapHeaderWriter.java	15 Jun 2004 10:15:29 -0000	1.14
  @@ -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,6 +118,30 @@
   			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);
   		}
  
  
  

Mime
View raw message