gwong 0 Newbie Poster

Hi,
I am new to using the Soap::WSDL module. How would I go about getting rid of this parsing error?

#!/usr/bin/perl

use strict;
use SOAP::WSDL +trace => 'all';
use Data::Dumper;

my $ops = 'http://ops.epo.org/wsdl/ops.wsdl';

eval {
my $soap=SOAP::WSDL->new(
   wsdl => $ops,
   );
};

if ($@)
{ print "wsdl error: $@\n"; }

Ouptut:

wsdl error: cannot import document from namespace >http://ops.epo.org< without base uri. Use >parse_uri< or >set_uri< to set one. at /usr/perl5/site_perl/5.8.4/SOAP/WSDL/Expat/WSDLParser.pm line 96.
at line 10 at /usr/perl5/site_perl/5.8.4/SOAP/WSDL/Expat/Base.pm line 82


Thanks a bunch for any replies!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.