title: PHP SoapClient with Proxy: How to access schema over proxy?
body: <p>When initializing the SoapClient class with proxy-options, the WSDL and its methods are accessed over proxy correctly:</p>
  
  <pre><code>$client = new SoapClient(
      WSDL_URL, 
      array(
          'proxy_host'     =&gt; PROXY_HOST,
          'proxy_port'     =&gt; PROXY_PORT
      )
  );
  </code></pre>
  
  <p>Schemas (schemaLocation) however are not getting accessed over the specified proxy:</p>
  
  <pre><code>&lt;xs:schema attributeFormDefault="unqualified" elementFormDefault="unqualified"&gt;
      &lt;xs:import namespace="http://example.com/webservice/cisbase" schemaLocation="http://example.com/ws/cis_base.xsd"/&gt;
      &lt;xs:import namespace="http://de.ws.example" schemaLocation="http://example.com/ws/is_base_de.xsd"/&gt;
  &lt;/xs:schema&gt;
  </code></pre>
  
  <p>This leads to:</p>
  
  <blockquote>
    <p>SOAP-ERROR: Parsing Schema: can't import schema from ...</p>
  </blockquote>
  
  <p>So basically the SoapClient is trying to access the <em>cis_base.xsd</em> and <em>is_base_de.xsd</em> without proxy which is failing.</p>
  
  <p>Is there a reason why the PHP SoapClient behaves like this and is there a workaround?</p>