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 ha...@apache.org on 2006/07/21 18:35:14 UTC
svn commit: r424380 - /webservices/axis/trunk/c/src/transport/SOAPTransport.h
Author: hawkeye
Date: Fri Jul 21 09:35:14 2006
New Revision: 424380
URL: http://svn.apache.org/viewvc?rev=424380&view=rev
Log:
Moved the http specific password element into the http transport. The username and password now reside in the SOAP Transport where they should be.
Modified:
webservices/axis/trunk/c/src/transport/SOAPTransport.h
Modified: webservices/axis/trunk/c/src/transport/SOAPTransport.h
URL: http://svn.apache.org/viewvc/webservices/axis/trunk/c/src/transport/SOAPTransport.h?rev=424380&r1=424379&r2=424380&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/transport/SOAPTransport.h (original)
+++ webservices/axis/trunk/c/src/transport/SOAPTransport.h Fri Jul 21 09:35:14 2006
@@ -504,6 +504,57 @@
* @return string - Last active channel error string.
*/
virtual const char * getLastChannelError() {return NULL;};
+
+ /**
+ * Sets the username to be used for basic authentication
+ */
+ void setUsername(const char* pcUsername)
+ {
+ if (m_pcUsername)
+ {
+ delete[]m_pcUsername;
+ m_pcUsername = NULL;
+ }
+
+ if (!pcUsername)
+ return;
+
+ m_pcUsername = new char[strlen (pcUsername) + 1];
+ strcpy (m_pcUsername, pcUsername);
+ }
+
+ void setPassword (const char *pcPassword)
+ {
+ if (m_pcPassword)
+ {
+ delete[]m_pcPassword;
+ m_pcPassword = NULL;
+ }
+
+ if (!pcPassword)
+ return;
+
+ m_pcPassword = new char[strlen (pcPassword) + 1];
+ strcpy (m_pcPassword, pcPassword);
+ }
+
+
+ /**
+ * Gets the username used for basic authentication
+ */
+ const char* getUsername()
+ {
+ return m_pcUsername;
+ }
+
+
+ /**
+ * Gets the password used for basic authentication
+ */
+ const char* getPassword()
+ {
+ return m_pcPassword;
+ }
protected:
/**
@@ -518,6 +569,16 @@
AXIS_ENGINE_CALLBACK_RELEASE_SEND_BUFFER m_pReleaseBufferCallback;
AXIS_PROTOCOL_TYPE m_eProtocolType;
+
+ /**
+ * Username
+ */
+ char* m_pcUsername;
+
+ /**
+ * Password
+ */
+ char* m_pcPassword;
};
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org