Thread

Posted on Sun May 25 22:37:59 2008 by drfrog
disabling warnings
i keep getting
cannot import document for namespace >http://schemas.xmlsoap.org/soap/encoding/< without location a +t /usr/local/share/perl/5.8.8/SOAP/WSDL/Expat/WSDLParser.pm line 71.
is there anyway to disable these warnings without having to go into the module and comment out the warn?
Direct Responses: 7932 | Write a response
Posted on Sun May 25 23:49:50 2008 by mkutter in response to 7929
Re: disabling warnings
Are you using SOAP::WSDL directly or via a interface generated by wsdl2perl.pl? For using SOAP::WSDL directly, only something like this will work:
{ local $SIG{__WARN__} = sub {}; ... code that throws warnings ... }
I'll add silently ignoring failing imports as a feature request.
Martin
Direct Responses: 7933 | Write a response
Posted on Mon May 26 00:56:17 2008 by drfrog in response to 7932
Re: disabling warnings
awesome thanks
Write a response