IBaseServerURL::Initialize

The Initialize method initializes the BaseServerURL component by specifying the Application Engine server name, the port number, the client application name, and whether the HTTP should be secure, when initializing the SilentSessionLogin component with the ISilentSessionLogin::InitializeWithCredentials method.

void spIBaseServerURL->Initialize(_bstr_t bstrServerName,
                                  _bstr_t bstrPortNumber,
                                  _bstr_t bstrApplicationName,
                                  VARIANT_BOOL bIsSecure);
Parameters
bstrServerName - [in] Required _bstr_t, which specifies the Application Engine server name.
bstrPortNumber - [in] Required _bstr_t, which specifies the port number for the server.
bstrApplicationName - [in] Required _bstr_t, which specifies the name of the client application that is requesting the login session:
bIsSecure - [in] Required VARIANT_BOOL, which specifies whether the HTTP should be secure during the session. This parameter can be set to the following:

Results
This method always returns an HRESULT value of S_OK if successful.
Sample
The following is a fragment from the complete example for the ISilentSessionLogin interface.
   ...
   // Initialize the BaseServerURL
   // with the Application Engine server name, port number,
   // client application name, and indicate no secure HTTP.
_bstr_t serverName(_T("eraser"));
_bstr_t portNumber(_T("8080"));
_bstr_t applicationName(_T("Workplace"));
VARIANT_BOOL bIsSecure = VARIANT_FALSE; std::cout << "Initializing the BaseServerURL component..." << std::endl;
spIBaseServerURL->Initialize(serverName, portNumber, applicationName, bIsSecure); ...