Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ omit =
*receb1*
*recem*
*recet*
*recex1*
*formatos*
*rg3685*
*setup_win*
*sired*
Expand Down
14 changes: 10 additions & 4 deletions conf/rece.ini
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# EJEMPLO de archivo de configuraci�n de la interfaz PyAfipWs
# EJEMPLO de archivo de configuración de la interfaz PyAfipWs
# DEBE CAMBIAR Certificado (CERT) y Clave Privada (PRIVATEKEY)
# Para producci�n debe descomentar las URL (sacar ##)
# M�s informaci�n:
# http://www.sistemasagiles.com.ar/trac/wiki/ManualPyAfipWs#Configuraci�n
# Para producción debe descomentar las URL (sacar ##)
# Más información:
# http://www.sistemasagiles.com.ar/trac/wiki/ManualPyAfipWs#Configuración

[WSAA]
CERT=reingart.crt
Expand Down Expand Up @@ -42,6 +42,12 @@ ENTRADA=entrada.txt
SALIDA=salida.txt
##URL=https://servicios1.afip.gov.ar/wsfe/service.asmx

[WSFEXv1]
CUIT=20267565393
ENTRADA=entrada.txt
SALIDA=salida.txt
##URL=https://servicios1.afip.gov.ar/wsfe/service.asmx

[WSCT]
CUIT=20267565393
ENTRADA=entrada.txt
Expand Down
17 changes: 17 additions & 0 deletions formatos/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/python
# -*- coding: utf8 -*-
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by the
# Free Software Foundation; either version 3, or (at your option) any later
# version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
# for more details.

"""Módulo para acceder a web services de la afip
"""
__author__ = "Mariano Reingart ([email protected])"
__copyright__ = "Copyright (C) 2008-2021 Mariano Reingart"
__license__ = "LGPL-3.0-or-later"
2 changes: 1 addition & 1 deletion formatos/formato_dbf.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

# definición del formato del archivo de intercambio:

from formato_txt import (
from .formato_txt import (
A,
N,
I,
Expand Down
24 changes: 12 additions & 12 deletions recex1.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def autorizar(ws, entrada, salida):
print("DIF:", detalle["qty"] * detalle["precio"] - detalle["importe"])

print("id:", encabezado["id"])
if not DEBUG or not sys.stdout.isatty() or input("Facturar?") == "S":
if not DEBUG or not sys.stdout.isatty() :
ws.LanzarExcepcion = False
cae = ws.Authorize(id=encabezado["id"])
dic = ws.factura
Expand Down Expand Up @@ -277,7 +277,7 @@ def depurar_xml(client):
f.write(client.xml_request)
f.close()
f = open("response-%s.xml" % fecha, "w")
f.write(client.xml_response)
f.write(client.xml_response.decode())
f.close()


Expand All @@ -302,7 +302,7 @@ def main():
print(" /dbf: lee y almacena la información en tablas DBF")
print()
print("Ver rece.ini para parámetros de configuración (URL, certificados, etc.)")
sys.exit(0)
return

config = abrir_conf(CONFIG_FILE, DEBUG)
cert = config.get("WSAA", "CERT")
Expand Down Expand Up @@ -380,10 +380,10 @@ def main():
print("AppServerStatus", ws.AppServerStatus)
print("DbServerStatus", ws.DbServerStatus)
print("AuthServerStatus", ws.AuthServerStatus)
sys.exit(0)
return

if "/formato" in sys.argv:
from .formatos.formato_dbf import definir_campos
from .formatos import formato_dbf

print("Formato:")
for msg, formato in [
Expand All @@ -406,10 +406,10 @@ def main():
else:
filename = "%s.dbf" % msg.lower()[:8]
print("==== %s (%s) ====" % (msg, filename))
claves, campos = definir_campos(formato)
claves, campos = formato_dbf.definir_campos(formato)
for campo in campos:
print(" * Campo: %s" % (campo,))
sys.exit(0)
return

# obteniendo el TA
from .wsaa import WSAA
Expand Down Expand Up @@ -531,7 +531,7 @@ def main():
},
open(salida, "w"),
)
sys.exit(0)
return

if "/get" in sys.argv:
print("Recuperar comprobante:")
Expand Down Expand Up @@ -568,7 +568,7 @@ def main():
},
open(salida, "w"),
)
sys.exit(0)
return

if "/ctz" in sys.argv:
i = sys.argv.index("/ctz")
Expand All @@ -579,7 +579,7 @@ def main():
ctz = ws.GetParamCtz(moneda_id)
print("Cotizacion: ", ctz)
print(ws.ErrMsg)
sys.exit(0)
return

if "/monctz" in sys.argv:
i = sys.argv.index("/monctz")
Expand All @@ -590,7 +590,7 @@ def main():
ctz = ws.GetParamMonConCotizacion(fecha)
print("\n".join(ctz))
print(ws.ErrMsg)
sys.exit(0)
return

f_entrada = f_salida = None
try:
Expand All @@ -608,7 +608,7 @@ def main():
f_salida.close()
if XML:
depurar_xml(ws.client)
sys.exit(0)
return

except Exception as e:
print(str(e).encode("ascii", "ignore"))
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"(soap, com/dll, pdf, dbf, xml, etc.)"
)
kwargs["package_dir"] = {"pyafipws": "."}
kwargs["packages"] = ["pyafipws"]
kwargs["packages"] = ["pyafipws", "pyafipws.formatos"]
opts = {}
data_files = [("pyafipws/plantillas", glob.glob("plantillas/*"))]

Expand Down
64 changes: 64 additions & 0 deletions tests/cassettes/test_wsfexv1_recex1/test_main_ayuda.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
interactions:
- request:
body: "<?xml version=\"1.0\" encoding=\"UTF-8\"?><soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"
xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">\n<soap:Header/>\n<soap:Body>\n
\ <FEXAuthorize xmlns=\"http://ar.gov.afip.dif.fexv1/\">\n <Auth><Token>PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9InllcyI/Pgo8c3NvIHZlcnNpb249IjIuMCI+CiAgICA8aWQgc3JjPSJDTj13c2FhaG9tbywgTz1BRklQLCBDPUFSLCBTRVJJQUxOVU1CRVI9Q1VJVCAzMzY5MzQ1MDIzOSIgZHN0PSJjbj13c2ZleCxvPWFmaXAsYz1hciIgdW5pcXVlX2lkPSIzNDYzNTI0MTU0IiBnZW5fdGltZT0iMTYyNzg4NzkzMyIgZXhwX3RpbWU9IjE2Mjc5MzExOTMiLz4KICAgIDxvcGVyYXRpb24gdHlwZT0ibG9naW4iIHZhbHVlPSJncmFudGVkIj4KICAgICAgICA8bG9naW4gZW50aXR5PSIzMzY5MzQ1MDIzOSIgc2VydmljZT0id3NmZXgiIHVpZD0iU0VSSUFMTlVNQkVSPUNVSVQgMjAyNjc1NjUzOTMsIENOPXJlaW5nYXJ0MjAyMSIgYXV0aG1ldGhvZD0iY21zIiByZWdtZXRob2Q9IjIyIj4KICAgICAgICAgICAgPHJlbGF0aW9ucz4KICAgICAgICAgICAgICAgIDxyZWxhdGlvbiBrZXk9IjIwMjY3NTY1MzkzIiByZWx0eXBlPSI0Ii8+CiAgICAgICAgICAgIDwvcmVsYXRpb25zPgogICAgICAgIDwvbG9naW4+CiAgICA8L29wZXJhdGlvbj4KPC9zc28+Cg==</Token><Sign>SZ1fyhMT8/62JmbcMZsvdnqAIcy9h2e86ymG5LLcRUzevrWbd9kktHaz89qgK7w0B2JrWfxBQ15s48TpI9sG/zdwIOFs6vOYo2rb/jsAz769kgfwvuMO5n9cnfjKVbqg4+Ur903NgcRocMN4GKo0Sn7G9CJADSgbgiOQCktg6v4=</Sign><Cuit>20267565393</Cuit></Auth><Cmp><Id>988888888888345</Id><Fecha_cbte>20210802</Fecha_cbte><Cbte_Tipo>21</Cbte_Tipo><Punto_vta>7</Punto_vta><Cbte_nro>28</Cbte_nro><Tipo_expo>1</Tipo_expo><Permiso_existente>S</Permiso_existente><Permisos><Permiso><Id_permiso>99999AAXX999999A</Id_permiso><Dst_merc>225</Dst_merc></Permiso></Permisos><Dst_cmp>203</Dst_cmp><Cliente>Joao
Da Silva</Cliente><Cuit_pais_cliente>0</Cuit_pais_cliente><Domicilio_cliente>Rua
76 km 34.5 Alagoas</Domicilio_cliente><Id_impositivo>PJ54482221-l</Id_impositivo><Moneda_Id>DOL</Moneda_Id><Moneda_ctz>19.8</Moneda_ctz><Obs_comerciales>Observaciones
comerciales</Obs_comerciales><Imp_total>250.0</Imp_total><Obs>Sin observaciones</Obs><Cmps_asoc><Cmp_asoc><Cbte_tipo>19</Cbte_tipo><Cbte_punto_vta>2</Cbte_punto_vta><Cbte_nro>1234</Cbte_nro><Cbte_cuit>20111111111</Cbte_cuit></Cmp_asoc></Cmps_asoc><Forma_pago>30
dias</Forma_pago><Incoterms>FOB</Incoterms><Incoterms_Ds>Flete a Bordo</Incoterms_Ds><Idioma_cbte>1</Idioma_cbte><Items><Item><Pro_codigo>PRO1</Pro_codigo><Pro_ds>Producto
Tipo 1 Exportacion MERCOSUR ISO 9001</Pro_ds><Pro_qty>2.0</Pro_qty><Pro_umed>1</Pro_umed><Pro_precio_uni>150.0</Pro_precio_uni><Pro_bonificacion>50.0</Pro_bonificacion><Pro_total_item>250.0</Pro_total_item></Item></Items><Fecha_pago></Fecha_pago></Cmp></FEXAuthorize>\n</soap:Body>\n</soap:Envelope>"
headers:
accept-encoding:
- gzip, deflate
content-length:
- '2619'
content-type:
- text/xml; charset="UTF-8"
soapaction:
- '"http://ar.gov.afip.dif.fexv1/FEXAuthorize"'
user-agent:
- Mozilla/5.0 (Windows NT 6.1; Win64; x64)
method: POST
uri: https://wswhomo.afip.gov.ar/wsfexv1/service.asmx
response:
body:
string: "<?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:xsd=\"http://www.w3.org/2001/XMLSchema\"><soap:Header><FEHeaderInfo
xmlns=\"http://ar.gov.afip.dif.fexv1/\"><ambiente>Homologacion - efa</ambiente><fecha>2021-08-02T04:15:40.4021028-03:00</fecha><id>2.1.0.0</id></FEHeaderInfo></soap:Header><soap:Body><FEXAuthorizeResponse
xmlns=\"http://ar.gov.afip.dif.fexv1/\"><FEXAuthorizeResult><FEXErr><ErrCode>1667</ErrCode><ErrMsg>El
tipo de cambio no podr\xE1 ser inferior al 20% ni superior en un 100% del
que suministra AFIP como orientativo de acuerdo a la cotizaci\xF3n oficial.
Ver Metodo FEXGetPARAM_Ctz.</ErrMsg></FEXErr><FEXEvents><EventCode>0</EventCode><EventMsg>Ok</EventMsg></FEXEvents></FEXAuthorizeResult></FEXAuthorizeResponse></soap:Body></soap:Envelope>\r\n"
headers:
Cache-Control:
- private, max-age=0
Content-Length:
- '872'
Content-Type:
- text/xml; charset=utf-8
Date:
- Mon, 02 Aug 2021 07:15:40 GMT
Expect-CT:
- enforce
MicrosoftOfficeWebServer:
- 5.0_Pub
Set-Cookie:
- TS01983a04=01439f1ddf64a26f900950900750865d52c42385dbc95a43983acc515382474d61ae18b44e;
Path=/
Strict-Transport-Security:
- nosniff
X-AspNet-Version:
- 2.0.50727
X-Content-Type-Options:
- nosniff
X-Frame-Options:
- SAMEORIGIN
X-Powered-By:
- ASP.NET
X-Xss-Protection:
- 1; mode=block
status:
code: 200
message: OK
version: 1
122 changes: 122 additions & 0 deletions tests/cassettes/test_wsfexv1_recex1/test_main_ctz.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
interactions:
- request:
body: "<?xml version=\"1.0\" encoding=\"UTF-8\"?><soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"
xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">\n<soap:Header/>\n<soap:Body>\n
\ <FEXGetPARAM_Ctz xmlns=\"http://ar.gov.afip.dif.fexv1/\">\n <Auth><Token>PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9InllcyI/Pgo8c3NvIHZlcnNpb249IjIuMCI+CiAgICA8aWQgc3JjPSJDTj13c2FhaG9tbywgTz1BRklQLCBDPUFSLCBTRVJJQUxOVU1CRVI9Q1VJVCAzMzY5MzQ1MDIzOSIgZHN0PSJjbj13c2ZleCxvPWFmaXAsYz1hciIgdW5pcXVlX2lkPSIzNDYzNTI0MTU0IiBnZW5fdGltZT0iMTYyNzg4NzkzMyIgZXhwX3RpbWU9IjE2Mjc5MzExOTMiLz4KICAgIDxvcGVyYXRpb24gdHlwZT0ibG9naW4iIHZhbHVlPSJncmFudGVkIj4KICAgICAgICA8bG9naW4gZW50aXR5PSIzMzY5MzQ1MDIzOSIgc2VydmljZT0id3NmZXgiIHVpZD0iU0VSSUFMTlVNQkVSPUNVSVQgMjAyNjc1NjUzOTMsIENOPXJlaW5nYXJ0MjAyMSIgYXV0aG1ldGhvZD0iY21zIiByZWdtZXRob2Q9IjIyIj4KICAgICAgICAgICAgPHJlbGF0aW9ucz4KICAgICAgICAgICAgICAgIDxyZWxhdGlvbiBrZXk9IjIwMjY3NTY1MzkzIiByZWx0eXBlPSI0Ii8+CiAgICAgICAgICAgIDwvcmVsYXRpb25zPgogICAgICAgIDwvbG9naW4+CiAgICA8L29wZXJhdGlvbj4KPC9zc28+Cg==</Token><Sign>SZ1fyhMT8/62JmbcMZsvdnqAIcy9h2e86ymG5LLcRUzevrWbd9kktHaz89qgK7w0B2JrWfxBQ15s48TpI9sG/zdwIOFs6vOYo2rb/jsAz769kgfwvuMO5n9cnfjKVbqg4+Ur903NgcRocMN4GKo0Sn7G9CJADSgbgiOQCktg6v4=</Sign><Cuit>20267565393</Cuit></Auth><Mon_id>DOL</Mon_id></FEXGetPARAM_Ctz>\n</soap:Body>\n</soap:Envelope>"
headers:
accept-encoding:
- gzip, deflate
content-length:
- '1372'
content-type:
- text/xml; charset="UTF-8"
soapaction:
- '"http://ar.gov.afip.dif.fexv1/FEXGetPARAM_Ctz"'
user-agent:
- Mozilla/5.0 (Windows NT 6.1; Win64; x64)
method: POST
uri: https://wswhomo.afip.gov.ar/wsfexv1/service.asmx
response:
body:
string: <?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:xsd="http://www.w3.org/2001/XMLSchema"><soap:Header><FEHeaderInfo
xmlns="http://ar.gov.afip.dif.fexv1/"><ambiente>Homologacion - efa</ambiente><fecha>2021-08-02T04:15:50.5584178-03:00</fecha><id>2.1.0.0</id></FEHeaderInfo></soap:Header><soap:Body><FEXGetPARAM_CtzResponse
xmlns="http://ar.gov.afip.dif.fexv1/"><FEXGetPARAM_CtzResult><FEXResultGet><Mon_ctz>101.2110</Mon_ctz><Mon_fecha>20210730</Mon_fecha></FEXResultGet><FEXErr><ErrCode>0</ErrCode><ErrMsg>OK</ErrMsg></FEXErr><FEXEvents><EventCode>0</EventCode><EventMsg>Ok</EventMsg></FEXEvents></FEXGetPARAM_CtzResult></FEXGetPARAM_CtzResponse></soap:Body></soap:Envelope>
headers:
Cache-Control:
- no-cache
Content-Length:
- '792'
Content-Type:
- text/xml; charset=utf-8
Date:
- Mon, 02 Aug 2021 07:15:50 GMT
Expect-CT:
- enforce
Expires:
- '-1'
MicrosoftOfficeWebServer:
- 5.0_Pub
Pragma:
- no-cache
Set-Cookie:
- TS01983a04=01439f1ddfad39ffa4e6c70c81bf4f927c339353d20a995bb9bf48622472413a07bd41b5fe;
Path=/
Strict-Transport-Security:
- nosniff
X-AspNet-Version:
- 2.0.50727
X-Content-Type-Options:
- nosniff
X-Frame-Options:
- SAMEORIGIN
X-Powered-By:
- ASP.NET
X-Xss-Protection:
- 1; mode=block
status:
code: 200
message: OK
- request:
body: "<?xml version=\"1.0\" encoding=\"UTF-8\"?><soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"
xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">\n<soap:Header/>\n<soap:Body>\n
\ <FEXAuthorize xmlns=\"http://ar.gov.afip.dif.fexv1/\">\n <Auth><Token>PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9InllcyI/Pgo8c3NvIHZlcnNpb249IjIuMCI+CiAgICA8aWQgc3JjPSJDTj13c2FhaG9tbywgTz1BRklQLCBDPUFSLCBTRVJJQUxOVU1CRVI9Q1VJVCAzMzY5MzQ1MDIzOSIgZHN0PSJjbj13c2ZleCxvPWFmaXAsYz1hciIgdW5pcXVlX2lkPSIzNDYzNTI0MTU0IiBnZW5fdGltZT0iMTYyNzg4NzkzMyIgZXhwX3RpbWU9IjE2Mjc5MzExOTMiLz4KICAgIDxvcGVyYXRpb24gdHlwZT0ibG9naW4iIHZhbHVlPSJncmFudGVkIj4KICAgICAgICA8bG9naW4gZW50aXR5PSIzMzY5MzQ1MDIzOSIgc2VydmljZT0id3NmZXgiIHVpZD0iU0VSSUFMTlVNQkVSPUNVSVQgMjAyNjc1NjUzOTMsIENOPXJlaW5nYXJ0MjAyMSIgYXV0aG1ldGhvZD0iY21zIiByZWdtZXRob2Q9IjIyIj4KICAgICAgICAgICAgPHJlbGF0aW9ucz4KICAgICAgICAgICAgICAgIDxyZWxhdGlvbiBrZXk9IjIwMjY3NTY1MzkzIiByZWx0eXBlPSI0Ii8+CiAgICAgICAgICAgIDwvcmVsYXRpb25zPgogICAgICAgIDwvbG9naW4+CiAgICA8L29wZXJhdGlvbj4KPC9zc28+Cg==</Token><Sign>SZ1fyhMT8/62JmbcMZsvdnqAIcy9h2e86ymG5LLcRUzevrWbd9kktHaz89qgK7w0B2JrWfxBQ15s48TpI9sG/zdwIOFs6vOYo2rb/jsAz769kgfwvuMO5n9cnfjKVbqg4+Ur903NgcRocMN4GKo0Sn7G9CJADSgbgiOQCktg6v4=</Sign><Cuit>20267565393</Cuit></Auth><Cmp><Id>988888888888345</Id><Fecha_cbte>20210802</Fecha_cbte><Cbte_Tipo>21</Cbte_Tipo><Punto_vta>7</Punto_vta><Cbte_nro>28</Cbte_nro><Tipo_expo>1</Tipo_expo><Permiso_existente>S</Permiso_existente><Permisos><Permiso><Id_permiso>99999AAXX999999A</Id_permiso><Dst_merc>225</Dst_merc></Permiso></Permisos><Dst_cmp>203</Dst_cmp><Cliente>Joao
Da Silva</Cliente><Cuit_pais_cliente>0</Cuit_pais_cliente><Domicilio_cliente>Rua
76 km 34.5 Alagoas</Domicilio_cliente><Id_impositivo>PJ54482221-l</Id_impositivo><Moneda_Id>DOL</Moneda_Id><Moneda_ctz>19.8</Moneda_ctz><Obs_comerciales>Observaciones
comerciales</Obs_comerciales><Imp_total>250.0</Imp_total><Obs>Sin observaciones</Obs><Cmps_asoc><Cmp_asoc><Cbte_tipo>19</Cbte_tipo><Cbte_punto_vta>2</Cbte_punto_vta><Cbte_nro>1234</Cbte_nro><Cbte_cuit>20111111111</Cbte_cuit></Cmp_asoc></Cmps_asoc><Forma_pago>30
dias</Forma_pago><Incoterms>FOB</Incoterms><Incoterms_Ds>Flete a Bordo</Incoterms_Ds><Idioma_cbte>1</Idioma_cbte><Items><Item><Pro_codigo>PRO1</Pro_codigo><Pro_ds>Producto
Tipo 1 Exportacion MERCOSUR ISO 9001</Pro_ds><Pro_qty>2.0</Pro_qty><Pro_umed>1</Pro_umed><Pro_precio_uni>150.0</Pro_precio_uni><Pro_bonificacion>50.0</Pro_bonificacion><Pro_total_item>250.0</Pro_total_item></Item></Items><Fecha_pago></Fecha_pago></Cmp></FEXAuthorize>\n</soap:Body>\n</soap:Envelope>"
headers:
accept-encoding:
- gzip, deflate
content-length:
- '2619'
content-type:
- text/xml; charset="UTF-8"
soapaction:
- '"http://ar.gov.afip.dif.fexv1/FEXAuthorize"'
user-agent:
- Mozilla/5.0 (Windows NT 6.1; Win64; x64)
method: POST
uri: https://wswhomo.afip.gov.ar/wsfexv1/service.asmx
response:
body:
string: "<?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:xsd=\"http://www.w3.org/2001/XMLSchema\"><soap:Header><FEHeaderInfo
xmlns=\"http://ar.gov.afip.dif.fexv1/\"><ambiente>Homologacion - efa</ambiente><fecha>2021-08-02T04:15:51.0115457-03:00</fecha><id>2.1.0.0</id></FEHeaderInfo></soap:Header><soap:Body><FEXAuthorizeResponse
xmlns=\"http://ar.gov.afip.dif.fexv1/\"><FEXAuthorizeResult><FEXErr><ErrCode>1667</ErrCode><ErrMsg>El
tipo de cambio no podr\xE1 ser inferior al 20% ni superior en un 100% del
que suministra AFIP como orientativo de acuerdo a la cotizaci\xF3n oficial.
Ver Metodo FEXGetPARAM_Ctz.</ErrMsg></FEXErr><FEXEvents><EventCode>0</EventCode><EventMsg>Ok</EventMsg></FEXEvents></FEXAuthorizeResult></FEXAuthorizeResponse></soap:Body></soap:Envelope>\r\n"
headers:
Cache-Control:
- private, max-age=0
Content-Length:
- '872'
Content-Type:
- text/xml; charset=utf-8
Date:
- Mon, 02 Aug 2021 07:15:51 GMT
Expect-CT:
- enforce
MicrosoftOfficeWebServer:
- 5.0_Pub
Set-Cookie:
- TS01983a04=01439f1ddf10529dc4f351a4a62a34068169642647072507e9224fe9cd0fda17744fbab63c;
Path=/
Strict-Transport-Security:
- nosniff
X-AspNet-Version:
- 2.0.50727
X-Content-Type-Options:
- nosniff
X-Frame-Options:
- SAMEORIGIN
X-Powered-By:
- ASP.NET
X-Xss-Protection:
- 1; mode=block
status:
code: 200
message: OK
version: 1
Loading