Bug #69417 [NEW]: "can't import schema" error when WSDL contains import and using a proxy
| From: | marcos dot ramirez dot aranda at gmail dot com | Date: | Fri, 10 Apr 2015 12:12:02 +0000 |
| Subject: | Bug #69417 [NEW]: "can't import schema" error when WSDL contains import and using a proxy | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-191933@lists.php.net to get a copy of this message | ||
From: marcos dot ramirez dot aranda at gmail dot com
Operating system: any
PHP version: 5.6.7
Package: SOAP related
Bug Type: Bug
Bug description:"can't import schema" error when WSDL contains import and using a
proxy
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'
--
Edit bug report at https://bugs.php.net/bug.php?id=69417&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=69417&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=69417&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=69417&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=69417&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=69417&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=69417&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=69417&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=69417&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=69417&r=support
Expected behavior: https://bugs.php.net/fix.php?id=69417&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=69417&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=69417&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=69417&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=69417&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=69417&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=69417&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=69417&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=69417&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=69417&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=69417&r=mysqlcfg