|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patchesphp-5.6.7-use-proxy.patch (last revision 2015-04-10 12:13 UTC by marcos dot ramirez dot aranda at gmail dot com)Pull Requests |
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 10:00:02 2025 UTC |
Description: ------------ A "new SoapClient ()" clause on WSDL mode will fail if a.- the WSDL contains one o more xsd:import clauses, and b.- the client is using a proxy when processing the import clause, SoapClient will try to connect to the proxy host and use a GET /path/from/schemaLocation(path+query string) HTTP/1.0 instead of GET schemaLocation(full uri) HTTP/1.0 Also, the current request will cause a "TAG_NONE/400" error on the proxy log. Test script: --------------- $client = new SoapClient($wsdl, // $wsdl MUST contain an <xsd:import clause> array('proxy_host' => "proxy_ip", 'proxy_port' => proxy_port) ); Expected result: ---------------- object $client is created Actual result: -------------- exception with the message SOAP-ERROR: Parsing Schema: can't import schema from 'schemaLocation'