views:

14

answers:

0

I have a Php application running on my "Server A" that consumes a .NET Web Service hosted on my "Server B". For some reason sometimes the IIS on my "B Server" fails to response and on my Php web application takes exactly 60 seconds to load the page where the webservice call is. I want to be able to change those 60 seconds because is too long for my clients to wait. Also If there is a way to catch somekind of exception it would be great.

I tryed something like this but the nusoap is not throwing any exceptions if the web service does not respond:

 try{
     $result = $client->call("GetTopSellersFromCategory", $parametros);
     return $result;
 }
 catch (Exception $ex)
 {
      /*$mensaje= ($ex->getMessage());
      $codigo= ($ex->getCode());
      $fichero= ($ex->getFile());
      $linea= ($ex->getLine());
      $log_mensaje= date("H:i d-m-Y")." Error:: $codigo en $fichero en la linea $linea. Error $mensaje";*/
      return "error";
 }

Thanks in advance for any help you can give me.

Cheers

Juan