forked from reingart/pyafipws
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #78 from chazuttu/coverage_wslsp
Coverage wslsp
- Loading branch information
Showing
23 changed files
with
2,801 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[WSAA] | ||
CERT = reingart.crt | ||
PRIVATEKEY = reingart.key | ||
## URL = https: //wsaa.afip.gov.ar/ws/services/LoginCms | ||
|
||
[WSLSP] | ||
CUIT = 20267565393 | ||
INPUT = invoices.csv | ||
OUTPUT = OUTPUT.txt | ||
ENTRADA=entrada.txt | ||
SALIDA=salida.txt | ||
## URL = https: //serviciosjava.afip.gob.ar/wslsp/LumService? Wsdl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
interactions: | ||
- request: | ||
body: "<?xml version=\"1.0\" encoding=\"UTF-8\"?><soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" | ||
xmlns:ser=\"http://serviciosjava.afip.gob.ar/wslsp/\">\n<soapenv:Header/>\n<soapenv:Body>\n | ||
\ \n</soapenv:Body>\n</soapenv:Envelope>" | ||
headers: | ||
accept-encoding: | ||
- gzip, deflate | ||
content-length: | ||
- '240' | ||
content-type: | ||
- text/xml; charset="UTF-8" | ||
soapaction: | ||
- '"http://serviciosjava.afip.gob.ar/wslsp/dummy"' | ||
user-agent: | ||
- Mozilla/5.0 (Windows NT 6.1; Win64; x64) | ||
method: POST | ||
uri: https://fwshomo.afip.gov.ar/wslsp/LspService | ||
response: | ||
body: | ||
string: <?xml version='1.0' encoding='UTF-8'?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><S:Body><ns2:DummyResp | ||
xmlns:ns2="http://serviciosjava.afip.gob.ar/wslsp/"><respuesta><appserver>OK</appserver><authserver>OK</authserver><dbserver>OK</dbserver></respuesta></ns2:DummyResp></S:Body></S:Envelope> | ||
headers: | ||
Connection: | ||
- close | ||
Content-Type: | ||
- text/xml;charset=utf-8 | ||
Date: | ||
- Thu, 22 Jul 2021 15:30:25 GMT | ||
Set-Cookie: | ||
- TS01761d9e=01439f1ddf7eca131a80ba8a23e3c7908fd49dcdbf6a83465e141f8a9425276b4ab08a6811; | ||
Path=/ | ||
Transfer-Encoding: | ||
- chunked | ||
X-Powered-By: | ||
- Servlet/3.0; JBossAS-6 | ||
status: | ||
code: 200 | ||
message: OK | ||
version: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
interactions: | ||
- request: | ||
body: "<?xml version=\"1.0\" encoding=\"UTF-8\"?><soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" | ||
xmlns:ser=\"http://serviciosjava.afip.gob.ar/wslsp/\">\n<soapenv:Header/>\n<soapenv:Body>\n | ||
\ <ser:GenerarAjusteReq>\n <auth><token>PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9InllcyI/Pgo8c3NvIHZlcnNpb249IjIuMCI+CiAgICA8aWQgc3JjPSJDTj13c2FhaG9tbywgTz1BRklQLCBDPUFSLCBTRVJJQUxOVU1CRVI9Q1VJVCAzMzY5MzQ1MDIzOSIgdW5pcXVlX2lkPSIzNDkxNTYyNDk4IiBnZW5fdGltZT0iMTYyNjk2ODY3NCIgZXhwX3RpbWU9IjE2MjcwMTE5MzQiLz4KICAgIDxvcGVyYXRpb24gdHlwZT0ibG9naW4iIHZhbHVlPSJncmFudGVkIj4KICAgICAgICA8bG9naW4gZW50aXR5PSIzMzY5MzQ1MDIzOSIgc2VydmljZT0id3Nsc3AiIHVpZD0iU0VSSUFMTlVNQkVSPUNVSVQgMjAyNjc1NjUzOTMsIENOPXJlaW5nYXJ0MjAyMSIgYXV0aG1ldGhvZD0iY21zIiByZWdtZXRob2Q9IjIyIj4KICAgICAgICAgICAgPHJlbGF0aW9ucz4KICAgICAgICAgICAgICAgIDxyZWxhdGlvbiBrZXk9IjIwMjY3NTY1MzkzIiByZWx0eXBlPSI0Ii8+CiAgICAgICAgICAgIDwvcmVsYXRpb25zPgogICAgICAgIDwvbG9naW4+CiAgICA8L29wZXJhdGlvbj4KPC9zc28+Cg==</token><sign>h/BYZfpWRFkW32mIPuaM4j8rpK+3+QnjWOdh0duuStM4pfXkH68JPc+RvZHwAiziqgS7JC4nofpwBr4rwc3LZ5pAKsdUx7BQfZsFtCHzCSQ3ASUKl0GwzbRmPCn5HkzFYnkA3drpKRjR/HmvrfzO4S57W8g1a1hcT4OHTDKFIUY=</sign><cuit>20267565393</cuit></auth><solicitud><tipoAjuste>C</tipoAjuste><fechaComprobante>2017-01-06</fechaComprobante><emisor><puntoVenta>3000</puntoVenta><nroComprobante>1</nroComprobante><comprobanteAAjustar><tipoComprobante>186</tipoComprobante><puntoVenta>2000</puntoVenta><nroComprobante>4</nroComprobante></comprobanteAAjustar></emisor><itemDetalleAjusteLiquidacion><nroItemAjustar>1</nroItemAjustar><ajusteFisico><cantidad>1</cantidad></ajusteFisico><ajusteMonetario><precioUnitario>15.995</precioUnitario></ajusteMonetario><ajusteCompraAsociada><tipoComprobante>185</tipoComprobante><puntoVenta>3000</puntoVenta><nroComprobante>33</nroComprobante><nroItem>1</nroItem><cantidadAsociada>2</cantidadAsociada></ajusteCompraAsociada></itemDetalleAjusteLiquidacion><ajusteFinanciero><gasto><codGasto>16</codGasto><baseImponible>230520.6</baseImponible><alicuota>3</alicuota><alicuotaIVA>10.5</alicuotaIVA></gasto><tributo><codTributo>5</codTributo><baseImponible>230520.6</baseImponible><alicuota>2.5</alicuota></tributo><tributo><codTributo>3</codTributo><importe>397</importe></tributo></ajusteFinanciero><datosAdicionales>Ajuste | ||
sobre liquidacion de compra directa</datosAdicionales></solicitud></ser:GenerarAjusteReq>\n</soapenv:Body>\n</soapenv:Envelope>" | ||
headers: | ||
accept-encoding: | ||
- gzip, deflate | ||
content-length: | ||
- '2425' | ||
content-type: | ||
- text/xml; charset="UTF-8" | ||
soapaction: | ||
- '"http://serviciosjava.afip.gob.ar/wslsp/generarAjuste"' | ||
user-agent: | ||
- Mozilla/5.0 (Windows NT 6.1; Win64; x64) | ||
method: POST | ||
uri: https://fwshomo.afip.gov.ar/wslsp/LspService | ||
response: | ||
body: | ||
string: "<?xml version='1.0' encoding='UTF-8'?><S:Envelope xmlns:S=\"http://schemas.xmlsoap.org/soap/envelope/\"><S:Body><ns2:GenerarAjusteResp | ||
xmlns:ns2=\"http://serviciosjava.afip.gob.ar/wslsp/\"><respuesta><errores><error><codigo>3002</codigo><descripcion>No | ||
se pueden realizar ajustes f\xEDsicos y monetario en un mismo comprobante.</descripcion></error></errores><metadata><servidor>vivaldi</servidor><fechaHora>2021-07-22T12:46:34</fechaHora></metadata></respuesta></ns2:GenerarAjusteResp></S:Body></S:Envelope>" | ||
headers: | ||
Connection: | ||
- close | ||
Content-Type: | ||
- text/xml;charset=utf-8 | ||
Date: | ||
- Thu, 22 Jul 2021 15:46:34 GMT | ||
Set-Cookie: | ||
- TS01761d9e=01439f1ddf8f1c100e278f493458a15771891a4cce896b6423250bacf170f828b0b3c13e3b; | ||
Path=/ | ||
Transfer-Encoding: | ||
- chunked | ||
X-Powered-By: | ||
- Servlet/3.0; JBossAS-6 | ||
status: | ||
code: 200 | ||
message: OK | ||
version: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
interactions: | ||
- request: | ||
body: "<?xml version=\"1.0\" encoding=\"UTF-8\"?><soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" | ||
xmlns:ser=\"http://serviciosjava.afip.gob.ar/wslsp/\">\n<soapenv:Header/>\n<soapenv:Body>\n | ||
\ <ser:ConsultarCaracteresParticipanteReq>\n <auth><token>PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9InllcyI/Pgo8c3NvIHZlcnNpb249IjIuMCI+CiAgICA8aWQgc3JjPSJDTj13c2FhaG9tbywgTz1BRklQLCBDPUFSLCBTRVJJQUxOVU1CRVI9Q1VJVCAzMzY5MzQ1MDIzOSIgdW5pcXVlX2lkPSIzOTQ2MzYzNDUiIGdlbl90aW1lPSIxNjI2OTcwODAyIiBleHBfdGltZT0iMTYyNzAxNDA2MiIvPgogICAgPG9wZXJhdGlvbiB0eXBlPSJsb2dpbiIgdmFsdWU9ImdyYW50ZWQiPgogICAgICAgIDxsb2dpbiBlbnRpdHk9IjMzNjkzNDUwMjM5IiBzZXJ2aWNlPSJ3c2xzcCIgdWlkPSJTRVJJQUxOVU1CRVI9Q1VJVCAyMDI2NzU2NTM5MywgQ049cmVpbmdhcnQyMDIxIiBhdXRobWV0aG9kPSJjbXMiIHJlZ21ldGhvZD0iMjIiPgogICAgICAgICAgICA8cmVsYXRpb25zPgogICAgICAgICAgICAgICAgPHJlbGF0aW9uIGtleT0iMjAyNjc1NjUzOTMiIHJlbHR5cGU9IjQiLz4KICAgICAgICAgICAgPC9yZWxhdGlvbnM+CiAgICAgICAgPC9sb2dpbj4KICAgIDwvb3BlcmF0aW9uPgo8L3Nzbz4K</token><sign>tAXfme2n4K109OzQs51Jm+m27lj+9bqkQrrMgevewlyGH3iLYRKvqSt2cFlrAyXFBeWfzZcN5CgBsRoLSXa15EeE6G/38MQlAHkmhvCFFhOfGFV92XaQ0LANOJdKz10wsMSQYHbI3I83zymiqlmTmRqdFFapvhPhtoWDcguKsjI=</sign><cuit>20267565393</cuit></auth></ser:ConsultarCaracteresParticipanteReq>\n</soapenv:Body>\n</soapenv:Envelope>" | ||
headers: | ||
accept-encoding: | ||
- gzip, deflate | ||
content-length: | ||
- '1291' | ||
content-type: | ||
- text/xml; charset="UTF-8" | ||
soapaction: | ||
- '"http://serviciosjava.afip.gob.ar/wslsp/consultarCaracteresParticipante"' | ||
user-agent: | ||
- Mozilla/5.0 (Windows NT 6.1; Win64; x64) | ||
method: POST | ||
uri: https://fwshomo.afip.gov.ar/wslsp/LspService | ||
response: | ||
body: | ||
string: "<?xml version='1.0' encoding='UTF-8'?><S:Envelope xmlns:S=\"http://schemas.xmlsoap.org/soap/envelope/\"><S:Body><ns2:ConsultarCaracteresParticipanteResp | ||
xmlns:ns2=\"http://serviciosjava.afip.gob.ar/wslsp/\"><respuesta><caracter><codigo>1</codigo><descripcion>Productor/criador</descripcion></caracter><caracter><codigo>2</codigo><descripcion>Feed | ||
lots</descripcion></caracter><caracter><codigo>3</codigo><descripcion>Invernador</descripcion></caracter><caracter><codigo>4</codigo><descripcion>Establecimiento | ||
Faenador y/o Frigor\xEDfico</descripcion></caracter><caracter><codigo>5</codigo><descripcion>Consignatario | ||
y/o comisionista</descripcion></caracter><caracter><codigo>6</codigo><descripcion>Consignatario | ||
directo</descripcion></caracter><caracter><codigo>7</codigo><descripcion>Consignatario | ||
de Carnes</descripcion></caracter><caracter><codigo>9</codigo><descripcion>Matarife | ||
abastecedor y carnicero y usuario de faena</descripcion></caracter><caracterPorcino><codigo>100</codigo><descripcion>Productores/Criadores | ||
Comerciales - Porcinos</descripcion></caracterPorcino><caracterPorcino><codigo>101</codigo><descripcion>Invernadores | ||
- Porcinos</descripcion></caracterPorcino><caracterPorcino><codigo>102</codigo><descripcion>Matadero | ||
- Frigor\xEDfico - Porcinos</descripcion></caracterPorcino><caracterPorcino><codigo>103</codigo><descripcion>Matarifes | ||
abastecedores y carniceros y usuarios de faena porcina - Porcinos</descripcion></caracterPorcino><caracterPorcino><codigo>104</codigo><descripcion>Consignatarios | ||
y/o comisionistas de hacienda - Porcinos</descripcion></caracterPorcino><caracterPorcino><codigo>105</codigo><descripcion>Consignatarios | ||
directos - Porcinos</descripcion></caracterPorcino><caracterPorcino><codigo>106</codigo><descripcion>Consignatario | ||
y/o comisionistas de Carnes - Porcinos</descripcion></caracterPorcino><caracterAvicola><codigo>201</codigo><descripcion>Productor | ||
y Criador de Pollos Parrilleros</descripcion></caracterAvicola><caracterAvicola><codigo>202</codigo><descripcion>Matadero | ||
- Frigor\xEDfico</descripcion></caracterAvicola><caracterAvicola><codigo>203</codigo><descripcion>Matarife | ||
y toda otra modalidad de Usuario de Faena</descripcion></caracterAvicola><caracterAvicola><codigo>204</codigo><descripcion>Consignatario | ||
de Animales Vivos/Comisionistas</descripcion></caracterAvicola><caracterAvicola><codigo>205</codigo><descripcion>Consignatarios | ||
Directo</descripcion></caracterAvicola><caracterAvicola><codigo>206</codigo><descripcion>Consignatario | ||
de Carne</descripcion></caracterAvicola><metadata><servidor>vivaldi</servidor><fechaHora>2021-07-22T13:21:41</fechaHora></metadata></respuesta></ns2:ConsultarCaracteresParticipanteResp></S:Body></S:Envelope>" | ||
headers: | ||
Connection: | ||
- close | ||
Content-Type: | ||
- text/xml;charset=utf-8 | ||
Date: | ||
- Thu, 22 Jul 2021 16:21:41 GMT | ||
Set-Cookie: | ||
- TS01761d9e=01439f1ddf934c31a0ebd5253ae7ff2afd819b5b19e3cc06b64046cf1434e3a947349c7a51; | ||
Path=/ | ||
Transfer-Encoding: | ||
- chunked | ||
X-Powered-By: | ||
- Servlet/3.0; JBossAS-6 | ||
status: | ||
code: 200 | ||
message: OK | ||
version: 1 |
Oops, something went wrong.