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