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 ClientStubWriter.java
Date Mon, 14 Jun 2004 06:00:14 GMT
damitha     2004/06/13 23:00:14

  Modified:    c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp
                        ClientStubWriter.java
  Log:
  
  
  Revision  Changes    Path
  1.42      +7 -2      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.41
  retrieving revision 1.42
  diff -u -r1.41 -r1.42
  --- ClientStubWriter.java	12 Jun 2004 03:57:12 -0000	1.41
  +++ ClientStubWriter.java	14 Jun 2004 06:00:14 -0000	1.42
  @@ -349,10 +349,15 @@
   
   		}
   		//added by nithya
  -		System.out.println("Fault message ............................"+minfo.getFaultMessage());
  +		
   		writer.write("\t}\n");//damitha
   		writer.write("\tcatch(AxisException& e)\n\t{\n");//damitha
  -		writer.write("\t\tif (AXIS_SUCCESS == m_pCall->checkFault(\"Fault\",\""+wscontext.getWrapInfo().getTargetEndpointURI()+"\"
))");//damitha
  +		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\telse if (AXIS_SUCCESS == m_pCall->checkFault(\"Fault\",\""+wscontext.getWrapInfo().getTargetEndpointURI()+"\"
))");//damitha
   		writer.write("//Exception handling code goes here\n");
   		writer.write("\t\t{\n");//damitha
   		writer.write("\t\t\tcFaultcode = m_pCall->getElementAsString(\"faultcode\", 0);\n");//damitha
  
  
  

Mime
View raw message