/**
* 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 fist 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 => 'http://amistad.correos.go.cr:82/wserPruebas/wsAppCorreos.wsAppCorreos.svc?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 => 'http://amistad.correos.go.cr:82/wserPruebas/wsAppCorreos.wsAppCorreos.svc?wsdl',
\WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_CLASSMAP => ClassMap::get(),
);
/**
* Samples for Ccr ServiceType
*/
$ccr = new \ServiceType\Ccr($options);
/**
* Sample call for ccrGetTrackingInfo operation/method
*/
if ($ccr->ccrGetTrackingInfo(new \StructType\CcrGetTrackingInfo()) !== false) {
print_r($ccr->getResult());
} else {
print_r($ccr->getLastError());
}
/**
* Sample call for ccrMovilNotificaciones operation/method
*/
if ($ccr->ccrMovilNotificaciones(new \StructType\CcrMovilNotificaciones()) !== false) {
print_r($ccr->getResult());
} else {
print_r($ccr->getLastError());
}
/**
* Sample call for ccrMovilTracking operation/method
*/
if ($ccr->ccrMovilTracking(new \StructType\CcrMovilTracking()) !== false) {
print_r($ccr->getResult());
} else {
print_r($ccr->getLastError());
}
/**
* Sample call for ccrMovilTarifaCCR operation/method
*/
if ($ccr->ccrMovilTarifaCCR(new \StructType\CcrMovilTarifaCCR()) !== false) {
print_r($ccr->getResult());
} else {
print_r($ccr->getLastError());
}
/**
* Sample call for ccrMovilTarifaBOX operation/method
*/
if ($ccr->ccrMovilTarifaBOX(new \StructType\CcrMovilTarifaBOX()) !== false) {
print_r($ccr->getResult());
} else {
print_r($ccr->getLastError());
}
/**
* Sample call for ccrMovilTarifaBOX_2 operation/method
*/
if ($ccr->ccrMovilTarifaBOX_2(new \StructType\CcrMovilTarifaBOX_2()) !== false) {
print_r($ccr->getResult());
} else {
print_r($ccr->getLastError());
}
/**
* Sample call for ccrServiciosBox operation/method
*/
if ($ccr->ccrServiciosBox(new \StructType\CcrServiciosBox()) !== false) {
print_r($ccr->getResult());
} else {
print_r($ccr->getLastError());
}
/**
* Sample call for ccrServiciosCCR operation/method
*/
if ($ccr->ccrServiciosCCR(new \StructType\CcrServiciosCCR()) !== false) {
print_r($ccr->getResult());
} else {
print_r($ccr->getLastError());
}
/**
* Sample call for ccrCodPostal operation/method
*/
if ($ccr->ccrCodPostal(new \StructType\CcrCodPostal()) !== false) {
print_r($ccr->getResult());
} else {
print_r($ccr->getLastError());
}
/**
* Sample call for ccrDistrito operation/method
*/
if ($ccr->ccrDistrito(new \StructType\CcrDistrito()) !== false) {
print_r($ccr->getResult());
} else {
print_r($ccr->getLastError());
}
/**
* Sample call for ccrCodDistrito operation/method
*/
if ($ccr->ccrCodDistrito(new \StructType\CcrCodDistrito()) !== false) {
print_r($ccr->getResult());
} else {
print_r($ccr->getLastError());
}
/**
* Sample call for ccrProvincia operation/method
*/
if ($ccr->ccrProvincia(new \StructType\CcrProvincia()) !== false) {
print_r($ccr->getResult());
} else {
print_r($ccr->getLastError());
}
/**
* Sample call for ccrCodProvincia operation/method
*/
if ($ccr->ccrCodProvincia(new \StructType\CcrCodProvincia()) !== false) {
print_r($ccr->getResult());
} else {
print_r($ccr->getLastError());
}
/**
* Sample call for ccrSucursalesCorreos operation/method
*/
if ($ccr->ccrSucursalesCorreos(new \StructType\CcrSucursalesCorreos()) !== false) {
print_r($ccr->getResult());
} else {
print_r($ccr->getLastError());
}
/**
* Sample call for ccrPaises operation/method
*/
if ($ccr->ccrPaises(new \StructType\CcrPaises()) !== false) {
print_r($ccr->getResult());
} else {
print_r($ccr->getLastError());
}
/**
* Sample call for ccrCanton operation/method
*/
if ($ccr->ccrCanton(new \StructType\CcrCanton()) !== false) {
print_r($ccr->getResult());
} else {
print_r($ccr->getLastError());
}
/**
* Sample call for ccrCodCanton operation/method
*/
if ($ccr->ccrCodCanton(new \StructType\CcrCodCanton()) !== false) {
print_r($ccr->getResult());
} else {
print_r($ccr->getLastError());
}
/**
* Sample call for ccrCanton2 operation/method
*/
if ($ccr->ccrCanton2(new \StructType\CcrCanton2()) !== false) {
print_r($ccr->getResult());
} else {
print_r($ccr->getLastError());
}
/**
* Sample call for ccrTracking operation/method
*/
if ($ccr->ccrTracking(new \StructType\CcrTracking()) !== false) {
print_r($ccr->getResult());
} else {
print_r($ccr->getLastError());
}
/**
* Sample call for ccrRegistroEnvio operation/method
*/
if ($ccr->ccrRegistroEnvio(new \StructType\CcrRegistroEnvio()) !== false) {
print_r($ccr->getResult());
} else {
print_r($ccr->getLastError());
}
/**
* Sample call for ccrRegistroEnvioWeb operation/method
*/
if ($ccr->ccrRegistroEnvioWeb(new \StructType\CcrRegistroEnvioWeb()) !== false) {
print_r($ccr->getResult());
} else {
print_r($ccr->getLastError());
}
/**
* Sample call for ccrGenerarGuia operation/method
*/
if ($ccr->ccrGenerarGuia(new \StructType\CcrGenerarGuia()) !== false) {
print_r($ccr->getResult());
} else {
print_r($ccr->getLastError());
}
/**
* Sample call for ccrGenerarGuiaWeb operation/method
*/
if ($ccr->ccrGenerarGuiaWeb(new \StructType\CcrGenerarGuiaWeb()) !== false) {
print_r($ccr->getResult());
} else {
print_r($ccr->getLastError());
}
/**
* Sample call for ccrListadoServiciosTienda operation/method
*/
if ($ccr->ccrListadoServiciosTienda(new \StructType\CcrListadoServiciosTienda()) !== false) {
print_r($ccr->getResult());
} else {
print_r($ccr->getLastError());
}
/**
* Sample call for ccrListadoServiciosTiendaDetallado operation/method
*/
if ($ccr->ccrListadoServiciosTiendaDetallado(new \StructType\CcrListadoServiciosTiendaDetallado()) !== false) {
print_r($ccr->getResult());
} else {
print_r($ccr->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