SoapClient无法正常工作

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.

$client = new SoapClient("http://x.x.x.x/x/Send?wsdl");

I have used try-catch to find out the error , but it does not show anythings and remaining codes are not executed.

$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->function(
                    array(
                        'xxxxx'      => 'xx',
                        'xxxxx'      => 'xx',
                        'xxxxx'      => 'xx',
                        'xxxxx'      => xxx,
                        'xxxxx'      => $msg,
                        'xxxxx'      => $number,
                        'xxxxx'      => $scode,
                        'xxxxx'      => $id
                    ));
        return $response;
    }
    catch(Exception $e)
    {
        return $e->getMessage();
    }