Perl: Cannot Access Web Service with SSL

后端 未结 8 801
礼貌的吻别
礼貌的吻别 2021-01-21 12:28

This is my first Perl script. I have installed SOAP::Lite using CPAN and it seems to have gone okay.

I\'m trying to access a simple HelloWorld .NET web service. I\'m get

8条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-21 12:42

    Boy did this work for me! I threw this into stubmaker.pl and my script which uses the stubmaker.pl output.

    IO::Socket::SSL::set_defaults(SSL_verify_mode => "SSL_VERIFY_NONE");
    use SOAP::Lite +trace => qw( debug );
    
    $ENV{PERL_LWP_SSL_VERIFY_HOSTNAME}=0; 
    

提交回复
热议问题