此Perl代碼與匿名訪問ASP.NET Web服務一起工作,但啓用集成安全性後,該服務將返回401個錯誤。我認爲我需要將NTLM模塊與SOAP :: Lite結合使用,但目前尚不清楚如何實現。這些組件如何集成?如何將Perl的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();
究竟是什麼「集成安全性」? – innaM 2009-06-18 18:55:08