Hi,
I have a problem when I try to work with two CS Systems in a script
If I open the first connection and run somthing , it is OK, if I open a second connection, I can't use the first connection
I have an error "The fault code: 1
The fault string: Could not identify user"
see example below
#Include the ChangeSynergy csapi module.
use ChangeSynergy::csapi;
# define variables
$User=$ARGV[0];
$Password=$ARGV[1];
#Create a new instance of the csapi object.
#my $csapi = new ChangeSynergy::csapi();
my $csapi_Internal = new ChangeSynergy::csapi();
my $csapi_External = new ChangeSynergy::csapi();
my $requestedAttrs = "problem_number|crstatus|severity|problem_description|problem_synopsis|product_name|submitter|request_type|product_version";
#Eval block is used for error handling.
eval
{
#Setup the connection parameters for connecting to the ChangeSynergy Server.
#Note however that no connection to the server is made at this point.
print "======= Set up connection to http://cm2il01cm:8600/cs...\n";
$csapi_External->setUpConnection("http", "cm2il01cm", 8600 );
#Login to the ChangeSynegy server. (user, password, role, database);
my $aUserExt = $csapi_External->Login($User, $Password, "User", "\\\\cm2il01cm\\ccmdb\\comccw");
print "======= Set up connection to http://cmtest:8600/cs...\n";
$csapi_Internal->setUpConnection("http", "cmtest", 8600 );
#Login to the ChangeSynegy server. (user, password, role, database);
my $aUserInt = $csapi_Internal->Login($User, $Password, "User", "\\\\cmtest\\ccmdb\\comsys2_130806");
my $OpenCRResultsExternal = $csapi_External->ReportData($aUserExt, "EGG", $requestedAttrs);
$NumOpenCR=$OpenCRResultsExternal->getDataSize();
print "\nTotal number of CR's related to the query is = " . $OpenCRResultsExternal->getDataSize() . "\n\n";
};
Thanks
Ronen