/**
* This file aims to show you how to use this generated package.
* In addition, the goal is to show which methods are available and the first needed parameter(s)
* You have to use an associative array such as:
* - the key must be a constant beginning with WSDL_ from AbstractSoapClientBase class (each generated ServiceType class extends this class)
* - the value must be the corresponding key value (each option matches a {@link http://www.php.net/manual/en/soapclient.soapclient.php} option)
* $options = array(
* \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_URL => 'https://presms.itsoft.es/SIC/cxfservices/Envios?WSDL',
* \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_TRACE => true,
* \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_LOGIN => 'you_secret_login',
* \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_PASSWORD => 'you_secret_password',
* );
* etc...
*/
require_once __DIR__ . '/vendor/autoload.php';
/**
* Minimal options
*/
$options = array(
\WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_URL => 'https://presms.itsoft.es/SIC/cxfservices/Envios?WSDL',
\WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_CLASSMAP => \mensajeriabonos\ClassMap::get(),
);
/**
* Samples for Enviopush ServiceType
*/
$enviopush = new \mensajeriabonos\ServiceType\Enviopush($options);
/**
* Sample call for enviopush operation/method
*/
if ($enviopush->enviopush(new \mensajeriabonos\StructType\Enviopush()) !== false) {
print_r($enviopush->getResult());
} else {
print_r($enviopush->getLastError());
}
/**
* Samples for Enviar ServiceType
*/
$enviar = new \mensajeriabonos\ServiceType\Enviar($options);
/**
* Sample call for enviarSms operation/method
*/
if ($enviar->enviarSms(new \mensajeriabonos\StructType\EnviarSms()) !== false) {
print_r($enviar->getResult());
} else {
print_r($enviar->getLastError());
}
/**
* Sample call for enviarSmsSimpleCertificado operation/method
*/
if ($enviar->enviarSmsSimpleCertificado(new \mensajeriabonos\StructType\EnviarSmsSimpleCertificado()) !== false) {
print_r($enviar->getResult());
} else {
print_r($enviar->getLastError());
}
/**
* Sample call for enviarPushCertificado operation/method
*/
if ($enviar->enviarPushCertificado(new \mensajeriabonos\StructType\EnviarPushCertificado()) !== false) {
print_r($enviar->getResult());
} else {
print_r($enviar->getLastError());
}
/**
* Sample call for enviarSmsCertificado operation/method
*/
if ($enviar->enviarSmsCertificado(new \mensajeriabonos\StructType\EnviarSmsCertificado()) !== false) {
print_r($enviar->getResult());
} else {
print_r($enviar->getLastError());
}
/**
* Sample call for enviarSMI operation/method
*/
if ($enviar->enviarSMI(new \mensajeriabonos\StructType\EnviarSMI()) !== false) {
print_r($enviar->getResult());
} else {
print_r($enviar->getLastError());
}
/**
* Sample call for enviarPush operation/method
*/
if ($enviar->enviarPush(new \mensajeriabonos\StructType\EnviarPush()) !== false) {
print_r($enviar->getResult());
} else {
print_r($enviar->getLastError());
}
/**
* Sample call for enviarSmsSimple operation/method
*/
if ($enviar->enviarSmsSimple(new \mensajeriabonos\StructType\EnviarSmsSimple()) !== false) {
print_r($enviar->getResult());
} else {
print_r($enviar->getLastError());
}
/**
* Samples for Obtener ServiceType
*/
$obtener = new \mensajeriabonos\ServiceType\Obtener($options);
/**
* Sample call for obtenerEntidadDesdeCodEquivSistExterno operation/method
*/
if ($obtener->obtenerEntidadDesdeCodEquivSistExterno(new \mensajeriabonos\StructType\ObtenerEntidadDesdeCodEquivSistExterno()) !== false) {
print_r($obtener->getResult());
} else {
print_r($obtener->getLastError());
}
/**
* Sample call for obtenerIdMensajeAPartirMessageRef operation/method
*/
if ($obtener->obtenerIdMensajeAPartirMessageRef(new \mensajeriabonos\StructType\ObtenerIdMensajeAPartirMessageRef()) !== false) {
print_r($obtener->getResult());
} else {
print_r($obtener->getLastError());
}
/**
* Samples for Enviosms ServiceType
*/
$enviosms = new \mensajeriabonos\ServiceType\Enviosms($options);
/**
* Sample call for enviosms operation/method
*/
if ($enviosms->enviosms(new \mensajeriabonos\StructType\Enviosms()) !== false) {
print_r($enviosms->getResult());
} else {
print_r($enviosms->getLastError());
}
/**
* Sample call for enviosmsSimple operation/method
*/
if ($enviosms->enviosmsSimple(new \mensajeriabonos\StructType\EnviosmsSimple()) !== false) {
print_r($enviosms->getResult());
} else {
print_r($enviosms->getLastError());
}
/**
* Samples for Suscribir ServiceType
*/
$suscribir = new \mensajeriabonos\ServiceType\Suscribir($options);
/**
* Sample call for suscribirSMI operation/method
*/
if ($suscribir->suscribirSMI(new \mensajeriabonos\StructType\SuscribirSMI()) !== false) {
print_r($suscribir->getResult());
} else {
print_r($suscribir->getLastError());
}
Don't be shy, don't hesitate to contact us for any subject, we'll be glad to help.
This platform is provided to give developpers and non developpers a way to easily consume SOAP Web Services or share their own SOAP Web Services with extra features powered by the platform.
© 2025 Providr.IO