axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nadira...@apache.org
Subject svn commit: r406787 - in /webservices/axis/trunk/c/src/cbindings: BasicNodeC.cpp IHeaderBlockC.cpp
Date Tue, 16 May 2006 00:49:05 GMT
Author: nadiramra
Date: Mon May 15 17:49:05 2006
New Revision: 406787

URL: http://svn.apache.org/viewcvs?rev=406787&view=rev
Log:
C support fixes/enhancements. Call the correct method when a class has multiple
methods with same name.  The C-binding interface only has one method with 
all possible parameters.

Modified:
    webservices/axis/trunk/c/src/cbindings/BasicNodeC.cpp
    webservices/axis/trunk/c/src/cbindings/IHeaderBlockC.cpp

Modified: webservices/axis/trunk/c/src/cbindings/BasicNodeC.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/src/cbindings/BasicNodeC.cpp?rev=406787&r1=406786&r2=406787&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/cbindings/BasicNodeC.cpp (original)
+++ webservices/axis/trunk/c/src/cbindings/BasicNodeC.cpp Mon May 15 17:49:05 2006
@@ -147,7 +147,12 @@
     
     try
     {
-        return bn->createAttribute(localname,prefix,uri,value);
+        if (uri == NULL && prefix == NULL)
+           return bn->createAttribute(localname,value);
+        else if (uri == NULL)
+           return bn->createAttribute(localname,prefix, value);
+        else
+           return bn->createAttribute(localname,prefix, uri, value);
     }
     catch ( AxisException& e  )
     {

Modified: webservices/axis/trunk/c/src/cbindings/IHeaderBlockC.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/src/cbindings/IHeaderBlockC.cpp?rev=406787&r1=406786&r2=406787&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/cbindings/IHeaderBlockC.cpp (original)
+++ webservices/axis/trunk/c/src/cbindings/IHeaderBlockC.cpp Mon May 15 17:49:05 2006
@@ -186,7 +186,10 @@
 
     try
     {
-        return (AXISCHANDLE)(hdr->createAttribute(localname, prefix, uri, value));
+        if (uri)
+            return (AXISCHANDLE)(hdr->createAttribute(localname, prefix, uri, value));
+        else
+            return (AXISCHANDLE)(hdr->createAttribute(localname, prefix, value));
     }
     catch ( AxisException& e  )
     {



Mime
View raw message