title: PHP Error Class 'SoapClient' not found
body: <p>I was trying to install Wordpress on our server to test, but in order to do that I had to upgrade our current PHP version to 5.3. I upgraded our PHP and I am now finding that our Purolator shipping module is no longer working. According to our host support the "purolator.php" file is missing data that the new version of PHP requires. Unfortunately, I can't revert our PHP version back and our programmer is away.</p>
  
  <p>This is the error message I was able to get from our website host support team: </p>
  
  <pre><code>tail /var/www/vhosts/phantomcables.com/statistics/logs/error_log -f 
  [Thu Jul 19 08:34:28 2012] [error] [client 70.51.168.201] PHP Fatal 
  error:  Class 'SoapClient' not found in 
  /var/www/vhosts/phantomcables.com/httpdocs/shippings/purolator.php on line 
  49, referer: https://phantomcables.com/index.php?dispatch=checkout.cart 
  </code></pre>
  
  <p>These are lines 40 to 72:</p>
  
  <pre><code>function createPWSSOAPClient()
  {
      /** Purpose : Creates a SOAP Client in Non-WSDL mode with the appropriate authentication and 
      *           header information
      **/
      //Set the parameters for the Non-WSDL mode SOAP communication with your Development/Production credentials
      //echo DIR_SHIPPING_FILES."estimatingservice.wsdl";
  
      $url = "https://webservices.purolator.com/PWS/V1/Estimating/EstimatingService.asmx";
      $client = new SoapClient( DIR_SHIPPING_FILES."estimatingservice.wsdl", 
                                array (
                                          'trace'         =&gt;  true,
                                          'location'      =&gt;  $url,
                                          'uri'           =&gt;  "http://purolator.com/pws/datatypes/v1",
                                          'login'         =&gt;  PRODUCTION_KEY,
                                          'password'      =&gt;  PRODUCTION_PASS
                                      )
                              );
  
      //Define the SOAP Envelope Headers
      $headers[] = new SoapHeader ( 'http://purolator.com/pws/datatypes/v1', 'RequestContext', 
                                    array (
                                              'Version'           =&gt;  '1.0',
                                              'Language'          =&gt;  'en',
                                              'GroupID'           =&gt;  'xxx',
                                              'RequestReference'  =&gt;  'Rating Example'
                                         )
                                  ); 
      //Apply the SOAP Header to your client                            
      $client-&gt;__setSoapHeaders($headers);
  
      return $client;
  }
  </code></pre>
  
  <p>Any help would be greatly appreciated.</p>