Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.14.0

Bug #11729 WSDL Local File loading
Submitted: 2007-07-31 20:10 UTC
From: tmpvar Assigned: yunosh
Status: Closed Package: SOAP (version 0.11.0)
PHP Version: 5.2.2 OS: Windows XP
Roadmaps: (Not assigned)    

 [2007-07-31 20:10 UTC] tmpvar (Elijah Insua)
Description: ------------ when attempting to load a local WSDL file from the PEAR::SOAP package, it returns an error. Test script: --------------- $wsdl_url = 'file://C:/FedEx/RateService_v1.wsdl'; $client = new SOAP_Client($wsdl_url,true); Expected result: ---------------- no error Actual result: -------------- An error #WSDLCACHE occurred! Error: Unable to retrieve WSDL file://C:/FedEx/RateService_v1.wsdl,


 [2008-03-22 11:38 UTC] doconnor (Daniel O'Connor)
Could this be handled with Validate::uri($url, array('file', 'http', 'https')) ?
 [2008-03-22 11:55 UTC] yunosh (Jan Schneider)
Yes, but that would prevent file:// URLs from working, which is not the intention. We should instead check why they don't work, and fix that.
 [2008-03-22 14:15 UTC] doconnor (Daniel O'Connor)
Better reproduce code: <?php require_once 'SOAP/Client.php'; //Fetch a WSDL! $path = str_replace('\\', "/", dirname(__FILE__) . '/bug-11729.wsdl'); $soap = file_get_contents(''); file_put_contents($path, $soap); $wsdl_url = 'file://' . $path; print "Let's try: "; print $wsdl_url . "\n"; $client = new SOAP_Client($wsdl_url, true); $foo = array('hello world'); print $client->call("repeat", $foo);
 [2008-03-22 14:17 UTC] doconnor (Daniel O'Connor)
Patch worksforme when applied to 0.11.0
 [2012-01-14 18:59 UTC] doconnor (Daniel O'Connor)
-Status: Assigned +Status: Closed
This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on by the end of next Sunday (CET). If this was a problem with the website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.