Bueno, una clase para el manejo de peticiones a webservices por soap, utilizando las librerias de php5
?php/*
WSDL PRO..... Cliet for SoapClient
It's Free
Es gratis pero no te olvides donde la conseguiste...
http://elblogcodigolandia.blogspot.com
Luis Toscano - admin@caribecoders.com
*/
class wsdlpro{
public $client;
public function wsdlpro(){
}
public function initClient($url){
$this->client = new SoapClient($url,array('cache_wsdl' => WSDL_CACHE_NONE, 'trace' => TRUE));
}
public function execMethod($method,$param){
try{
$res = $this->client->$method($param);
return array('status'=>'true','data'=>$res);
}catch (Exception $e) {
trigger_error($e->getMessage(), E_USER_WARNING);
}
}
public function resetWsdl(){
unset($this->client);
}
}
?>