I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
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
Posted on 2009-12-16 11:34:57-08 by mkutter in response to 11949
Re: wsdl2perl doesn't handle schema import
Hi,
SOAP::WSDL requires the "schemaLocation" attribute to be present with a import namespace="" tag for resolving the schema.
Download the correspondent files, place them in the same directory as the WSDL and add schemaLocation="filename" to the import tag - relative URLs should be supported in the current version (in case they fail, just use absolute file:// URLs)
Regards,
Martin
Direct Responses: 11955 | Write a response
Posted on 2009-12-16 11:36:15-08 by mkutter in response to 11954
Re: wsdl2perl doesn't handle schema import
And, sorry, I seem to have missed it: One of the namespaces to include is the SOAP Encoding namespace, which means your WSDL uses rpc/encoded (or, less probable, document/encoded) style. This is not supported by SOAP::WSDL.
Martin
Direct Responses: 11957 | Write a response
Posted on 2009-12-16 13:16:14-08 by magdude in response to 11955
Re: wsdl2perl doesn't handle schema import
Thanks for the info, greatly appreciated.
Direct Responses: Write a response