Connecting to Spiratest with PERL

Wednesday, December 18, 2013 2:41:11 PM
Hi,

Can you give example how connect to spiratest with PERL?

my $user = "username";
my $pass = "password";


my $schema_uri = 'http://<MYSERVER>.com/SpiraTest/Services/v3_0/ImportExport.svc?wsdl';
my $client = SOAP::Lite->new;
my $response = $client->service($schema_uri)
                          ->Connection_Authenticate($user,$pass);
                          
I get this error
Service description '.../SpiraTest/Services/v3_0/ImportExport.svc?wsdl' can't be loaded: 503 Service Unavailable

Thanks for your time



2 Replies
Friday, December 20, 2013 12:41:01 PM
Avatar
re: michaell on Wednesday, December 18, 2013 2:41:11 PM

Hi Michael

If you put the same URL into a web browser, does it display the WSDL file?

If not, for the most timely response, could you send us a help desk ticket so that we can better assist.

Then we can post the answer on this forum for others to read.

Regards

Adam

Monday, December 23, 2013 4:03:58 PM
Avatar
re: inflectra.adam on Friday, December 20, 2013
ok, will do later.

The wsdl link works but I could not get it to work with soap::lite. I go the connection using xml::compile::wsdl11 but after I get the connection_authe... back with true value and I am not able to run any
other commands. For example if I run connecttoproject (spellcheck on that function) it says I must run connection_aunthentice... It would be nice to have some working examples.

Example of soap::lite in perl tab module on this site will not run with latest perl on windows . Some thing deprec...



Statistics
  • Started: Wednesday, December 18, 2013 2:41:11 PM
  • Last Reply: Monday, December 23, 2013 4:03:59 PM
  • Replies: 2
  • Views: 5403