🚀 Cliente SOAP - Exportar Ventas

📡 Servicio: https://w3ndi.com/contabil/webservice/PuntoJson_Secured.php
🔧 Función: ExportarVentas
🏢 RUC: 1234567890
📦 Ventas a procesar: 3

📤 JSON Enviado

{
    "ventas": [
        {
            "cliente": {
                "cliente": "María Pérez Comercial S.A.",
                "rucCed": "1791234567001",
                "direccion": "Av. 6 de Diciembre N34-123 y Whymper, Quito",
                "telefonos": "02-2456789 \/ 0987654321"
            },
            "venta": {
                "numero": "001-001-000000001",
                "serie": "001-001",
                "fecha": "2026-01-25",
                "total": 896,
                "iva": 96,
                "subtotal": 800,
                "subtotal_neto": 800,
                "subtotal_iva_0": 0,
                "subtotal_iva": 800,
                "descuento": 0,
                "anulada": 0,
                "forma_pago_id": 1,
                "punto_venta": 1,
                "cuenta_cliente": "1.1.2.05.01",
                "cuenta_bienes": "4.1.1.01.01",
                "cuenta_servicio": "0",
                "facturaDetalle": [
                    {
                        "codigo": "PROD001",
                        "descripcion": "Producto 1",
                        "destino": "bienes",
                        "cantidad": 2,
                        "unitario": 350,
                        "iva": 12,
                        "descuento": 0
                    },
                    {
                        "codigo": "PROD002",
                        "descripcion": "Producto 2",
                        "destino": "bienes",
                        "cantidad": 4,
                        "unitario": 25,
                        "iva": 12,
                        "descuento": 0
                    },
                    {
                        "codigo": "PROD003",
                        "descripcion": "Producto 3",
                        "destino": "bienes",
                        "cantidad": 2,
                        "unitario": 50,
                        "iva": 12,
                        "descuento": 0
                    }
                ]
            }
        },
        {
            "cliente": {
                "cliente": "Flores y Flores",
                "rucCed": "CL00012",
                "direccion": "123 Main Street, Suite 500, Miami, FL 33131, USA",
                "telefonos": "+1-305-123-4567"
            },
            "venta": {
                "numero": "001-001-000000002",
                "serie": "001-001",
                "fecha": "2026-01-26",
                "total": 2240,
                "iva": 240,
                "subtotal": 2000,
                "subtotal_neto": 2000,
                "subtotal_iva_0": 0,
                "subtotal_iva": 2000,
                "descuento": 0,
                "anulada": 0,
                "forma_pago_id": 2,
                "punto_venta": 1,
                "cuenta_cliente": "1.1.2.05.02",
                "cuenta_bienes": "4.1.1.01.02",
                "cuenta_servicio": "0",
                "facturaDetalle": [
                    {
                        "codigo": "PROD004",
                        "descripcion": "Producto 4",
                        "destino": "bienes",
                        "cantidad": 1,
                        "unitario": 1500,
                        "iva": 12,
                        "descuento": 0
                    },
                    {
                        "codigo": "PROD005",
                        "descripcion": "Producto 5",
                        "destino": "bienes",
                        "cantidad": 1,
                        "unitario": 500,
                        "iva": 12,
                        "descuento": 0
                    }
                ]
            },
            "exportacion": {
                "anio": "2026",
                "fechaEmbarque": "2026-01-28",
                "exportacionDe": "01",
                "tipoComprobante": "16",
                "distAduanero": "055",
                "regimen": "40",
                "correlativo": "2026000001",
                "docTransp": "GUIA-2026-001",
                "valorFOB": 2000,
                "valorFOBComprobante": 2000,
                "establecimiento": "001",
                "puntoEmision": "001",
                "secuencial": "000000002",
                "autorizacion": "2601202601179123456700120010010000000021234567812",
                "fechaEmision": "2026-01-26",
                "paisEfecExp": "110"
            }
        },
        {
            "cliente": {
                "cliente": "Constructora Andina Cía. Ltda.",
                "rucCed": "1790123456001",
                "direccion": "Av. Naciones Unidas E4-676 y Amazonas, Quito",
                "telefonos": "02-3334455"
            },
            "venta": {
                "numero": "001-001-000000003",
                "serie": "001-001",
                "fecha": "2026-01-27",
                "total": 1120,
                "iva": 120,
                "subtotal": 1000,
                "subtotal_neto": 1000,
                "subtotal_iva_0": 0,
                "subtotal_iva": 1000,
                "descuento": 0,
                "anulada": 0,
                "forma_pago_id": 3,
                "punto_venta": 1,
                "cuenta_cliente": "1.1.2.05.02",
                "cuenta_bienes": "0",
                "cuenta_servicio": "4.1.1.01.02",
                "facturaDetalle": [
                    {
                        "codigo": "SERV002",
                        "descripcion": "Consultoría en Sistemas de Información",
                        "destino": "servicio",
                        "cantidad": 20,
                        "unitario": 50,
                        "iva": 12,
                        "descuento": 0
                    }
                ]
            }
        }
    ]
}

Enviando datos al servidor...

📥 Respuesta del Servidor

⏱️ Tiempo de ejecución: 0 segundos

❌ Error de Conexión

wsdl error: Getting https://w3ndi.com/contabil/webservice/PuntoJson_Secured.php?wsdl - HTTP ERROR: no proper separation of headers and document

🔍 Información de Debug (Click para expandir)

📨 Request SOAP

📬 Response SOAP

🔧 Debug Info

2026-03-05 01:35:48.422441 nusoap_client: ctor wsdl=wsdl timeout=0 response_timeout=30
endpoint=string(64) "https://w3ndi.com/contabil/webservice/PuntoJson_Secured.php?wsdl"
2026-03-05 01:35:48.422472 nusoap_client: will use lazy evaluation of wsdl from https://w3ndi.com/contabil/webservice/PuntoJson_Secured.php?wsdl
2026-03-05 01:35:48.422576 nusoap_client: call: operation=ExportarVentas, namespace=http://tempuri.org, soapAction=, rpcParams=, style=rpc, use=encoded, endpointType=wsdl
params=array(2) {
  ["datos"]=>
  string(2683) "{"ventas":[{"cliente":{"cliente":"María Pérez Comercial S.A.","rucCed":"1791234567001","direccion":"Av. 6 de Diciembre N34-123 y Whymper, Quito","telefonos":"02-2456789 \/ 0987654321"},"venta":{"numero":"001-001-000000001","serie":"001-001","fecha":"2026-01-25","total":896,"iva":96,"subtotal":800,"subtotal_neto":800,"subtotal_iva_0":0,"subtotal_iva":800,"descuento":0,"anulada":0,"forma_pago_id":1,"punto_venta":1,"cuenta_cliente":"1.1.2.05.01","cuenta_bienes":"4.1.1.01.01","cuenta_servicio":"0","facturaDetalle":[{"codigo":"PROD001","descripcion":"Producto 1","destino":"bienes","cantidad":2,"unitario":350,"iva":12,"descuento":0},{"codigo":"PROD002","descripcion":"Producto 2","destino":"bienes","cantidad":4,"unitario":25,"iva":12,"descuento":0},{"codigo":"PROD003","descripcion":"Producto 3","destino":"bienes","cantidad":2,"unitario":50,"iva":12,"descuento":0}]}},{"cliente":{"cliente":"Flores y Flores","rucCed":"CL00012","direccion":"123 Main Street, Suite 500, Miami, FL 33131, USA","telefonos":"+1-305-123-4567"},"venta":{"numero":"001-001-000000002","serie":"001-001","fecha":"2026-01-26","total":2240,"iva":240,"subtotal":2000,"subtotal_neto":2000,"subtotal_iva_0":0,"subtotal_iva":2000,"descuento":0,"anulada":0,"forma_pago_id":2,"punto_venta":1,"cuenta_cliente":"1.1.2.05.02","cuenta_bienes":"4.1.1.01.02","cuenta_servicio":"0","facturaDetalle":[{"codigo":"PROD004","descripcion":"Producto 4","destino":"bienes","cantidad":1,"unitario":1500,"iva":12,"descuento":0},{"codigo":"PROD005","descripcion":"Producto 5","destino":"bienes","cantidad":1,"unitario":500,"iva":12,"descuento":0}]},"exportacion":{"anio":"2026","fechaEmbarque":"2026-01-28","exportacionDe":"01","tipoComprobante":"16","distAduanero":"055","regimen":"40","correlativo":"2026000001","docTransp":"GUIA-2026-001","valorFOB":2000,"valorFOBComprobante":2000,"establecimiento":"001","puntoEmision":"001","secuencial":"000000002","autorizacion":"2601202601179123456700120010010000000021234567812","fechaEmision":"2026-01-26","paisEfecExp":"110"}},{"cliente":{"cliente":"Constructora Andina Cía. Ltda.","rucCed":"1790123456001","direccion":"Av. Naciones Unidas E4-676 y Amazonas, Quito","telefonos":"02-3334455"},"venta":{"numero":"001-001-000000003","serie":"001-001","fecha":"2026-01-27","total":1120,"iva":120,"subtotal":1000,"subtotal_neto":1000,"subtotal_iva_0":0,"subtotal_iva":1000,"descuento":0,"anulada":0,"forma_pago_id":3,"punto_venta":1,"cuenta_cliente":"1.1.2.05.02","cuenta_bienes":"0","cuenta_servicio":"4.1.1.01.02","facturaDetalle":[{"codigo":"SERV002","descripcion":"Consultoría en Sistemas de Información","destino":"servicio","cantidad":20,"unitario":50,"iva":12,"descuento":0}]}}]}"
  ["ruc"]=>
  string(10) "1234567890"
}
headers=bool(false)
2026-03-05 01:35:48.422585 nusoap_client: instantiating wsdl class with doc: https://w3ndi.com/contabil/webservice/PuntoJson_Secured.php?wsdl
2026-03-05 01:35:48.422592 wsdl: ctor wsdl= timeout=30 response_timeout=30
2026-03-05 01:35:48.422601 wsdl: parse and process WSDL path=
2026-03-05 01:35:48.422607 wsdl: setCredentials username= authtype= certRequest=
array(0) {
}
2026-03-05 01:35:48.422610 wsdl: parse and process WSDL path=https://w3ndi.com/contabil/webservice/PuntoJson_Secured.php?wsdl
2026-03-05 01:35:48.422612 wsdl: parse WSDL at path=https://w3ndi.com/contabil/webservice/PuntoJson_Secured.php?wsdl
2026-03-05 01:35:48.422616 wsdl: getting WSDL http(s) URL https://w3ndi.com/contabil/webservice/PuntoJson_Secured.php?wsdl
2026-03-05 01:35:48.422619 soap_transport_http: ctor url=https://w3ndi.com/contabil/webservice/PuntoJson_Secured.php?wsdl use_curl= curl_options:
array(0) {
}
2026-03-05 01:35:48.422622 soap_transport_http: parsed URL scheme = https
2026-03-05 01:35:48.422624 soap_transport_http: parsed URL host = w3ndi.com
2026-03-05 01:35:48.422626 soap_transport_http: parsed URL path = /contabil/webservice/PuntoJson_Secured.php
2026-03-05 01:35:48.422628 soap_transport_http: parsed URL query = wsdl
2026-03-05 01:35:48.422635 soap_transport_http: set header Host: w3ndi.com
2026-03-05 01:35:48.422765 soap_transport_http: set header User-Agent: NuSOAP/0.9.5 (1.123)
2026-03-05 01:35:48.422769 soap_transport_http: set header Accept-Encoding: gzip, deflate
2026-03-05 01:35:48.422772 soap_transport_http: set header Connection: close
2026-03-05 01:35:48.422775 soap_transport_http: entered send() with data of length: 0
2026-03-05 01:35:48.422781 soap_transport_http: connect connection_timeout 30, response_timeout 30, scheme https, host w3ndi.com, port 443
2026-03-05 01:35:48.422785 soap_transport_http: connect using cURL
2026-03-05 01:35:48.422834 soap_transport_http: setCurlOption option=10002, value=
string(68) "https://w3ndi.com:443/contabil/webservice/PuntoJson_Secured.php?wsdl"
2026-03-05 01:35:48.422842 soap_transport_http: setCurlOption option=52, value=
int(1)
2026-03-05 01:35:48.422845 soap_transport_http: setCurlOption option=42, value=
int(1)
2026-03-05 01:35:48.422848 soap_transport_http: setCurlOption option=19913, value=
int(1)
2026-03-05 01:35:48.422851 soap_transport_http: setCurlOption option=78, value=
int(30)
2026-03-05 01:35:48.422854 soap_transport_http: setCurlOption option=13, value=
int(30)
2026-03-05 01:35:48.422857 soap_transport_http: set cURL SSL verify options
2026-03-05 01:35:48.422858 soap_transport_http: setCurlOption option=64, value=
int(0)
2026-03-05 01:35:48.422861 soap_transport_http: setCurlOption option=81, value=
int(0)
2026-03-05 01:35:48.422864 soap_transport_http: cURL connection set up
2026-03-05 01:35:48.422868 soap_transport_http: HTTP request: GET /contabil/webservice/PuntoJson_Secured.php?wsdl HTTP/1.1
2026-03-05 01:35:48.422870 soap_transport_http: HTTP header: Host: w3ndi.com
2026-03-05 01:35:48.422872 soap_transport_http: HTTP header: User-Agent: NuSOAP/0.9.5 (1.123)
2026-03-05 01:35:48.422874 soap_transport_http: HTTP header: Accept-Encoding: gzip, deflate
2026-03-05 01:35:48.422876 soap_transport_http: HTTP header: Connection: close
2026-03-05 01:35:48.422879 soap_transport_http: Skip cURL header Host: w3ndi.com
2026-03-05 01:35:48.422881 soap_transport_http: Skip cURL header Connection: close
2026-03-05 01:35:48.422883 soap_transport_http: setCurlOption option=10023, value=
array(2) {
  [0]=>
  string(32) "User-Agent: NuSOAP/0.9.5 (1.123)"
  [1]=>
  string(30) "Accept-Encoding: gzip, deflate"
}
2026-03-05 01:35:48.422889 soap_transport_http: set cURL HTTP headers
2026-03-05 01:35:48.422891 soap_transport_http: set cURL payload
2026-03-05 01:35:48.422897 soap_transport_http: send and receive with cURL
2026-03-05 01:35:48.422961 soap_transport_http: No cURL error, closing cURL
2026-03-05 01:35:48.423029 soap_transport_http: no proper separation of headers and document
2026-03-05 01:35:48.423032 soap_transport_http: end of send()
2026-03-05 01:35:48.423036 wsdl: Getting https://w3ndi.com/contabil/webservice/PuntoJson_Secured.php?wsdl - HTTP ERROR: no proper separation of headers and document
2026-03-05 01:35:48.423042 nusoap_client: checkWSDL
2026-03-05 01:35:48.423045 nusoap_client: got wsdl error: Getting https://w3ndi.com/contabil/webservice/PuntoJson_Secured.php?wsdl - HTTP ERROR: no proper separation of headers and document