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/10/30 20:22] 74.7.227.140 se ha restaurado la vieja versión (2025/10/22 14:31) |
enviarfactura [2025/11/28 01:57] (actual) 57.141.0.68 se ha restaurado la vieja versión (2025/09/05 14:00) |
||
|---|---|---|---|
| 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 " | ||
| + | } | ||
| + | | ||
| + | |||
| + | </ | ||