B
Bubba Thomas
Is there any way that the NEW() of a web service can accept parameters ? I
would like to pass a boolean to indicate to the webservice that I am in test
mode or live mode. This will give me the ability to set up which Database I
want to use on the back end. If I cannot do it this way does anyone know of
another way I can do it ? I have a WebService that has about 75 procedures
and I would rather not have to submit this parameter into every one of them.
I would like to do something like this :
Private agentMonitorConnectionStringLive As String =
"uid=callManager;pwd=liveon070703;" &
"database=callManager;server=129.110.10.235;Connect Timeout=45"
Private agentMonitorConnectionStringTest As String =
"uid=callManager;pwd=callManager;" &
"database=callManager;server=129.110.205.11;pooling='false';Connect
Timeout=45"
Private queueMessagesConnectionLive As String =
"uid=FrontOffice;pwd=liveon070703;" &
"database=FrontOffice;server=129.110.10.235;Connect Timeout=45"
Private queueMessagesConnectionTest As String =
"uid=FrontOffice;pwd=FrontOffice;" &
"database=FrontOffice;server=129.110.205.11;Connect Timeout=45"
Public agentMonitorConnectionString As String
Public queueMessagesConnectionString As String
Public Sub New(ByVal LiveMode As Boolean)
If LiveMode Then
agentMonitorConnectionString = agentMonitorConnectionStringLive
queueMessagesConnectionString = queueMessagesConnectionLive
Else
agentMonitorConnectionString = agentMonitorConnectionStringTest
queueMessagesConnectionString = queueMessagesConnectionTest
End If
End Sub
TIA !
Bubba !
would like to pass a boolean to indicate to the webservice that I am in test
mode or live mode. This will give me the ability to set up which Database I
want to use on the back end. If I cannot do it this way does anyone know of
another way I can do it ? I have a WebService that has about 75 procedures
and I would rather not have to submit this parameter into every one of them.
I would like to do something like this :
Private agentMonitorConnectionStringLive As String =
"uid=callManager;pwd=liveon070703;" &
"database=callManager;server=129.110.10.235;Connect Timeout=45"
Private agentMonitorConnectionStringTest As String =
"uid=callManager;pwd=callManager;" &
"database=callManager;server=129.110.205.11;pooling='false';Connect
Timeout=45"
Private queueMessagesConnectionLive As String =
"uid=FrontOffice;pwd=liveon070703;" &
"database=FrontOffice;server=129.110.10.235;Connect Timeout=45"
Private queueMessagesConnectionTest As String =
"uid=FrontOffice;pwd=FrontOffice;" &
"database=FrontOffice;server=129.110.205.11;Connect Timeout=45"
Public agentMonitorConnectionString As String
Public queueMessagesConnectionString As String
Public Sub New(ByVal LiveMode As Boolean)
If LiveMode Then
agentMonitorConnectionString = agentMonitorConnectionStringLive
queueMessagesConnectionString = queueMessagesConnectionLive
Else
agentMonitorConnectionString = agentMonitorConnectionStringTest
queueMessagesConnectionString = queueMessagesConnectionTest
End If
End Sub
TIA !
Bubba !