title: WSDL error on translating SOAP client from PHP5 to PHP4/nuSOAP
body: <p>Alright, I'm tired of racking my brain on this, so hopefully someone here can enlighten me:</p>
  
  <p>I'm trying to access a SOAP service using PHP and nuSOAP.  While I have successfully accessed the service using PHP5's built-in SoapClient, I am unfortunately limited to PHP4, and using nuSOAP; resulting in a WSDL error that I can't figure out.</p>
  
  <p>The PHP5 code (works):</p>
  
  <pre><code>   $wsdl= 'https://mybilling.hipointinc.com:8443/wsdl.fcgi?get=Session.xsd';
     $soap_client = new SoapClient($wsdl, array('trace'=&gt;1));
  
     $args = array("login" =&gt; $account_id, "password" =&gt; $password, "domain" =&gt; $domain);
     $session = $soap_client-&gt;login($args);
  </code></pre>
  
  <p>The nuSOAP code (doesn't work):</p>
  
  <pre><code>   $wsdl= 'https://mybilling.hipointinc.com:8443/wsdl.fcgi?get=Session.xsd';
     $namespace = 'https://mybilling.hipointinc.com/UM/SOAP/Session';
     $soap_client = new soapclient($wsdl, true, null, $namespace);
  
     $args = array("login" =&gt; $account_id, "password" =&gt; $password, "domain" =&gt; $domain);
     $session = $soap_client-&gt;call('login', array($args));
  </code></pre>
  
  <p>This returns the following error:</p>
  
  <pre><code>  wsdl error: http://schemas.portaone.com/soap:LoginRequest (LoginRequest) is not a supported type.
  </code></pre>
  
  <p>Why does the PHP5 version work, while the nuSOAP version doesn't?  I'm sure it just something stupid I've overlooked, but I would appreciate some help.</p>
  
  <p>For more info, I'm using the Porta Switch, PortaBilling XML API: <a href="http://portaone.com/resources/docs/PortaSwitch/m-r-28/PortaSwitch_Interfaces_MR28.pdf" rel="nofollow">documentation</a></p>