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);
}
}
?>
lunes, 30 de diciembre de 2013
martes, 29 de octubre de 2013
Validando Formularios con HTML5 y Javascript.
Sin mas parla solo les dejo aquí el código es facilito de entender cualquier cosa me dejan un comentario.
validador indenpendiente de formularios con HTML5 y Javascript
$(document).ready(function()
{
$('#theIdOfMyForm').submit(function(event){
if(!this.checkValidity())
{
event.preventDefault();
}
});
});
Suscribirse a:
Entradas (Atom)