1

I am trying to consume some SOAP Web Service from perl with SOAP::Lite. my script looks like :

use SOAP::Lite;
my $url1 = http://myUsername:myPassword@myProxyServer:port;
my $url2 = https: //myUsername:myPassword@server.wsdl;

print SOAP::Lite
    -> proxy($url1)
    -> service($url2)
    ->myMethod("foo", "bar");

and i get this error :

Server description https://myUsername:myPassword@server.wsdl can't be loaded: 500 Can't connect to http://myUsername:myPassword@myProxyServer:port

. The $url1 and $url2 urls are correct and the myMethod method exist in wsdl file.

Any help will be apreciated.

Regards

4

1 回答 1

2

SOAP::Lite据我所知,不能使用 WSDL。

如果您想使用SOAP::Lite,您需要自己阅读 WSDL,并找出正确的值用于$url2

或者你可以看看构建一个基于 的客户端XML::Compile,它可以处理 WSDL 并允许你调用基于它的服务。

于 2013-03-26T16:57:34.163 回答