You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by na...@apache.org on 2006/08/04 04:47:06 UTC

svn commit: r428599 - /webservices/axis/trunk/c/src/cbindings/client/StubC.cpp

Author: nadiramra
Date: Thu Aug  3 19:47:06 2006
New Revision: 428599

URL: http://svn.apache.org/viewvc?rev=428599&view=rev
Log:
C support - implementation of setUsername and setPassword methods

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

Modified: webservices/axis/trunk/c/src/cbindings/client/StubC.cpp
URL: http://svn.apache.org/viewvc/webservices/axis/trunk/c/src/cbindings/client/StubC.cpp?rev=428599&r1=428598&r2=428599&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/cbindings/client/StubC.cpp (original)
+++ webservices/axis/trunk/c/src/cbindings/client/StubC.cpp Thu Aug  3 19:47:06 2006
@@ -142,8 +142,6 @@
     }
     catch ( ... )
     {
-          
-          
         processException(s, -1, "Unrecognized exception thrown.");
     }
 }
@@ -163,7 +161,6 @@
     }
     catch ( AxisException& e  )
     {
-        
         processException(s, e.getExceptionCode(), e.what());
     }
     catch ( ... )
@@ -303,8 +300,6 @@
     }
     catch ( ... )
     {
-          
-          
         processException(s, -1, "Unrecognized exception thrown.");
     }
 }
@@ -329,8 +324,6 @@
     }
     catch ( ... )
     {
-          
-          
         processException(s, -1, "Unrecognized exception thrown.");
     }
 }
@@ -355,9 +348,7 @@
         processException(s, e.getExceptionCode(), e.what());
     }
     catch ( ... )
-    {
-          
-          
+    { 
         processException(s, -1, "Unrecognized exception thrown.");
     }
 }
@@ -386,8 +377,6 @@
     }
     catch ( ... )
     {
-          
-          
         processException(s, -1, "Unrecognized exception thrown.");
     }
 
@@ -411,9 +400,7 @@
         processException(s, e.getExceptionCode(), e.what());
     }
     catch ( ... )
-    {
-          
-          
+    {      
         processException(s, -1, "Unrecognized exception thrown.");
     }
 
@@ -438,8 +425,6 @@
     }
     catch ( ... )
     {
-          
-          
         processException(s, -1, "Unrecognized exception thrown.");
     }
 
@@ -463,9 +448,7 @@
         processException(s, e.getExceptionCode(), e.what());
     }
     catch ( ... )
-    {
-          
-          
+    { 
         processException(s, -1, "Unrecognized exception thrown.");
     }
 
@@ -485,13 +468,10 @@
     }
     catch ( AxisException& e  )
     {
-        
         processException(s, e.getExceptionCode(), e.what());
     }
     catch ( ... )
     {
-          
-          
         processException(s, -1, "Unrecognized exception thrown.");
     }
 }
@@ -499,8 +479,6 @@
 AXISC_STORAGE_CLASS_INFO 
 void axiscStubDeleteSOAPHeaderBlock(AXISCHANDLE stub, AXISCHANDLE pHeaderBlock) 
 {
-    
-    
     StubC *s = (StubC*)stub;
     
     try
@@ -509,13 +487,10 @@
     }
     catch ( AxisException& e  )
     {
-        
         processException(s, e.getExceptionCode(), e.what());
     }
     catch ( ... )
     {
-          
-          
         processException(s, -1, "Unrecognized exception thrown.");
     }
 }
@@ -525,8 +500,6 @@
                        const char * pcProxyHost, 
                        unsigned int uiProxyPort) 
 {
-    
-    
     StubC *s = (StubC*)stub;
     
     try
@@ -540,8 +513,6 @@
     }
     catch ( ... )
     {
-          
-          
         processException(s, -1, "Unrecognized exception thrown.");
     }
 }
@@ -565,8 +536,6 @@
     }
     catch ( ... )
     {
-          
-          
         processException(s, -1, "Unrecognized exception thrown.");
     }
 }
@@ -574,8 +543,6 @@
 AXISC_STORAGE_CLASS_INFO 
 int axiscStubGetStatus(AXISCHANDLE stub) 
 {
-    
-    
     StubC *s = (StubC*)stub;
     
     try
@@ -589,8 +556,6 @@
     }
     catch ( ... )
     {
-          
-          
         processException(s, -1, "Unrecognized exception thrown.");
     }
 
@@ -601,8 +566,6 @@
 void axiscStubSetMaintainSession(AXISCHANDLE stub, 
                              AxiscBool bSession) 
 {
-    
-    
     StubC *s = (StubC*)stub;
     
     try
@@ -616,8 +579,6 @@
     }
     catch ( ... )
     {
-          
-          
         processException(s, -1, "Unrecognized exception thrown.");
     }
 }
@@ -641,8 +602,6 @@
     }
     catch ( ... )
     {
-          
-          
         processException(s, -1, "Unrecognized exception thrown.");
     }
 }
@@ -650,8 +609,6 @@
 AXISC_STORAGE_CLASS_INFO 
 AXISC_PROTOCOL_TYPE axiscStubGetTransportProtocol(AXISCHANDLE stub) 
 {
-    
-    
     StubC *s = (StubC*)stub;
     
     try
@@ -660,24 +617,96 @@
     }
     catch ( AxisException& e  )
     {
-        
         processException(s, e.getExceptionCode(), e.what());
     }
     catch ( ... )
     {
-          
-          
         processException(s, -1, "Unrecognized exception thrown.");
     }
     
     return (AXISC_PROTOCOL_TYPE)-1;
 }
 
+AXISC_STORAGE_CLASS_INFO
+void axiscStubSetUsername(AXISCHANDLE stub, const char * pcUsername)
+{
+    StubC *s = (StubC*)stub;
+    
+    try
+    {
+        return s->setUsername(pcUsername);
+    }
+    catch ( AxisException& e  )
+    {
+        processException(s, e.getExceptionCode(), e.what());
+    }
+    catch ( ... )
+    {
+        processException(s, -1, "Unrecognized exception thrown.");
+    }
+}
+
+AXISC_STORAGE_CLASS_INFO
+void axiscStubSetPassword(AXISCHANDLE stub, const char * pcPassword)
+{
+    StubC *s = (StubC*)stub;
+    
+    try
+    {
+        return s->setPassword(pcPassword);
+    }
+    catch ( AxisException& e  )
+    {
+        processException(s, e.getExceptionCode(), e.what());
+    }
+    catch ( ... )
+    {
+        processException(s, -1, "Unrecognized exception thrown.");
+    }    
+}
+
+AXISC_STORAGE_CLASS_INFO
+void axiscStubSetProxyUsername(AXISCHANDLE stub, const char * pcProxyUsername)
+{
+    StubC *s = (StubC*)stub;
+    
+    try
+    {
+        return s->setProxyUsername(pcProxyUsername);
+    }
+    catch ( AxisException& e  )
+    {
+        processException(s, e.getExceptionCode(), e.what());
+    }
+    catch ( ... )
+    {
+        processException(s, -1, "Unrecognized exception thrown.");
+    }    
+}
+
+AXISC_STORAGE_CLASS_INFO
+void axiscStubSetProxyPassword(AXISCHANDLE stub, const char * pcProxyPassword)
+{
+    StubC *s = (StubC*)stub;
+    
+    try
+    {
+        return s->setProxyPassword(pcProxyPassword);
+    }
+    catch ( AxisException& e  )
+    {
+        processException(s, e.getExceptionCode(), e.what());
+    }
+    catch ( ... )
+    {
+        processException(s, -1, "Unrecognized exception thrown.");
+    }        
+}
+
+
 AXISC_STORAGE_CLASS_INFO 
 AXISCHANDLE axiscStubGetCall(AXISCHANDLE stub) 
 { 
-    
-    
     StubC *s = (StubC*)stub;
     
     try
@@ -702,7 +731,9 @@
 }
 
 AXISC_STORAGE_CLASS_INFO 
-void axiscStubApplyUserPreferences(AXISCHANDLE stub) 
+void axiscStubSetSecure(AXISCHANDLE stub, 
+                        char * pszArguments, 
+                        ... )
 { 
     
     
@@ -710,7 +741,11 @@
     
     try
     {
-        s->applyUserPreferencesStubC();
+        va_list args;
+    
+        va_start( args, pszArguments);    
+        s->SetSecure(pszArguments, args);
+        va_end( args);    
     }
     catch ( AxisException& e  )
     {
@@ -724,8 +759,22 @@
         processException(s, -1, "Unrecognized exception thrown.");
     }
 }
+AXISC_STORAGE_CLASS_INFO
+void axiscStubSetCExceptionHandler(AXISCHANDLE stub, void * pExceptionHandler)
+{
+    StubC *s = (StubC*)stub;  
+    s->setCExceptionHandler(pExceptionHandler); 
+}
+
+AXISC_STORAGE_CLASS_INFO
+void * axiscStubGetCExceptionHandler(AXISCHANDLE stub)
+{
+    StubC *s = (StubC*)stub;
+    return s->getCExceptionHandler();
+}
+
 AXISC_STORAGE_CLASS_INFO 
-void axiscStubIncludeSecure(AXISCHANDLE stub)
+void axiscStubApplyUserPreferences(AXISCHANDLE stub) 
 { 
     
     
@@ -733,7 +782,7 @@
     
     try
     {
-        s->includeSecureStubC();
+        s->applyUserPreferencesStubC();
     }
     catch ( AxisException& e  )
     {
@@ -747,9 +796,8 @@
         processException(s, -1, "Unrecognized exception thrown.");
     }
 }
-
 AXISC_STORAGE_CLASS_INFO 
-void axiscStubSetSOAPHeaders(AXISCHANDLE stub) 
+void axiscStubIncludeSecure(AXISCHANDLE stub)
 { 
     
     
@@ -757,7 +805,7 @@
     
     try
     {
-        s->setSOAPHeadersStubC(); 
+        s->includeSecureStubC();
     }
     catch ( AxisException& e  )
     {
@@ -772,11 +820,8 @@
     }
 }
 
-
 AXISC_STORAGE_CLASS_INFO 
-void axiscStubSetSecure(AXISCHANDLE stub, 
-                        char * pszArguments, 
-                        ... )
+void axiscStubSetSOAPHeaders(AXISCHANDLE stub) 
 { 
     
     
@@ -784,11 +829,7 @@
     
     try
     {
-        va_list args;
-    
-        va_start( args, pszArguments);    
-        s->SetSecure(pszArguments, args);
-        va_end( args);    
+        s->setSOAPHeadersStubC(); 
     }
     catch ( AxisException& e  )
     {
@@ -802,22 +843,6 @@
         processException(s, -1, "Unrecognized exception thrown.");
     }
 }
-
-AXISC_STORAGE_CLASS_INFO
-void axiscStubSetCExceptionHandler(AXISCHANDLE stub, void * pExceptionHandler)
-{
-    StubC *s = (StubC*)stub;  
-    s->setCExceptionHandler(pExceptionHandler); 
-}
-
-AXISC_STORAGE_CLASS_INFO
-void * axiscStubGetCExceptionHandler(AXISCHANDLE stub)
-{
-    StubC *s = (StubC*)stub;
-    return s->getCExceptionHandler();
-}
-
-
 
 }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org