![]() |
Telelogic SYNERGY (steve huntington) | ![]() |
Topic Title: API - error mesasge "login failed" Topic Summary: Created On: 22-Jan-2006 07:42 Status: Read Only |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: I was getting a very similar error. I found it was the database path in the following statement: | |
![]() |
|
Hi, I would like to run perl script
I set the vairable PATH & PERL5LIB I updated the example from the api doc to match my parameters and I'm getting error message "The fault code: 2 The fault string: Login failed" #Include the ChangeSynergy csapi module. use ChangeSynergy::csapi; #Create a new instance of the csapi object. my $csapi = new ChangeSynergy::csapi(); #Create the queryString variable. Query for all problems that are assigned to ronenb my $queryString = "(cvtype='problem') and ((resolver = 'ronenb') and (crstatus='assigned'))"; #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. $csapi->setUpConnection("http", "cmtest", 8600 ); printf "=======\n"; #Login to the ChangeSynegy server. (user, password, role, database); my $aUser = $csapi->Login("ronenb", "password", "User", "\\\\cmtest\\ccmdb\\comsys"); #Run the ImmediateQueryHtml method to recieve an HTML page. #Pass in the user object, report name, query string, query name and the title for the report. my $results = $csapi->ImmediateQueryHtml($aUser, "Basic Summary", $queryString, undef, "Report of my assigned CR's"); #Open a file called report.html for output. open (OUTPUT, ">report.html"); #Write the contents of the returned result to the report.html file. print(OUTPUT $results->getResponseData()); #Close the output stream. close(OUTPUT); }; #If any errors occured, print them to the screen. if ($@) { print $@; } I could'nt find the problem Any idea? Thanks, Ronen ------------------------- Ronen Ben-Chamo Configuration Managment |
|
![]() |
|
![]() |
|
I was getting a very similar error. I found it was the database path in the following statement: ------------------------- Thanks, Brian Edited: 23-Jan-2006 at 11:03 by Brian Barde |
|
![]() |
|
![]() |
|
You right!!!!!!!!!!!!!!!!!
I so happy, I working on this case several days and you solved my problem Thank you very much The server path is \\\\Cmtest\CCMDB\comsys I should add '\' before ech folder "\\\\Cmtest\\CCMDB\\comsys" Ronen ------------------------- Ronen Ben-Chamo Configuration Managment |
|
![]() |
|
![]() |
|
I am glad I could help.
------------------------- Thanks, Brian |
|
![]() |
Telelogic SYNERGY
» SYNERGY/Change
»
API - error mesasge "login failed"
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.