この Perl コードは、ASP.NET Web サービスへの匿名アクセスで機能しますが、統合セキュリティがオンになっていると、サービスは 401 エラーを返します。SOAP::Lite と組み合わせて NTLM モジュールを使用する必要があると思いますが、その方法が明確ではありません。これらのコンポーネントはどのように統合できますか?
use SOAP::Lite;
use strict;
my $proxy = "http://localhost:28606/WebService.asmx";
my $method_name = "HelloWorld";
my $uri = "http://tempuri.org/";
my $methodAction = $uri . $method_name;
my $soap = SOAP::Lite
->uri( $uri )
->proxy( $proxy )
->on_action(sub{ $methodAction; });
my $method = SOAP::Data->name($method_name)->attr({xmlns=>$uri});
my $result = $soap->call($method);
print $result->result();