christiansalazarh

MiCliente (webservice)

Jul 10th, 2013
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.53 KB | None | 0 0
  1. class MiCliente extends CApplicationComponent{
  2.     private $client = null;
  3.         public $ws_url;
  4.  
  5.     private function getClienteInt() {
  6.         if($this->client == null)
  7.         {
  8.             // para que reconozca nuevas funciones del WS que vayas creando
  9.             ini_set (  'soap.wsdl_cache_enable'  ,  0  );
  10.             ini_set (  'soap.wsdl_cache_ttl'  ,  0  );
  11.             $this->client = new SoapClient($this->ws_url);
  12.         }
  13.         return $this->client;
  14.     }
  15.     public function obtenerMensajeRemoto($argX) {
  16.         return $this->getClientInt()->getObtenerMensajeRemoto($argX);
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment