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 ClientStubWriter.java
Date Mon, 18 Oct 2004 12:12:11 GMT
damitha     2004/10/18 05:12:11

  Modified:    c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp
                        ClientStubWriter.java ExceptionHeaderWriter.java
                        ExceptionWriter.java
               c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal
                        ClientStubWriter.java
  Log:
  added a new constructor
  
  Revision  Changes    Path
  1.55      +1 -1      ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/ClientStubWriter.java
  
  Index: ClientStubWriter.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/ClientStubWriter.java,v
  retrieving revision 1.54
  retrieving revision 1.55
  diff -u -r1.54 -r1.55
  --- ClientStubWriter.java	8 Oct 2004 11:28:22 -0000	1.54
  +++ ClientStubWriter.java	18 Oct 2004 12:12:11 -0000	1.55
  @@ -391,7 +391,7 @@
   		writer.write("\t\tif(AXISC_NODE_VALUE_MISMATCH_EXCEPTION != iExceptionCode)\n");
           writer.write("\t\t{\n");
           writer.write("\t\t\tm_pCall->unInitialize();\n");
  -        writer.write("\t\t\tthrow;\n");
  +        writer.write("\t\t\tthrow " + wscontext.getSerInfo().getServicename() + "_AxisClientException(e.what());\n");
           writer.write("\t\t}\n");
   //ISoapFault* pSoapFault = (ISoapFault*) m_pCall->checkFault("Fault", "http://localhost/axis/MathOps");
   
  
  
  
  1.8       +3 -1      ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/ExceptionHeaderWriter.java
  
  Index: ExceptionHeaderWriter.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/ExceptionHeaderWriter.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- ExceptionHeaderWriter.java	30 Sep 2004 14:54:38 -0000	1.7
  +++ ExceptionHeaderWriter.java	18 Oct 2004 12:12:11 -0000	1.8
  @@ -72,6 +72,7 @@
   		
   		return new File(fileName);
   	}
  +	
   
   	protected String getServiceName() throws WrapperFault {
   		return wscontext.getSerInfo().getServicename();
  @@ -125,7 +126,8 @@
   			writer.write("\t"+faultName+"(ISoapFault* pFault);\n");
   			writer.write("\t"+faultName+"(int iExceptionCode);\n");
   			writer.write("\t"+faultName+"(exception* e);\n");
  -			writer.write("\t"+faultName+"(exception* e, int iExceptionCode);\n");				
  +			writer.write("\t"+faultName+"(exception* e, int iExceptionCode);\n");
  +			writer.write("\t"+faultName+"(string sMessage);\n");
   			}catch(IOException e){
   				throw new WrapperFault(e);
   			}
  
  
  
  1.8       +10 -1     ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/ExceptionWriter.java
  
  Index: ExceptionWriter.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/ExceptionWriter.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- ExceptionWriter.java	30 Sep 2004 14:54:38 -0000	1.7
  +++ ExceptionWriter.java	18 Oct 2004 12:12:11 -0000	1.8
  @@ -149,6 +149,13 @@
   		writer.write("{\n\n");
   		writer.write("\tprocessException (e, iExceptionCode);\n");
   		writer.write("}\n\n");	
  +		
  +		writer.write(faultName+"::"+faultName+"(string sMessage)\n");
  + 	        writer.write("{\n");		
  +		writer.write("\t m_sMessage =sMessage;\n");
  +		writer.write("}\n\n");
  +		
  +		
   	    }catch(IOException e){
   			throw new WrapperFault(e);
   		}	
  @@ -165,7 +172,7 @@
   				{
   					faultName = getServiceName()+"_"+faultInfoName;
   				}
  -			writer.write(faultName+"::~"+faultName+"() throw () \n{\n\tm_sMessage =\"\";\n}\n\n");
  +			writer.write(faultName+"::~"+faultName+"() throw () \n{\n\tm_sMessage =\"\";\n}\n\n");
		
   			}catch(IOException e){
   				throw new WrapperFault(e);
   			}
  @@ -233,6 +240,8 @@
   		writer.write("{\n");
   		writer.write("\treturn m_pISoapFault;\n");
   		writer.write("}\n\n");
  +		
  +		
   			  	     
   	 }catch(IOException e){
   					 throw new WrapperFault(e);
  
  
  
  1.45      +2 -2      ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal/ClientStubWriter.java
  
  Index: ClientStubWriter.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal/ClientStubWriter.java,v
  retrieving revision 1.44
  retrieving revision 1.45
  diff -u -r1.44 -r1.45
  --- ClientStubWriter.java	8 Oct 2004 11:28:22 -0000	1.44
  +++ ClientStubWriter.java	18 Oct 2004 12:12:11 -0000	1.45
  @@ -550,8 +550,8 @@
   			writer.write("\tcatch(AxisException& e)\n\t{\n");
   			writer.write("\t\tint iExceptionCode = e.getExceptionCode();\n");
   		    writer.write("\t\tif(AXISC_NODE_VALUE_MISMATCH_EXCEPTION != iExceptionCode)\n");
  -            writer.write("\t\t{\n");
  -            writer.write("\t\t\tthrow;\n");
  +            writer.write("\t\t{\n");           
  +		    writer.write("\t\t\tthrow " + wscontext.getSerInfo().getServicename() + "_AxisClientException(e.what());\n");
               writer.write("\t\t}\n");
               writer.write("\t\tISoapFault* pSoapFault = (ISoapFault*) m_pCall->checkFault(\"Fault\",\""+wscontext.getWrapInfo().getTargetEndpointURI()+"\"
);\n");
               writer.write("\t\tif(pSoapFault)\n");
  
  
  

Mime
View raw message