From: Operating system: linux PHP version: 5.3.10 Package: SOAP related Bug Type: Bug Bug description:cant import schema when using https soapservice
Description: ------------ here is my problem: i want to access a soap-service via https://connect.example.com/portal/portal?wsdl with php 5.3.3 my script worked, with 5.3.10 it does not work anymore. in the xml returned: <service name="PortalService"> <port name="PortalPort" binding="tns:PortalPortBinding"> <soap:address location="http://connect.example.com:80/portal/portal"/> </port> </service> </definitions> so there is a http and not a https location. is this wrong? i am not sure, whether this should work in general (using https but with a http-location). we use a soapservice from an extern service provider which requires us to use https for the calls. in my php script i used $client = new SoapClient('https://connect.example.com/portal/portal?wsdl', array( 'proxy_host' => 'myproxy', 'proxy_port' => '8080', 'trace' => 1, 'exceptions' => 1, // actual use https-endpoint 'location' => 'https://connect.juris.de/jportal/ws/fvportalnrw' )); with php 5.3.3 i could create the soapclient and do my requests. the wsdl is downloaded and cached in /tmp. with php 5.3.10 i get: PHP Fatal error: SOAP-ERROR: Parsing Schema: can't import schema from 'http://connect.example.com:80/portal/portal?xsd=1' in ./t.php on line 9 PHP Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing Schema: can't import schema from 'http://connect.example.com:80/portal/portal?xsd=1' in ./t2.php:9 so the schema could not be downloaded! what's wrong here? was it a bug in 5.3.3 - and it should not have worked there - or is it a bug in 5.3.10 (same for 5.3.8). if i used php 5.3.3 to access the service, a wsdl is cached in /tmp and then i can call the script with php 5.3.10. Test script: --------------- <?php $client = new SoapClient('https://connect.example.com/portal/portal?wsdl', array( 'proxy_host' => 'myproxy', 'proxy_port' => '8080', 'trace' => 1, 'exceptions' => 1, // actual use https-endpoint 'location' => 'https://connect.juris.de/jportal/ws/fvportalnrw' )); print_r($client); ?> Expected result: ---------------- SoapClient Object ( [_proxy_host] => myproxy [_proxy_port] => 8080 [trace] => 1 [_soap_version] => 1 [sdl] => Resource id #9 ) Actual result: -------------- PHP Fatal error: SOAP-ERROR: Parsing Schema: can't import schema from 'http://connect.example.com:80/portal/portal?xsd=1' in ./t.php on line 9 PHP Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing Schema: can't import schema from 'http://connect.example.com:80/portal/portal?xsd=1' in ./t2.php:9 -- Edit bug report at https://bugs.php.net/bug.php?id=61463&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=61463&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=61463&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=61463&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=61463&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=61463&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=61463&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=61463&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=61463&r=needscript Try newer version: https://bugs.php.net/fix.php?id=61463&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=61463&r=support Expected behavior: https://bugs.php.net/fix.php?id=61463&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=61463&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=61463&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=61463&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=61463&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=61463&r=dst IIS Stability: https://bugs.php.net/fix.php?id=61463&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=61463&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=61463&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=61463&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=61463&r=mysqlcfg