CPAN::Forum
SOAP-WSDL - real simple example SOAP::WSDL->new of lengthy WSDL- what is wrong?
| Posted on Tue Apr 15 02:07:25 2008 by mw487 |
| real simple example SOAP::WSDL->new of lengthy WSDL- what is wrong? |
|
Is the problem below my code, or the WSDL?
I try:
#!/usr/bin/perl -w
use strict; # skip down to last line, #9 ---------
use warnings;
use Carp qw(cluck confess); ;
$SIG{__WARN__} = \&Carp::cluck;
$SIG{__DIE__} = \&Carp::confess;
use SOAP::WSDL +trace => ['debug'] ;
if (defined $ENV{http_proxy}) {$ENV{HTTP_proxy} = $ENV{http_proxy}}
my $soap = SOAP::WSDL->new( wsdl => 'http://ops-i.epo.org/wsdl/ops.wsdl' ); # line 9- the key
and I get:
Missing base argument at /usr/lib/perl5/site_perl/5.8/SOAP/WSDL/Expat/WSDLParser.pm line 59
at /usr/lib/perl5/vendor_perl/5.8/URI/_generic.pm line 127
URI::_generic::abs('URI::http=SCALAR(0x103dead0)', 'undef') called at /usr/lib/perl5/vendor
+_perl/5.8/URI.pm line 68
URI::new_abs('URI', 'http://ops-i.epo.org/schema/ops.xsd', 'undef') called at /usr/lib/perl
+5/site_perl/5.8/SOAP/WSDL/Expat/WSDLParser.pm line 59
SOAP::WSDL::Expat::WSDLParser::xml_schema_import('SOAP::WSDL::Expat::WSDLParser=HASH(0x103f
+962c)', 'SOAP::WSDL::XSD::Schema=SCALAR(0x107c57a0)', 'namespace', 'http://ops.epo.org', 'schemaLo
+cation', 'http://ops-i.epo.org/schema/ops.xsd') called at /usr/lib/perl5/site_perl/5.8/SOAP/WSDL/E
+xpat/WSDLParser.pm line 1
74
SOAP::WSDL::Expat::WSDLParser::__ANON__('XML::Parser::Expat=HASH(0x10282ad4)', 'import', 'n
+amespace', 'http://ops.epo.org', 'schemaLocation', 'http://ops-i.epo.org/schema/ops.xsd') called a
+t /usr/lib/perl5/vendor_perl/5.8/cygwin/XML/Parser/Expat.pm line 474
XML::Parser::Expat::parse('XML::Parser::Expat=HASH(0x10282ad4)', '<wsdl:definitions xmln
+s="http://ops.epo.org/wsdl" xmlns:soap=...') called at /usr/lib/
perl5/site_perl/5.8/SOAP/WSDL/Expat/Base.pm line 73
eval {...} called at /usr/lib/perl5/site_perl/5.8/SOAP/WSDL/Expat/Base.p
m line 72
SOAP::WSDL::Expat::Base::parse('SOAP::WSDL::Expat::WSDLParser=HASH(0x103
f962c)', '<wsdl:definitions xmlns="http://ops.epo.org/wsdl" xmlns:soap=...') cal
led at /usr/lib/perl5/site_perl/5.8/SOAP/WSDL.pm line 117
SOAP::WSDL::wsdlinit('SOAP::WSDL=SCALAR(0x103d0928)') called at /usr/lib
/perl5/site_perl/5.8/SOAP/WSDL.pm line 97
SOAP::WSDL::new('SOAP::WSDL', 'wsdl', 'http://ops-i.epo.org/wsdl/ops.wsd
l') called at soapWSDL.pl line 9
at line 9 at /usr/lib/perl5/site_perl/5.8/SOAP/WSDL/Expat/Base.pm line 76
at /usr/lib/perl5/vendor_perl/5.8/cygwin/XML/Parser/Expat.pm line 141
XML::Parser::Expat::xpcroak('XML::Parser::Expat=HASH(0x10282ad4)', 'Miss
ing base argument at /usr/lib/perl5/site_perl/5.8/SOAP/WS...') called at /usr/li
b/perl5/site_perl/5.8/SOAP/WSDL/Expat/Base.pm line 76
SOAP::WSDL::Expat::Base::parse('SOAP::WSDL::Expat::WSDLParser=HASH(0x103
f962c)', ' wsdl:definitions xmlns="http://ops.epo.org/wsdl" xmlns:soap=...') cal
led at /usr/lib/perl5/site_perl/5.8/SOAP/WSDL.pm line 117
SOAP::WSDL::wsdlinit('SOAP::WSDL=SCALAR(0x103d0928)') called at /usr/lib
/perl5/site_perl/5.8/SOAP/WSDL.pm line 97
SOAP::WSDL::new('SOAP::WSDL', 'wsdl', 'http://ops-i.epo.org/wsdl/ops.wsd
l') called at soapWSDL.pl line 9
Thanks for any pointers. Sorry if this is trivial...
|
| Write a response |
(0)
]