Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class MiCliente extends CApplicationComponent{
- private $client = null;
- public $ws_url;
- private function getClienteInt() {
- if($this->client == null)
- {
- // para que reconozca nuevas funciones del WS que vayas creando
- ini_set ( 'soap.wsdl_cache_enable' , 0 );
- ini_set ( 'soap.wsdl_cache_ttl' , 0 );
- $this->client = new SoapClient($this->ws_url);
- }
- return $this->client;
- }
- public function obtenerMensajeRemoto($argX) {
- return $this->getClientInt()->getObtenerMensajeRemoto($argX);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment