Comments (7)
from afip.js.
Perdón por la tardanza, estuve unos días afuera.
Ah bien, ahora lo reviso muchas gracias por tu respuesta!
from afip.js.
Creo que justo ese wsdl tiene un tag del xml mal cerrado o de mas, fijate si lo descargas y encontrar donde tiene el error el wsdl, ponero en el proyecto y en vez de la url pasale la ruta al archivo
…
On Thu, 30 Nov 2023 at 09:18 Flavio Salasevicius @.> wrote: Hola, buen dia. Estoy usando el servicio autorizarCPEAutomotor del WSCPE y me tira un error "Error en la validacion del esquema XML". Entiendo que debe ser por que a lo mejor le estoy pasando mal algo de la informacion pero revise los campos obligatorios y los formatos y me parece que estaria todo bien: const data = { 'auth': { 'token': ta.token, 'sign': ta.sign, 'cuitRepresentada': afip.CUIT }, 'solicitud': { 'cabecera': { 'tipoCP':74, 'cuitSolicitante':22222222222, 'sucursal':1, 'nroOrden':1 }, 'origen': { 'productor':{ 'codProvincia': 12, 'codLocalidad':14454 } }, 'correspondeRetiroProductor': false, 'esSolicitanteCampo': true, 'datosCarga':{ 'codGrano':15, 'cosecha':2324, 'pesoBruto':45000, 'pesoTara':15000 }, 'destino':{ 'cuit':22222222222, 'esDestinoCampo': false, 'codProvincia': 12, 'codLocalidad':14454, 'planta':22222 }, 'destinatario':{ 'cuit':30532041690 }, 'transporte':{ 'cuitTransportista':22222222222, 'dominio':'zzz999', 'fechaHoraPartida':'2023-11-30T00:10:00', 'kmRecorrer':65, 'cuitChofer':22222222222, 'mercaderiaFumigada': true } } }; — Reply to this email directly, view it on GitHub <#65>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKLHT2HYUXDLRTLQXP276L3YHB2TBAVCNFSM6AAAAABABCZI6WVHI2DSMVQWIX3LMV43ASLTON2WKOZSGAYTQNJTHE3TKMQ . You are receiving this because you are subscribed to this thread.Message ID: @.>
Hola, buen dia.
Estuve revisando el archivo WSDL y no pude encontrar errores . El archivo que revise es este : https://cpea-ws-qaext.afip.gob.ar/wscpe/services/soap?wsdl
es correcto o busque en cualquiera ? ja
gracias!
from afip.js.
from afip.js.
Ese es el de prod creo, estabas probando en prod?
Hola, no el problema lo estoy teniendo en testing con el servicio autorizarCPEAutomotor. Probe otros servicios como el de buscar todas las localidades, consulta de carta de porte, tipo de granos y funcionaron bien pero a este servicio no le pude encontrar la vuelta.
from afip.js.
Ah ya entendi, si podes usarlo con otros metodos de ese web services pero no con autorizarCPEAutomotor. Deberias consultar directamente a la mesa de AFIP aver que dicen, te dejo el xml del request que seguro te lo piden
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="https://serviciosjava.afip.gob.ar/wscpe/"><soap:Body><tns:AutorizarCPEAutomotorReq><auth><token>PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9InllcyI/Pgo8c3NvIHZlcnNpb249IjIuMCI+CiAgICA8aWQgc3JjPSJDTj13c2FhaG9tbywgTz1BRklQLCBDPUFSLCBTRVJJQUxOVU1CRVI9Q1VJVCAzMzY5MzQ1MDIzOSIgdW5pcXVlX2lkPSI0MDcxMzcxMjQ2IiBnZW5fdGltZT0iMTcwMjQzMjI1NSIgZXhwX3RpbWU9IjE3MDI0NzU1MTUiLz4KICAgIDxvcGVyYXRpb24gdHlwZT0ibG9naW4iIHZhbHVlPSJncmFudGVkIj4KICAgICAgICA8bG9naW4gZW50aXR5PSIzMzY5MzQ1MDIzOSIgc2VydmljZT0id3NjcGUiIHVpZD0iU0VSSUFMTlVNQkVSPUNVSVQgMjA0MDkzNzg0NzIsIENOPXRlc3Q0IiBhdXRobWV0aG9kPSJjbXMiIHJlZ21ldGhvZD0iMjIiPgogICAgICAgICAgICA8cmVsYXRpb25zPgogICAgICAgICAgICAgICAgPHJlbGF0aW9uIGtleT0iMjA0MDkzNzg0NzIiIHJlbHR5cGU9IjQiLz4KICAgICAgICAgICAgPC9yZWxhdGlvbnM+CiAgICAgICAgPC9sb2dpbj4KICAgIDwvb3BlcmF0aW9uPgo8L3Nzbz4K</token><sign>cqUn8NCyfcFd7j9sQfk//dEmH+bcFcmavZaL4QK9sv7o49ydIiPtuAwTogW7b8ARhTf7SdauAawTB7aZ0g+FSUpJ4FP9caDBwAQ6G0e3H30RkE9FqeSA1ZqfHokLmZgF1/a7kGQ8hHZuGRMcrP2XBXOiUKNLEnYgwXCD3ZM9oHk=</sign><cuitRepresentada>20409378472</cuitRepresentada></auth><solicitud><cabecera><tipoCP>74</tipoCP><cuitSolicitante>22222222222</cuitSolicitante><sucursal>1</sucursal><nroOrden>1</nroOrden></cabecera><origen><productor><codProvincia>12</codProvincia><codLocalidad>14454</codLocalidad></productor></origen><correspondeRetiroProductor>false</correspondeRetiroProductor><esSolicitanteCampo>true</esSolicitanteCampo><datosCarga><codGrano>15</codGrano><cosecha>2324</cosecha><pesoBruto>45000</pesoBruto><pesoTara>15000</pesoTara></datosCarga><destino><cuit>22222222222</cuit><esDestinoCampo>false</esDestinoCampo><codProvincia>12</codProvincia><codLocalidad>14454</codLocalidad><planta>22222</planta></destino><destinatario><cuit>30532041690</cuit></destinatario><transporte><cuitTransportista>22222222222</cuitTransportista><dominio>zzz999</dominio><fechaHoraPartida>2023-11-30T00:10:00</fechaHoraPartida><kmRecorrer>65</kmRecorrer><cuitChofer>22222222222</cuitChofer><mercaderiaFumigada>true</mercaderiaFumigada></transporte></solicitud></tns:AutorizarCPEAutomotorReq></soap:Body></soap:Envelope>
y esta respuesta
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><serverTime>12/12/2023 23:35:27 GMT-03:00</serverTime><serverName>cpea-ws-deployment-7579857cfb-75d4c</serverName><elapsedTime>1702434927285ms</elapsedTime><id>20231212113527302rndxOgEQnWxgxzlBtaskuKXNpIIJwlWV</id></soap:Header><soap:Body><soap:Fault><faultcode>soap:Client</faultcode><faultstring>Error en la validacion del esquema XML</faultstring></soap:Fault></soap:Body></soap:Envelope>
from afip.js.
Ah ya entendi, si podes usarlo con otros metodos de ese web services pero no con autorizarCPEAutomotor. Deberias consultar directamente a la mesa de AFIP aver que dicen, te dejo el xml del request que seguro te lo piden
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="https://serviciosjava.afip.gob.ar/wscpe/"><soap:Body><tns:AutorizarCPEAutomotorReq><auth><token>PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9InllcyI/Pgo8c3NvIHZlcnNpb249IjIuMCI+CiAgICA8aWQgc3JjPSJDTj13c2FhaG9tbywgTz1BRklQLCBDPUFSLCBTRVJJQUxOVU1CRVI9Q1VJVCAzMzY5MzQ1MDIzOSIgdW5pcXVlX2lkPSI0MDcxMzcxMjQ2IiBnZW5fdGltZT0iMTcwMjQzMjI1NSIgZXhwX3RpbWU9IjE3MDI0NzU1MTUiLz4KICAgIDxvcGVyYXRpb24gdHlwZT0ibG9naW4iIHZhbHVlPSJncmFudGVkIj4KICAgICAgICA8bG9naW4gZW50aXR5PSIzMzY5MzQ1MDIzOSIgc2VydmljZT0id3NjcGUiIHVpZD0iU0VSSUFMTlVNQkVSPUNVSVQgMjA0MDkzNzg0NzIsIENOPXRlc3Q0IiBhdXRobWV0aG9kPSJjbXMiIHJlZ21ldGhvZD0iMjIiPgogICAgICAgICAgICA8cmVsYXRpb25zPgogICAgICAgICAgICAgICAgPHJlbGF0aW9uIGtleT0iMjA0MDkzNzg0NzIiIHJlbHR5cGU9IjQiLz4KICAgICAgICAgICAgPC9yZWxhdGlvbnM+CiAgICAgICAgPC9sb2dpbj4KICAgIDwvb3BlcmF0aW9uPgo8L3Nzbz4K</token><sign>cqUn8NCyfcFd7j9sQfk//dEmH+bcFcmavZaL4QK9sv7o49ydIiPtuAwTogW7b8ARhTf7SdauAawTB7aZ0g+FSUpJ4FP9caDBwAQ6G0e3H30RkE9FqeSA1ZqfHokLmZgF1/a7kGQ8hHZuGRMcrP2XBXOiUKNLEnYgwXCD3ZM9oHk=</sign><cuitRepresentada>20409378472</cuitRepresentada></auth><solicitud><cabecera><tipoCP>74</tipoCP><cuitSolicitante>22222222222</cuitSolicitante><sucursal>1</sucursal><nroOrden>1</nroOrden></cabecera><origen><productor><codProvincia>12</codProvincia><codLocalidad>14454</codLocalidad></productor></origen><correspondeRetiroProductor>false</correspondeRetiroProductor><esSolicitanteCampo>true</esSolicitanteCampo><datosCarga><codGrano>15</codGrano><cosecha>2324</cosecha><pesoBruto>45000</pesoBruto><pesoTara>15000</pesoTara></datosCarga><destino><cuit>22222222222</cuit><esDestinoCampo>false</esDestinoCampo><codProvincia>12</codProvincia><codLocalidad>14454</codLocalidad><planta>22222</planta></destino><destinatario><cuit>30532041690</cuit></destinatario><transporte><cuitTransportista>22222222222</cuitTransportista><dominio>zzz999</dominio><fechaHoraPartida>2023-11-30T00:10:00</fechaHoraPartida><kmRecorrer>65</kmRecorrer><cuitChofer>22222222222</cuitChofer><mercaderiaFumigada>true</mercaderiaFumigada></transporte></solicitud></tns:AutorizarCPEAutomotorReq></soap:Body></soap:Envelope>
y esta respuesta
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><serverTime>12/12/2023 23:35:27 GMT-03:00</serverTime><serverName>cpea-ws-deployment-7579857cfb-75d4c</serverName><elapsedTime>1702434927285ms</elapsedTime><id>20231212113527302rndxOgEQnWxgxzlBtaskuKXNpIIJwlWV</id></soap:Header><soap:Body><soap:Fault><faultcode>soap:Client</faultcode><faultstring>Error en la validacion del esquema XML</faultstring></soap:Fault></soap:Body></soap:Envelope>
Genial, intento por ahi. Muchas gracias Ivan por tu ayuda!
from afip.js.
Related Issues (20)
- Error 500 Campo Auth getVoucherInfo HOT 2
- Error getting Token Autorization Error: Invalid PEM formatted message. HOT 1
- Error getting Token Autorization Error: Invalid PEM formatted message. HOT 5
- Error en modo produccion HOT 2
- Certificado no emitido por AC de confianza HOT 1
- error al facturar HOT 4
- Error getting Token Autorization
- Generar código QR HOT 1
- Errores con ultima version HOT 1
- Nota de Debito HOT 3
- getSalesPoints() devuelve error HOT 2
- OJO con el Tracking via mixpanel que no está avisado en ningún lado HOT 3
- Fragmento de codigo HOT 1
- update version 0.8 HOT 1
- Consulta certificado HOT 3
- Afip devuelve not found HOT 1
- Hay que pagar para usar en produccion? HOT 1
- Error al facturar HOT 11
- Factura tipo C para impresión HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from afip.js.