Created
March 2, 2012 18:02
-
-
Save javierwilson/1960078 to your computer and use it in GitHub Desktop.
ejemplo de consulta soap usando NuSoap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function consultaServicios($movil, $pass, $url){ | |
require_once('nusoap/nusoap.php'); | |
$cliente = new nusoap_client($url, true); | |
$err = $cliente->getError(); | |
if($err){ | |
$res = "->".$err; | |
return $res; | |
} | |
$params = array('movil' => $movil, 'pass' => $pass); | |
$res = $cliente->call('consultaServicios', array($params)); | |
$err = $cliente->getError(); | |
if($err){ | |
$res = "->".$err; | |
return $res; | |
} | |
return $res; | |
} | |
$url = "http://examplo.com/?wsdl"; | |
$clave = '*********'; | |
$phone = '55555555'; | |
print_r(consultaServicios($phone, $clave, $url)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment