Subject: | unable to use local file as WSDL service description file |
Perl Version: v5.8.6 built for i386-linux-thread-multi
SOAP::Lite versions: 0.60, 0.55
OS version: Linux 2.4.9-e.49enterprise
Error using the google.pl script under examples/:
Show quoted text
> google.pl
Service description 'file:./GoogleSearch.wsdl' can't be loaded: 501 Protocol scheme 'file' is not supported
google.pl was tested exactly as found in the SOAP-Lite-0.55 under examples/, except that a valid google key was substituted. I then altered the google.pl script by changing the wsdl local file path to a full http URL:
Show quoted text> diff google.pl google.working.pl
19c19
< my $google = SOAP::Lite->service('file:./GoogleSearch.wsdl');
---
Show quoted text> my $google = SOAP::Lite->service('http://api.google.com/GoogleSearch.wsdl');
Running the http protocol version worked:
Show quoted text> google.working.pl
About 4120000 results.
Since I don't know much about SOAP::Lite, I'm thinking this may have to do with a module that SOAP::Lite includes to do the retrieval of the WSDL file, and not SOAP::Lite itself...