axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nadira...@apache.org
Subject svn commit: r387990 - in /webservices/axis/trunk/c/src/cbindings/client: CallC.cpp StubC.cpp
Date Thu, 23 Mar 2006 01:20:10 GMT
Author: nadiramra
Date: Wed Mar 22 17:20:08 2006
New Revision: 387990

URL: http://svn.apache.org/viewcvs?rev=387990&view=rev
Log:
C support fixes/enhancements.

Modified:
    webservices/axis/trunk/c/src/cbindings/client/CallC.cpp
    webservices/axis/trunk/c/src/cbindings/client/StubC.cpp

Modified: webservices/axis/trunk/c/src/cbindings/client/CallC.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/src/cbindings/client/CallC.cpp?rev=387990&r1=387989&r2=387990&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/cbindings/client/CallC.cpp (original)
+++ webservices/axis/trunk/c/src/cbindings/client/CallC.cpp Wed Mar 22 17:20:08 2006
@@ -20,7 +20,6 @@
 
 #include "../AxisObjectContainer.hpp"
 
-
 AXIS_CPP_NAMESPACE_USE
 
 extern "C" {
@@ -56,6 +55,9 @@
 AXISC_STORAGE_CLASS_INFO 
 void axiscDestroyCall(AXISCHANDLE call) 
 {
+	if ((AXISCHANDLE)NULL == call)
+		return;
+
     AxisObjectContainer *h = (AxisObjectContainer *)call;
     Call *c = (Call*)h->_objHandle;
     
@@ -93,6 +95,8 @@
     }
     catch ( ... )
     {
+        h->_exception.setExceptionCode(-1);  
+        h->_exception.setMessage("Unrecognized exception thrown.");  
         axiscInvokeExceptionHandler(-1, "Unrecognized exception thrown.");
     }
 }
@@ -101,7 +105,7 @@
 int axiscSetTransportPropertyCall(AXISCHANDLE call, 
                                   AXISC_TRANSPORT_INFORMATION_TYPE type, 
                                   const char * value) 
-{
+{   
     AxisObjectContainer *h = (AxisObjectContainer *)call;
     h->_exception.resetException();
     Call *c = (Call*)h->_objHandle;

Modified: webservices/axis/trunk/c/src/cbindings/client/StubC.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/src/cbindings/client/StubC.cpp?rev=387990&r1=387989&r2=387990&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/cbindings/client/StubC.cpp (original)
+++ webservices/axis/trunk/c/src/cbindings/client/StubC.cpp Wed Mar 22 17:20:08 2006
@@ -67,6 +67,9 @@
 AXISC_STORAGE_CLASS_INFO 
 void axiscDestroyStub(AXISCHANDLE stub) 
 {
+	if ((AXISCHANDLE)NULL == stub)
+		return;
+			
     AxisObjectContainer *h = (AxisObjectContainer *)stub;
     StubC *s = (StubC*)h->_objHandle;
     



Mime
View raw message