this.connectionManager = new MultiThreadedHttpConnectionManager();
this.connectionManager.getParams().setMaxTotalConnections(1);
this.clientWorkstation = clientWorkstation;
// Set up the configuration info object
ConnectionConfig cc;
int index = userName.indexOf("\\");
String domainUser;
String domain;
if (index != -1)
{
domainUser = userName.substring(index+1);
domain = userName.substring(0,index);
if (oLog != null && oLog.isDebugEnabled())
oLog.debug("Meridio: User is '"+domainUser+"', domain is '"+domain+"'");
}
else
{
domain = null;
domainUser = userName;
if (oLog != null && oLog.isDebugEnabled())
oLog.debug("Meridio: User is '"+domainUser+"'; there is no domain specified");
}
if (oLog != null && oLog.isDebugEnabled())
{
if (password != null && password.length() > 0)
oLog.debug("Meridio: Password exists");
else
oLog.debug("Meridio: Password is null");
}
// Set up the stub handles
/*=================================================================
* Get a handle to the DMWS
*================================================================*/
MeridioDMLocator meridioDMLocator = new MeridioDMLocator(engineConfiguration);
MeridioDMSoapStub meridioDMWebService = new MeridioDMSoapStub(meridioDmwsUrl, meridioDMLocator);
meridioDMWebService.setPortName(meridioDMLocator.getMeridioDMSoapWSDDServiceName());
// I believe that setting the username and password this way is no longer needed...
meridioDMWebService.setUsername(userName);
meridioDMWebService.setPassword(password);
// Here's the real way to send in user/password
cc = new ConnectionConfig(protocolFactory,connectionManager,dmwsProxyHost,(dmwsProxyPort!=null&&dmwsProxyPort.length()>0)?new Integer(dmwsProxyPort):null,
domain,domainUser,password);
dmwsConfig = cc;
meridioDMWebService._setProperty( CONFIGURATION_PROPERTY, cc);
meridioDMWebService_ = meridioDMWebService;
/*=================================================================
* Get a handle to the RMWS
*================================================================*/
MeridioRMLocator meridioRMLocator = new MeridioRMLocator(engineConfiguration);
MeridioRMSoapStub meridioRMWebService = new MeridioRMSoapStub(meridioRmwsUrl, meridioRMLocator);
meridioRMWebService.setPortName(meridioRMLocator.getMeridioRMSoapWSDDServiceName());
meridioRMWebService.setUsername(userName);
meridioRMWebService.setPassword(password);
cc = new ConnectionConfig(protocolFactory,connectionManager,rmwsProxyHost,(rmwsProxyPort!=null&&rmwsProxyPort.length()>0)?new Integer(rmwsProxyPort):null,
domain,domainUser,password);
rmwsConfig = cc;
meridioRMWebService._setProperty( CONFIGURATION_PROPERTY, cc);
meridioRMWebService_ = meridioRMWebService;