【发布时间】:2009-06-18 16:28:33
【问题描述】:
此 Perl 代码适用于对 ASP.NET Web 服务的匿名访问,但是当打开集成安全性时,该服务会返回 401 错误。我想我需要将 NTLM 模块与 SOAP::Lite 结合使用,但不清楚如何这样做。这些组件如何集成?
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();
【问题讨论】:
-
究竟什么是“集成安全”?