I am creating a PHP script using Cleaning soap for connecting to some web service, after i test drive it in your area it really works fine, however when I test drive it on my small VPS server with myhosting.com, it does not work constantly, it really works fine two or three occasions each day, however the other request are declined with a socket break when utilizing NuSoap and error fetching headers when utilizing Cleaning soap enabled.

My VPS is running CentOS and Apache.

Can anybody assist me to?? I am dying here.

Here's my code:

<?php
require_once('nusoap_lib/nusoap.php');

///////***************NUSOAP*********************//////////

$clientLogin = new nusoap_client("http://200.57.178.137:1286/ws/USERPORTAL.apw?    WSDL",true,array('proxyhost' => "http://200.57.178.137", 'proxyport' =>"1286",'cache_wsdl' => WSDL_CACHE_NONE));
$clientLogin->use_curl=true;
if($clientLogin->fault)
{
    $text = 'Error: '.$clientLogin->fault;
    echo $text;
}
else
{
    if ($clientLogin->getError())
    {
        $text = 'Error: '.$clientLogin->getError();
        echo $text;
    }
    else
    {
        //Se hace la llamada al metodo de login con los parametros necesarios
        $login_call = $clientLogin->call(
            'PRTLOGIN',
            array('USERLOGIN'=>'PRUEBA','USERPASSWORD'=>'p','USERTYPE'=>'1'),
            'http://webservices.microsiga.com.br/userportal.apw'
        );
        print_r($login_call);

        // Display the debug messages
        echo '<h2>Debug</h2>';
        echo '<pre>' . htmlspecialchars($clientLogin->debug_str, ENT_QUOTES) . '</pre>';
        echo '<pre>'.htmlspecialchars($clientLogin->request).'</pre>';
        echo '<pre>'.htmlspecialchars($clientLogin->response).'</pre>';
        unset($clientLogin);
    }
}