title: SOAP - load local WSDL file
body: <p>How to load a local WSDL file into <code>SoapClient</code>? </p>
  
  <pre><code>$wsdl = __DIR__.'/wsdl.wsdl';
  $this-&gt;client = new SoapClient($wsdl);
  
  $xsd = __DIR__.'/wsdl/xsd/xmldsig-core-schema.xsd';
  </code></pre>
  
  <blockquote>
    <p>PHP Fatal error:  SOAP-ERROR: Parsing WSDL: Could not find any usable
    binding services in WSDL.</p>
  </blockquote>
  
  <p>relative path to XSD file from WSDL file: <code>./xsd/xmldsig-core-schema.xsd</code></p>
  
  <h1>WSDL</h1>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;wsdl:definitions xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" &gt;
      &lt;wsdl:types&gt;
  &lt;/wsdl:definitions&gt;
  </code></pre>