Edit report at https://pear.php.net/bugs/bug.php?id=11729&edit=1

ID: 11729
Updated by: daniel.oconnor@gmail.com
Reported By: tmpvar at gmail dot com
Summary: WSDL Local File loading
-Status: Assigned
+Status: Closed
Type: Bug
Package: SOAP
Operating System: Windows XP
Package Version: 0.11.0
PHP Version: 5.2.2
Assigned To: yunosh
Roadmap Versions:
New Comment:

-Status: Assigned
+Status: Closed
This bug has been fixed in SVN.

If this was a documentation problem, the fix will appear on pear.php.net
by the end of next Sunday (CET).

If this was a problem with the pear.php.net 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.

Previous Comments:

[2008-03-22 10:17:57] doconnor

Patch worksforme when applied to 0.11.0


[2008-03-22 10:15:52] doconnor

Better reproduce code:

require_once 'SOAP/Client.php';

//Fetch a WSDL!
$path = str_replace('\\', "/", dirname(__FILE__) . '/bug-11729.wsdl');
$soap =
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 07:55:40] yunosh

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 07:38:46] doconnor

Could this be handled with Validate::uri($url, array('file', 'http',
'https')) ?


[2007-07-31 16:10:05] tmpvar

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,


Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
postedJan 14, '12 at 12:59p
activeJan 14, '12 at 12:59p

1 user in discussion

Daniel Oconnor: 1 post



site design / logo © 2022 Grokbase