meta data de esta página
Diferencias
Muestra las diferencias entre dos versiones de la página.
| Ambos lados, revisión anterior Revisión previa Próxima revisión | Revisión previa | ||
|
enviarfactura [2025/12/04 14:19] 216.73.216.221 se ha restaurado la vieja versión (2025/11/15 23:37) |
enviarfactura [2026/01/17 10:45] (actual) 57.141.16.0 se ha restaurado la vieja versión (2025/09/05 14:01) |
||
|---|---|---|---|
| Línea 505: | Línea 505: | ||
| - | |||
| - | |||
| - | |||
| - | <code php Codigo Ejemplo PHP> | ||
| - | |||
| - | try { | ||
| - | include (" | ||
| - | $wsdl_url = ' | ||
| - | $client = new SOAPClient($wsdl_url); | ||
| - | $objeto=new PeticionFactura(); | ||
| - | $doc=new Documento(); | ||
| - | $objeto-> | ||
| - | | ||
| - | // *****************DATOS INFOTRIBUTARIA*************** | ||
| - | $infofact=new InfoFactura(); | ||
| - | $objeto-> | ||
| - | $infofact-> | ||
| - | $infofact-> | ||
| - | $infofact-> | ||
| - | $infofact-> | ||
| - | $infofact-> | ||
| - | $infofact-> | ||
| - | $infofact-> | ||
| - | $pag=new Pago(); | ||
| - | $pag-> | ||
| - | $pag-> | ||
| - | $pag-> | ||
| - | $pag-> | ||
| - | $infofact-> | ||
| - | | ||
| - | |||
| - | |||
| - | $infofact-> | ||
| - | $infofact-> | ||
| - | $totimp=new TotalConImpuesto(); | ||
| - | $totimp-> | ||
| - | $totimp-> | ||
| - | $totimp-> | ||
| - | $totimp-> | ||
| - | $totimp-> | ||
| - | $totimp-> | ||
| - | $totimp-> | ||
| - | | ||
| - | | ||
| - | $infofact-> | ||
| - | | ||
| - | |||
| - | $infofact-> | ||
| - | $infofact-> | ||
| - | $infofact-> | ||
| - | $infofact-> | ||
| - | | ||
| - | | ||
| - | // *********************DATOS INFOFACTURA*************** | ||
| - | | ||
| - | $infotrib = new InfoTributaria(); | ||
| - | $infotrib-> | ||
| - | $infotrib-> | ||
| - | $infotrib-> | ||
| - | $infotrib-> | ||
| - | $infotrib-> | ||
| - | $infotrib-> | ||
| - | $infotrib-> | ||
| - | $objeto-> | ||
| - | $objeto-> | ||
| - | $objeto-> | ||
| - | $objeto-> | ||
| - | | ||
| - | |||
| - | // ********************DETALLES********************* | ||
| - | | ||
| - | $det=new DetalleFactura(); | ||
| - | $det-> | ||
| - | $det-> | ||
| - | $det-> | ||
| - | $det-> | ||
| - | $impDet=new ImpuestoDetalle(); | ||
| - | $impDet-> | ||
| - | $impDet-> | ||
| - | $impDet-> | ||
| - | $impDet-> | ||
| - | $impDet-> | ||
| - | $det-> | ||
| - | $det-> | ||
| - | $det-> | ||
| - | $det-> | ||
| - | $det-> | ||
| - | $det-> | ||
| - | $doc-> | ||
| - | | ||
| - | $pet = [array(" | ||
| - | $return = $client-> | ||
| - | | ||
| - | |||
| - | } catch (Exception $e) { | ||
| - | echo " | ||
| - | } | ||
| - | | ||
| - | |||
| - | </ | ||