I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2010-03-16 14:33:01.94385-07 by dhorne
Basic Authentication
Hi, I need to authenticate my WS requests using basic authentication. My code is:
*SOAP::Transport::HTTPS::Client::get_basic_credentials = sub { return ('user', 'password'); }; my $service = EM6::Interfaces::ScadaService::ScadaServiceSOAPPort->new; my $result = $service->getScadaService( { scada_request_type => 'Scada HVDC Service', start_date => '2010-03-14', end_date => '2010-03-14', start_period => 1, end_period => 48 } );


But the response we're getting is:

"The HTTP Basic Authorisation username and password are absent"

Am I setting the credentials incorrectly? SOAP::Lite is installed, although I've also tried

*SOAP::WSDL::Transport::HTTP::get_basic_credentials = sub { return ('user', 'password'); };
Dan
Direct Responses: 12556 | Write a response