SOAP::Lite - Insecure dependency in eval while running with -T

用户在使用SOAP::Lite进行跨机支付网关调用时遇到错误。在开发阶段,同一台机器上运行良好,但部署到两台独立机器后出现安全依赖错误。通过代码调整暂时解决了问题,但仍收到警告消息。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Hi PerlMonks,
I'm using SOAP::Lite to do some online payments. The whole mechanism is set on separate machine which is communicating with payment gateway. So WWW machine sends a message to invoke SOAP::Lite and SOAP message is sent to payment gateway.

In development I had both "machines" running on one (separate instances) and there was no problem, but the moment it went on two separate machines I got this error from SOAP::Lite :

Code execution error: Method [ method_name ] returned error: Insecure dependency in eval while running with -T switch at /usr/lib/perl5/site_perl/5.8.8/SOAP/Lite.pm line 3225
Any idea?

Milos

----------------------------------------------------------------------Hi, I tried the trick (added in new line 3363):

sub generate_stub {
...

$self->{'_stub'} = $1 if $self->{'_stub'} =~ /^(.*)/;
return $self->stub;
}
and the error has changes . Now it's:

Code execution error: Method [ method_name ] returned error: Bad stub: at /usr/lib/perl5/site_perl/5.8.8/SOAP/Lite.pm line 3669
which with moving one line bellow (adding the fix line) is:

my %services = %{$self->schema->parse(@_)->load->services};
So the fix won't do.

As for the code example, I'll try to make something later during the day, but it's not so easy because I have XMLRPC web service calling SOAP service. And like I said, when it's on the same machine (but running on two different instances) everything's fine. When I put this SOAP to other machine I get this.

----------------------------------------------------------------------

I "solved" the problem just by adding

my $result = $1 if ($self->generate_stub($_) =~ m{^(.+)}s);
before

eval $result or Carp::croak "Bad stub: $@";
which was previously

eval $self->generate_stub($_) or Carp::croak "Bad stub: $@";
and it works now. Not really elegant, but I need this urgently so it should do. Alfter that I'm getting this warning message:

could not find ParserDetails.ini in /usr/lib/perl5/site_perl/5.8.8/XML/SAX

Is this related?


http://www.perlmonks.org/?node_id=895450
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值