title: Calling a SOAP web service with a complex data type using PHP
body: <p>I'm trying to write PHP to call a web service. Using SoapUI, I construct the following call to the service, which works:</p>
  
  <pre><code>&lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://gmo.ws.client.np.z2.com/xsd"&gt;
     &lt;soapenv:Header/&gt;
     &lt;soapenv:Body&gt;
        &lt;xsd:login&gt;
           &lt;xsd:auth&gt;
              &lt;xsd:password&gt;myPwd&lt;/xsd:password&gt;
              &lt;xsd:userName&gt;myUsername&lt;/xsd:userName&gt;
              &lt;xsd:version&gt;1.0&lt;/xsd:version&gt;
           &lt;/xsd:auth&gt;
           &lt;xsd:applicationName&gt;wnp&lt;/xsd:applicationName&gt;
        &lt;/xsd:login&gt;
     &lt;/soapenv:Body&gt;
  &lt;/soapenv:Envelope&gt;
  </code></pre>
  
  <p>I'm using the following PHP to call the same service:</p>
  
  <pre><code>&lt;?php
  $client = new soapclient('http://www.z2systems.com:8888/neonws/services/GMOService');
  
  $auth_array = array(
      'auth' =&gt; array(
        'password' =&gt; 'myPwd',
        'userName' =&gt; 'myUsername',
        'version' =&gt; '1.0'
      ),
      'applicationName' =&gt; 'wnp'
   );
  
  $login_results = $client-&gt;__soapcall('login', $auth_array);
  ?&gt;
  </code></pre>
  
  <p>When I make the call, I'm getting an error back "Parsing WSDL: Couldn't find ". </p>
  
  <p>The provider of the web service has been less than helpful, so any advice would be greatly appreciated!</p>