Posted on 2009-12-15 21:30:57-08 by magdude
wsdl2perl doesn't handle schema import
Hi,

I'm trying to run wsdl2perl.pl on the following wsdl:
http://ws1.oriongateway.com:22835/willani/services/oglws?wsdl

but I keep getting:
cannot import document for namespace >http://axis.apache.org< without location at /usr/lib/perl5/site_perl/5.8.8/SOAP/WSDL/Expat/WSDLParser.pm line 90.
cannot import document for namespace >http://schemas.xmlsoap.org/soap/encoding/< without location at /usr/lib/perl5/site_perl/5.8.8/SOAP/WSDL/Expat/WSDLParser.pm line 90.
Creating complexType class MyTypes/RequestMsg.pm
/usr/lib/perl5/site_perl/5.8.8/SOAP/WSDL/Generator/Template/XSD\complexType.tt NOT_FOUND error - http://schemas.xmlsoap.org/soap/encoding/ string not found at /usr/lib/perl5/site_perl/5.8.8/SOAP/WSDL/Base.pm line 62

and no other output.

It seems wsdl2perl has a problem with the schama import tags:
<import namespace="http://axis.apache.org"/> <!-- seems to be a dud -->
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>

but I don't know how to ultimately resolve this. One post recommended pulling in the schemas and merging them into the wsdl but that just caused more errors/confusion.

Thanks for any help you can offer.
Direct Responses: 11954 | Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.