title: SoapClient not working
body: <p>I have a php file in which a webservice is called with soapclient method.
  This file works properly when i run it independently. But when it is called from another php file, following line leads php file to die and does not show any error.</p>
  
  <pre><code>$client = new SoapClient("http://x.x.x.x/x/Send?wsdl");
  </code></pre>
  
  <p>I have used try-catch to find out the error , but it does not show anythings and remaining codes are not executed.</p>
  
  <p>
  
  <pre><code>$number     = $_GET['number'];
  $msg        = $_GET['msg'];
  $scode      = $_GET['scode'];
  $id         = $_GET['id'];
  
  if(!is_array($number)){
      $number = array($number);
  }
  
  if(!is_array($msg)){
      $msg = array($msg);
  }
  
  if(!is_array($scode)){
      $scode = array($scode);
  }
  
  if(!is_array($id)){
      $id = array($id);
  }
  
  $client = new SoapClient("http://x.x.x.x:xxx/x/Send?wsdl");
  
  try{
  $response = $client-&gt;function(
                      array(
                          'xxxxx'      =&gt; 'xx',
                          'xxxxx'      =&gt; 'xx',
                          'xxxxx'      =&gt; 'xx',
                          'xxxxx'      =&gt; xxx,
                          'xxxxx'      =&gt; $msg,
                          'xxxxx'      =&gt; $number,
                          'xxxxx'      =&gt; $scode,
                          'xxxxx'      =&gt; $id
                      ));
          return $response;
      }
      catch(Exception $e)
      {
          return $e-&gt;getMessage();
      }
  </code></pre>