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 [2026/05/27 18:44] 172.69.150.217 se ha restaurado la vieja versión (2026/04/27 07:15) |
enviarfactura [2026/05/27 18:44] (actual) 162.158.95.99 se ha restaurado la vieja versión (2026/04/27 07:16) |
||
|---|---|---|---|
| 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 " | ||
| - | } | ||
| - | | ||
| - | |||
| - | </ | ||