Skip to content

Instantly share code, notes, and snippets.

Last active May 5, 2023 16:29
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
define("DEBUG", TRUE);
ini_set('display_errors', '1');
$wsdl = ''; //URL de nuestro servicio soap
//Basados en la estructura del servicio armamos un array
$params = Array(
"Arg1" => 5,
"Arg2" => 10
$options = Array(
"uri"=> $wsdl,
"style"=> SOAP_RPC,
"soap_version"=> SOAP_1_1,
"cache_wsdl"=> WSDL_CACHE_BOTH,
"connection_timeout" => 15,
"trace" => false,
"encoding" => "UTF-8",
"exceptions" => false,
//Enviamos el Request
$soap = new SoapClient($wsdl, $options);
$result = $soap->AddInteger($params); //Aquí cambiamos dependiendo de la acción del servicio que necesitemos ejecutar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment