forked from reingart/pyafipws
-
Notifications
You must be signed in to change notification settings - Fork 0
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 reingart#63 from chazuttu/fixed_test_gsoc19
Fixed tests from gsoc19
- Loading branch information
Showing
157 changed files
with
27,349 additions
and
931 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,109 @@ | ||
interactions: | ||
- request: | ||
body: null | ||
headers: | ||
accept-encoding: | ||
- gzip, deflate | ||
user-agent: | ||
- Mozilla/5.0 (Windows NT 6.1; Win64; x64) | ||
method: GET | ||
uri: https://wsaahomo.afip.gov.ar/ws/services/LoginCms?wsdl | ||
response: | ||
body: | ||
string: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<wsdl:definitions targetNamespace=\"https://wsaahomo.afip.gov.ar/ws/services/LoginCms\" | ||
xmlns:apachesoap=\"http://xml.apache.org/xml-soap\" xmlns:impl=\"https://wsaahomo.afip.gov.ar/ws/services/LoginCms\" | ||
xmlns:intf=\"https://wsaahomo.afip.gov.ar/ws/services/LoginCms\" xmlns:tns1=\"http://wsaa.view.sua.dvadac.desein.afip.gov\" | ||
xmlns:wsdl=\"http://schemas.xmlsoap.org/wsdl/\" xmlns:wsdlsoap=\"http://schemas.xmlsoap.org/wsdl/soap/\" | ||
xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">\n<!--WSDL created by Apache | ||
Axis version: 1.4\nBuilt on Apr 22, 2006 (06:55:48 PDT)-->\n <wsdl:types>\n | ||
\ <schema elementFormDefault=\"qualified\" targetNamespace=\"http://wsaa.view.sua.dvadac.desein.afip.gov\" | ||
xmlns=\"http://www.w3.org/2001/XMLSchema\">\n <import namespace=\"https://wsaahomo.afip.gov.ar/ws/services/LoginCms\"/>\n | ||
\ <element name=\"loginCms\">\n <complexType>\n <sequence>\n <element | ||
name=\"in0\" type=\"xsd:string\"/>\n </sequence>\n </complexType>\n | ||
\ </element>\n <element name=\"loginCmsResponse\">\n <complexType>\n | ||
\ <sequence>\n <element name=\"loginCmsReturn\" type=\"xsd:string\"/>\n | ||
\ </sequence>\n </complexType>\n </element>\n </schema>\n <schema | ||
elementFormDefault=\"qualified\" targetNamespace=\"https://wsaahomo.afip.gov.ar/ws/services/LoginCms\" | ||
xmlns=\"http://www.w3.org/2001/XMLSchema\">\n <complexType name=\"LoginFault\">\n | ||
\ <sequence/>\n </complexType>\n <element name=\"fault\" type=\"impl:LoginFault\"/>\n | ||
\ </schema>\n </wsdl:types>\n\n <wsdl:message name=\"loginCmsRequest\">\n\n | ||
\ <wsdl:part element=\"tns1:loginCms\" name=\"parameters\">\n\n </wsdl:part>\n\n | ||
\ </wsdl:message>\n\n <wsdl:message name=\"LoginFault\">\n\n <wsdl:part | ||
element=\"impl:fault\" name=\"fault\">\n\n </wsdl:part>\n\n </wsdl:message>\n\n | ||
\ <wsdl:message name=\"loginCmsResponse\">\n\n <wsdl:part element=\"tns1:loginCmsResponse\" | ||
name=\"parameters\">\n\n </wsdl:part>\n\n </wsdl:message>\n\n <wsdl:portType | ||
name=\"LoginCMS\">\n\n <wsdl:operation name=\"loginCms\">\n\n <wsdl:input | ||
message=\"impl:loginCmsRequest\" name=\"loginCmsRequest\">\n\n </wsdl:input>\n\n | ||
\ <wsdl:output message=\"impl:loginCmsResponse\" name=\"loginCmsResponse\">\n\n | ||
\ </wsdl:output>\n\n <wsdl:fault message=\"impl:LoginFault\" | ||
name=\"LoginFault\">\n\n </wsdl:fault>\n\n </wsdl:operation>\n\n | ||
\ </wsdl:portType>\n\n <wsdl:binding name=\"LoginCmsSoapBinding\" type=\"impl:LoginCMS\">\n\n | ||
\ <wsdlsoap:binding style=\"document\" transport=\"http://schemas.xmlsoap.org/soap/http\"/>\n\n | ||
\ <wsdl:operation name=\"loginCms\">\n\n <wsdlsoap:operation soapAction=\"\"/>\n\n | ||
\ <wsdl:input name=\"loginCmsRequest\">\n\n <wsdlsoap:body | ||
use=\"literal\"/>\n\n </wsdl:input>\n\n <wsdl:output name=\"loginCmsResponse\">\n\n | ||
\ <wsdlsoap:body use=\"literal\"/>\n\n </wsdl:output>\n\n | ||
\ <wsdl:fault name=\"LoginFault\">\n\n <wsdlsoap:fault name=\"LoginFault\" | ||
use=\"literal\"/>\n\n </wsdl:fault>\n\n </wsdl:operation>\n\n | ||
\ </wsdl:binding>\n\n <wsdl:service name=\"LoginCMSService\">\n\n <wsdl:port | ||
binding=\"impl:LoginCmsSoapBinding\" name=\"LoginCms\">\n\n <wsdlsoap:address | ||
location=\"https://wsaahomo.afip.gov.ar/ws/services/LoginCms\"/>\n\n </wsdl:port>\n\n | ||
\ </wsdl:service>\n\n</wsdl:definitions>\n" | ||
headers: | ||
Content-Type: | ||
- text/xml;charset=utf-8 | ||
Date: | ||
- Sat, 19 Jun 2021 15:24:18 GMT | ||
Set-Cookie: | ||
- TS01b14f84=0145b27a9733975d89fb761d1f1407f942a128ff85572d47566f781d1fe5df88d90b413515; | ||
Path=/ | ||
Transfer-Encoding: | ||
- chunked | ||
status: | ||
code: 200 | ||
message: OK | ||
- request: | ||
body: "<?xml version=\"1.0\" encoding=\"UTF-8\"?><soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" | ||
xmlns:ser=\"https://wsaahomo.afip.gov.ar/ws/services/LoginCms\">\n<soapenv:Header/>\n<soapenv:Body>\n | ||
\ <ser:loginCms>\n <in0>MIIG+wYJKoZIhvcNAQcCoIIG7DCCBugCAQExDzANBglghkgBZQMEAgEFADCCAR8G\nCSqGSIb3DQEHAaCCARAEggEMPD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0i\nVVRGLTgiPz48bG9naW5UaWNrZXRSZXF1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auqmY7zjWkxa6ZQIsclf\nF0sBibEVf53g+qWtOthPX+fzC5aLfd3jLy0oC023dr/TQIOmBwpSWBdk51OtYZ5f\nG0hh4BGiSmG9oZddK8uz4eKIHndysWNCVGphTctI+tgN/tbCeiB3z8Jf2o+pOCP5\nyzbsQQJrrcGJh7rP2YZh\n\n</in0></ser:loginCms>\n</soapenv:Body>\n</soapenv:Envelope>" | ||
headers: | ||
accept-encoding: | ||
- gzip, deflate | ||
content-length: | ||
- '2722' | ||
content-type: | ||
- text/xml; charset="UTF-8" | ||
soapaction: | ||
- '"None"' | ||
user-agent: | ||
- Mozilla/5.0 (Windows NT 6.1; Win64; x64) | ||
method: POST | ||
uri: https://wsaahomo.afip.gov.ar/ws/services/LoginCms | ||
response: | ||
body: | ||
string: "<?xml version=\"1.0\" encoding=\"UTF-8\"?><soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" | ||
xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"><soapenv:Body><loginCmsResponse | ||
xmlns=\"https://wsaahomo.afip.gov.ar/ws/services/LoginCms\"><loginCmsReturn><?xml | ||
version="1.0" encoding="UTF-8" standalone="yes"?>\n<loginTicketResponse | ||
version="1.0">\n <header>\n <source>CN=wsaahomo, | ||
O=AFIP, C=AR, SERIALNUMBER=CUIT 33693450239</source>\n <destination>SERIALNUMBER=CUIT | ||
20267565393, CN=reingart2019pub</destination>\n <uniqueId>52006586</uniqueId>\n | ||
\ <generationTime>2021-06-19T12:24:19.330-03:00</generationTime>\n | ||
\ <expirationTime>2021-06-20T00:24:19.330-03:00</expirationTime>\n | ||
\ </header>\n <credentials>\n <token>PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9InllcyI/Pgo8c3NvIHZlcnNpb249IjIuMCI+CiAgICA8aWQgc3JjPSJDTj13c2FhaG9tbywgTz1BRklQLCBDPUFSLCBTRVJJQUxOVU1CRVI9Q1VJVCAzMzY5MzQ1MDIzOSIgZHN0PSJDTj13c2ZlLCBPPUFGSVAsIEM9QVIiIHVuaXF1ZV9pZD0iMjE1Njg0NDMxNiIgZ2VuX3RpbWU9IjE2MjQxMTYxOTkiIGV4cF90aW1lPSIxNjI0MTU5NDU5Ii8+CiAgICA8b3BlcmF0aW9uIHR5cGU9ImxvZ2luIiB2YWx1ZT0iZ3JhbnRlZCI+CiAgICAgICAgPGxvZ2luIGVudGl0eT0iMzM2OTM0NTAyMzkiIHNlcnZpY2U9IndzZmUiIHVpZD0iU0VSSUFMTlVNQkVSPUNVSVQgMjAyNjc1NjUzOTMsIENOPXJlaW5nYXJ0MjAxOXB1YiIgYXV0aG1ldGhvZD0iY21zIiByZWdtZXRob2Q9IjIyIj4KICAgICAgICAgICAgPHJlbGF0aW9ucz4KICAgICAgICAgICAgICAgIDxyZWxhdGlvbiBrZXk9IjIwMjY3NTY1MzkzIiByZWx0eXBlPSI0Ii8+CiAgICAgICAgICAgIDwvcmVsYXRpb25zPgogICAgICAgIDwvbG9naW4+CiAgICA8L29wZXJhdGlvbj4KPC9zc28+Cg==</token>\n | ||
\ <sign>ALIEG4WmFRj3a7NJWN2hkmTMgc6MntkQi+/ZrEc0lk2K8ue/5NE2TO1K9iMXxxBZG/X51uJKKNItCS9cE50AgnxxlqmJIWezQVFHphSvMxbr2uYFjWZR7by+JqU9PknP5qbRX3Rr6l6ziC3Jw33L46GRNPqo25Ca/iXuzlxUNXQ=</sign>\n | ||
\ </credentials>\n</loginTicketResponse>\n</loginCmsReturn></loginCmsResponse></soapenv:Body></soapenv:Envelope>" | ||
headers: | ||
Content-Type: | ||
- text/xml;charset=utf-8 | ||
Date: | ||
- Sat, 19 Jun 2021 15:24:19 GMT | ||
Set-Cookie: | ||
- TS01b14f84=0145b27a975df1bf982dcb2e8f2985d2862a159f2064751019924d3c846b3e27154e109502; | ||
Path=/ | ||
Transfer-Encoding: | ||
- chunked | ||
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,53 @@ | ||
interactions: | ||
- request: | ||
body: "<?xml version=\"1.0\" encoding=\"UTF-8\"?><soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" | ||
xmlns:ser=\"http://a5.soap.ws.server.puc.sr/\">\n<soapenv:Header/>\n<soapenv:Body>\n | ||
\ <ser:getPersona>\n <token>PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9InllcyI/Pgo8c3NvIHZlcnNpb249IjIuMCI+CiAgICA8aWQgc3JjPSJDTj13c2FhaG9tbywgTz1BRklQLCBDPUFSLCBTRVJJQUxOVU1CRVI9Q1VJVCAzMzY5MzQ1MDIzOSIgdW5pcXVlX2lkPSIzOTg2MTMxNDI5IiBnZW5fdGltZT0iMTYyNDIwNzI5MSIgZXhwX3RpbWU9IjE2MjQyNTA1NTEiLz4KICAgIDxvcGVyYXRpb24gdHlwZT0ibG9naW4iIHZhbHVlPSJncmFudGVkIj4KICAgICAgICA8bG9naW4gZW50aXR5PSIzMzY5MzQ1MDIzOSIgc2VydmljZT0id3Nfc3JfcGFkcm9uX2E1IiB1aWQ9IlNFUklBTE5VTUJFUj1DVUlUIDIwMjY3NTY1MzkzLCBDTj1yZWluZ2FydDIwMTlwdWIiIGF1dGhtZXRob2Q9ImNtcyIgcmVnbWV0aG9kPSIyMiI+CiAgICAgICAgICAgIDxyZWxhdGlvbnM+CiAgICAgICAgICAgICAgICA8cmVsYXRpb24ga2V5PSIyMDI2NzU2NTM5MyIgcmVsdHlwZT0iNCIvPgogICAgICAgICAgICA8L3JlbGF0aW9ucz4KICAgICAgICA8L2xvZ2luPgogICAgPC9vcGVyYXRpb24+Cjwvc3NvPgo=</token><sign>fo+cQYXJEB29crTS8gua8ikyY3yuN7MAE19hTF8kCqDlvdIITIwDkkkvz7BL/Z/fFcVeSa96pDIfJG64YVr36NmAlbmFNezEEiO6YzWgnBzE8NhqDxA8/Orrd2F77WOEg/7Df/gOV11zd3yokhRKoJmFJ/dhgR18yhwZYylc8AQ=</sign><cuitRepresentada>20267565393</cuitRepresentada><idPersona>20201797064</idPersona></ser:getPersona>\n</soapenv:Body>\n</soapenv:Envelope>" | ||
headers: | ||
accept-encoding: | ||
- gzip, deflate | ||
content-length: | ||
- '1301' | ||
content-type: | ||
- text/xml; charset="UTF-8" | ||
soapaction: | ||
- '"None"' | ||
user-agent: | ||
- Mozilla/5.0 (Windows NT 6.1; Win64; x64) | ||
method: POST | ||
uri: https://awshomo.afip.gov.ar/sr-padron/webservices/personaServiceA5 | ||
response: | ||
body: | ||
string: "<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\"><soap:Body><ns2:getPersonaResponse | ||
xmlns:ns2=\"http://a5.soap.ws.server.puc.sr/\"><personaReturn><datosGenerales><apellido>VICTORIA | ||
CAROLINA</apellido><domicilioFiscal><codPostal>1030</codPostal><descripcionProvincia>CIUDAD | ||
AUTONOMA BUENOS AIRES</descripcionProvincia><direccion>LARREA 1</direccion><idProvincia>0</idProvincia><tipoDomicilio>FISCAL</tipoDomicilio></domicilioFiscal><estadoClave>ACTIVO</estadoClave><idPersona>20201797064</idPersona><mesCierre>12</mesCierre><nombre>DARIO</nombre><tipoClave>CUIT</tipoClave><tipoPersona>FISICA</tipoPersona></datosGenerales><datosRegimenGeneral><actividad><descripcionActividad>SUMINISTRO | ||
DE VAPOR Y AIRE ACONDICIONADO</descripcionActividad><idActividad>353001</idActividad><nomenclador>883</nomenclador><orden>2</orden><periodo>201311</periodo></actividad><actividad><descripcionActividad>FORMACI\xD3N | ||
DE POSGRADO</descripcionActividad><idActividad>853300</idActividad><nomenclador>883</nomenclador><orden>1</orden><periodo>201311</periodo></actividad><impuesto><descripcionImpuesto>GANANCIAS | ||
PERSONAS FISICAS</descripcionImpuesto><idImpuesto>11</idImpuesto><periodo>201101</periodo></impuesto><impuesto><descripcionImpuesto>IVA</descripcionImpuesto><idImpuesto>30</idImpuesto><periodo>201101</periodo></impuesto><impuesto><descripcionImpuesto>DACI\xD3N | ||
EN PAGO DE ESP.PUBLICI.</descripcionImpuesto><idImpuesto>936</idImpuesto><periodo>200701</periodo></impuesto></datosRegimenGeneral><errorMonotributo><error>Datos | ||
de monotributo incompletos- no posee categor\xEDa</error><mensaje>No cumple | ||
con las condiciones para enviar datos monotributo</mensaje></errorMonotributo><metadata><fechaHora>2021-06-20T14:38:12.163-03:00</fechaHora><servidor>setiwsh2</servidor></metadata></personaReturn></ns2:getPersonaResponse></soap:Body></soap:Envelope>" | ||
headers: | ||
Content-Length: | ||
- '1853' | ||
Content-Type: | ||
- text/xml;charset=UTF-8 | ||
Date: | ||
- Sun, 20 Jun 2021 17:38:11 GMT | ||
Set-Cookie: | ||
- HttpOnly;Secure | ||
- TS01a1c3b4=01439f1ddfe6fac816056453c03e01442fd19e06f760185e2e0812c58720773a07562bd6f3b6b8bcc42f8752caee2d2695ba57399b; | ||
Path=/ | ||
Strict-Transport-Security: | ||
- max-age=300; includeSubDomains; preload | ||
X-Content-Type-Options: | ||
- nosniff | ||
X-Frame-Options: | ||
- sameorigin | ||
X-XSS-Protection: | ||
- 1; mode=block | ||
status: | ||
code: 200 | ||
message: OK | ||
version: 1 |
Oops, something went wrong.