title: Parsing WSDL with PHP SoapClient
body: <p>I am trying to consume a SOAP web service with PHP.</p>
  <p>The web service WSDL can be found <a href="https://eu1.praxedo.com/eTech/services/cxf/v6/BusinessEventManager?wsdl" rel="nofollow noreferrer">here</a>.</p>
  <p>Simply creating the client like that:</p>
  <pre><code>try {
      $wsdlUrl = 'https://eu1.praxedo.com/eTech/services/cxf/v6/BusinessEventManager?WSDL';
      $client = new SoapClient($wsdlUrl);
  }
  catch(Exception $e) {
      echo $e-&gt;getMessage();
  }
  </code></pre>
  <p>This fails with the following error:</p>
  <blockquote>
  <p><strong>SOAP-ERROR: Parsing WSDL: Unknown required WSDL extension 'http://schemas.xmlsoap.org/ws/2004/09/policy'</strong></p>
  </blockquote>
  <p>I tried using 2 separate generators:</p>
  <ul>
  <li><a href="https://github.com/WsdlToPhp/PackageGenerator" rel="nofollow noreferrer">https://github.com/WsdlToPhp/PackageGenerator</a></li>
  <li><a href="https://github.com/wsdl2phpgenerator/wsdl2phpgenerator" rel="nofollow noreferrer">https://github.com/wsdl2phpgenerator/wsdl2phpgenerator</a></li>
  </ul>
  <p>They both fail with the exact same error.</p>
  <p>PHP version is <code>7.0</code></p>
  <p>I found <a href="https://bugs.php.net/bug.php?id=46130" rel="nofollow noreferrer">this old bug report</a> from 2008 which apparently never got fixed because not enough info was submitted at the time.</p>
  <p>Does anyone know how I can fix that issue?</p>