PHP SOAP Help

Discussion in 'PHP' started by ip076, Sep 23, 2007.

  1. #1
    I've downloaded the Pear SOAP package and installed it in my public_html folder on my hosted web server.

    I try to run this code:

     
      <?php
     
            require_once('../SOAP/Client.php');
     
            $DirectFlight_Authentication = array(
                    'user'          => 'testaj',
                    'pass'          => 'API KEY HERE',
            );
     
     $wsdl_url = 'http://flightaware.com/commercial/flightxml/data/wsdl1.xml';
      $WSDL = new SOAP_WSDL($wsdl_url,$DirectFlight_Authentication);
      $soap = $WSDL->getProxy();
     
      $result = $soap->Enroute('KIAH',10,'airline',0);
     
      ?>
    
    PHP:
    I seem to get this error:

    I've looked through the file. Line 855 is the last line of the file. I do not see where SOAP_Client is declared more than once with the Client.php page. This page is as it was "out of the box" when I downloaded the soap package. I did not edit it at all. Anyone ever have any of the same experiences or have any ideas how I can get past this little road block?

    Thanks!
     
    ip076, Sep 23, 2007 IP