|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #69417 "can't import schema" error when WSDL contains import and using a proxy
Submitted: 2015-04-10 12:12 UTC Modified: -
Avg. Score:4.3 ± 0.9
Reproduced:6 of 6 (100.0%)
Same Version:0 (0.0%)
Same OS:3 (50.0%)
From: marcos dot ramirez dot aranda at gmail dot com Assigned:
Status: Open Package: SOAP related
PHP Version: 5.6.7 OS: any
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: marcos dot ramirez dot aranda at gmail dot com
New email:
PHP Version: OS:


 [2015-04-10 12:12 UTC] marcos dot ramirez dot aranda at gmail dot com
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'


php-5.6.7-use-proxy.patch (last revision 2015-04-10 12:13 UTC by marcos dot ramirez dot aranda at gmail dot com)

Add a Patch

Pull Requests

Add a Pull Request

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Wed Feb 01 04:03:45 2023 UTC