arca.rb 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (131) hide show
  1. checksums.yaml +7 -0
  2. data/.devcontainer/Dockerfile +8 -0
  3. data/.devcontainer/devcontainer.json +12 -0
  4. data/.github/dependabot.yml +12 -0
  5. data/.github/workflows/ci.yml +16 -0
  6. data/.github/workflows/release.yml +37 -0
  7. data/.gitignore +8 -0
  8. data/.mise.toml +2 -0
  9. data/.rubocop.yml +8 -0
  10. data/.ruby-version +1 -0
  11. data/CHANGELOG.md +19 -0
  12. data/CONTRIBUTING.md +48 -0
  13. data/Gemfile +4 -0
  14. data/LICENSE +22 -0
  15. data/README.md +209 -0
  16. data/Rakefile +10 -0
  17. data/SECURITY.md +14 -0
  18. data/arca.gemspec +40 -0
  19. data/bin/console +7 -0
  20. data/lib/arca/client.rb +29 -0
  21. data/lib/arca/core_ext/hash.rb +13 -0
  22. data/lib/arca/errors/error.rb +13 -0
  23. data/lib/arca/errors/network_error.rb +15 -0
  24. data/lib/arca/errors/response_error.rb +18 -0
  25. data/lib/arca/errors/server_error.rb +6 -0
  26. data/lib/arca/persona_service_a100.rb +51 -0
  27. data/lib/arca/persona_service_a4.rb +34 -0
  28. data/lib/arca/persona_service_a5.rb +46 -0
  29. data/lib/arca/type_conversions.rb +44 -0
  30. data/lib/arca/version.rb +5 -0
  31. data/lib/arca/w_cons_declaracion.rb +66 -0
  32. data/lib/arca/ws_constancia_inscripcion.rb +34 -0
  33. data/lib/arca/wsaa.rb +140 -0
  34. data/lib/arca/wscdc.rb +149 -0
  35. data/lib/arca/wsfe.rb +205 -0
  36. data/lib/arca/wsfecred.rb +438 -0
  37. data/lib/arca/wsrgiva.rb +72 -0
  38. data/lib/arca.rb +31 -0
  39. data/test/arca/client_test.rb +43 -0
  40. data/test/arca/core_ext/hash_test.rb +15 -0
  41. data/test/arca/persona_service_a100_test.rb +45 -0
  42. data/test/arca/persona_service_a4_test.rb +31 -0
  43. data/test/arca/persona_service_a5_test.rb +31 -0
  44. data/test/arca/test.crt +19 -0
  45. data/test/arca/test.key +28 -0
  46. data/test/arca/type_conversions_test.rb +43 -0
  47. data/test/arca/w_cons_declaracion_test.rb +86 -0
  48. data/test/arca/ws_constancia_inscripcion_test.rb +87 -0
  49. data/test/arca/wsaa_test.rb +80 -0
  50. data/test/arca/wscdc_test.rb +103 -0
  51. data/test/arca/wsfe_test.rb +319 -0
  52. data/test/arca/wsfecred_test.rb +162 -0
  53. data/test/arca/wsrgiva_test.rb +91 -0
  54. data/test/fixtures/wconsdeclaracion/detallada_estado/success.xml +24 -0
  55. data/test/fixtures/wconsdeclaracion/detallada_lista_declaraciones/por_fecha_success.xml +39 -0
  56. data/test/fixtures/wconsdeclaracion/detallada_lista_declaraciones/por_id_inexistente.xml +16 -0
  57. data/test/fixtures/wconsdeclaracion/detallada_lista_declaraciones/por_id_success.xml +29 -0
  58. data/test/fixtures/wconsdeclaracion/dummy/success.xml +12 -0
  59. data/test/fixtures/wconsdeclaracion/wconsdeclaracion.wsdl +2976 -0
  60. data/test/fixtures/ws_sr_constancia_inscripcion/dummy/success.xml +11 -0
  61. data/test/fixtures/ws_sr_constancia_inscripcion/get_persona/failure.xml +35 -0
  62. data/test/fixtures/ws_sr_constancia_inscripcion/get_persona/fault.xml +8 -0
  63. data/test/fixtures/ws_sr_constancia_inscripcion/get_persona/success.xml +53 -0
  64. data/test/fixtures/ws_sr_constancia_inscripcion/ws_constancia_inscripcion.wsdl +230 -0
  65. data/test/fixtures/ws_sr_padron_a100/company_types/success.xml +23 -0
  66. data/test/fixtures/ws_sr_padron_a100/dummy/success.xml +11 -0
  67. data/test/fixtures/ws_sr_padron_a100/jurisdictions/success.xml +31 -0
  68. data/test/fixtures/ws_sr_padron_a100/public_organisms/success.xml +23 -0
  69. data/test/fixtures/ws_sr_padron_a100.wsdl +125 -0
  70. data/test/fixtures/ws_sr_padron_a4/dummy/success.xml +11 -0
  71. data/test/fixtures/ws_sr_padron_a4/get_persona/success.xml +133 -0
  72. data/test/fixtures/ws_sr_padron_a4.wsdl +229 -0
  73. data/test/fixtures/ws_sr_padron_a5/dummy/success.xml +11 -0
  74. data/test/fixtures/ws_sr_padron_a5/get_persona/success.xml +62 -0
  75. data/test/fixtures/ws_sr_padron_a5.wsdl +283 -0
  76. data/test/fixtures/wsaa/login_cms/fault.xml +12 -0
  77. data/test/fixtures/wsaa/login_cms/success.xml +16 -0
  78. data/test/fixtures/wsaa/login_cms/token_expirado.xml +14 -0
  79. data/test/fixtures/wsaa/wsaa.wsdl +103 -0
  80. data/test/fixtures/wscdc/comprobante_constatar/success.xml +22 -0
  81. data/test/fixtures/wscdc/comprobante_constatar/with_errors.xml +28 -0
  82. data/test/fixtures/wscdc/comprobante_dummy/success.xml +11 -0
  83. data/test/fixtures/wscdc/comprobantes_modalidad_consultar/success.xml +22 -0
  84. data/test/fixtures/wscdc/comprobantes_tipo_consultar/success.xml +22 -0
  85. data/test/fixtures/wscdc/documentos_tipo_consultar/success.xml +16 -0
  86. data/test/fixtures/wscdc/opcionales_tipo_consultar/success.xml +14 -0
  87. data/test/fixtures/wscdc/wscdc.wsdl +305 -0
  88. data/test/fixtures/wsfe/fe_comp_consultar/success.xml +41 -0
  89. data/test/fixtures/wsfe/fe_comp_tot_x_request/success.xml +9 -0
  90. data/test/fixtures/wsfe/fe_comp_ultimo_autorizado/success.xml +11 -0
  91. data/test/fixtures/wsfe/fe_dummy/success.xml +11 -0
  92. data/test/fixtures/wsfe/fe_param_get_cotizacion/dolar.xml +13 -0
  93. data/test/fixtures/wsfe/fe_param_get_cotizacion/inexistente.xml +14 -0
  94. data/test/fixtures/wsfe/fe_param_get_ptos_venta/success.xml +22 -0
  95. data/test/fixtures/wsfe/fe_param_get_tipos_cbte/failure_1_error.xml +14 -0
  96. data/test/fixtures/wsfe/fe_param_get_tipos_cbte/failure_2_errors.xml +18 -0
  97. data/test/fixtures/wsfe/fe_param_get_tipos_cbte/success.xml +22 -0
  98. data/test/fixtures/wsfe/fe_param_get_tipos_concepto/success.xml +17 -0
  99. data/test/fixtures/wsfe/fe_param_get_tipos_doc/success.xml +16 -0
  100. data/test/fixtures/wsfe/fe_param_get_tipos_iva/success.xml +16 -0
  101. data/test/fixtures/wsfe/fe_param_get_tipos_monedas/success.xml +22 -0
  102. data/test/fixtures/wsfe/fe_param_get_tipos_opcional/success.xml +16 -0
  103. data/test/fixtures/wsfe/fe_param_get_tipos_tributos/success.xml +16 -0
  104. data/test/fixtures/wsfe/fecae_solicitar/autorizacion_1_cbte.xml +30 -0
  105. data/test/fixtures/wsfe/fecae_solicitar/autorizacion_2_cbtes.xml +41 -0
  106. data/test/fixtures/wsfe/fecae_solicitar/dos_observaciones.xml +40 -0
  107. data/test/fixtures/wsfe/fecae_solicitar/una_observacion.xml +36 -0
  108. data/test/fixtures/wsfe/fecaea_consultar/success.xml +17 -0
  109. data/test/fixtures/wsfe/fecaea_reg_informativo/informe_rtdo_parcial.xml +45 -0
  110. data/test/fixtures/wsfe/fecaea_sin_movimiento_informar/success.xml +12 -0
  111. data/test/fixtures/wsfe/fecaea_solicitar/caea_ya_otorgado.xml +18 -0
  112. data/test/fixtures/wsfe/fecaea_solicitar/error_distinto.xml +18 -0
  113. data/test/fixtures/wsfe/fecaea_solicitar/success.xml +17 -0
  114. data/test/fixtures/wsfe/wsfe.wsdl +1372 -0
  115. data/test/fixtures/wsfecred/aceptar_f_e_cred/success.xml +14 -0
  116. data/test/fixtures/wsfecred/consultar_comprobantes/success.xml +17 -0
  117. data/test/fixtures/wsfecred/consultar_cta_cte/success.xml +13 -0
  118. data/test/fixtures/wsfecred/consultar_ctas_ctes/success.xml +16 -0
  119. data/test/fixtures/wsfecred/consultar_tipos_formas_cancelacion/success.xml +14 -0
  120. data/test/fixtures/wsfecred/consultar_tipos_motivos_rechazo/success.xml +14 -0
  121. data/test/fixtures/wsfecred/consultar_tipos_retenciones/failure.xml +14 -0
  122. data/test/fixtures/wsfecred/consultar_tipos_retenciones/success.xml +14 -0
  123. data/test/fixtures/wsfecred/dummy/success.xml +11 -0
  124. data/test/fixtures/wsfecred/wsfecred.wsdl +147 -0
  125. data/test/fixtures/wsrgiva/consultar_constancia_por_lote/one_error.xml +14 -0
  126. data/test/fixtures/wsrgiva/consultar_constancia_por_lote/success.xml +26 -0
  127. data/test/fixtures/wsrgiva/dummy/success.xml +11 -0
  128. data/test/fixtures/wsrgiva/wsrgiva.wsdl +118 -0
  129. data/test/support/savon_extensions.rb +43 -0
  130. data/test/test_helper.rb +44 -0
  131. metadata +319 -0
@@ -0,0 +1,305 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
3
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
4
+ xmlns:tns="http://servicios1.afip.gov.ar/wscdc/"
5
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
6
+ targetNamespace="http://servicios1.afip.gov.ar/wscdc/"
7
+ xmlns="http://schemas.xmlsoap.org/wsdl/">
8
+ <wsdl:types>
9
+ <xsd:schema targetNamespace="http://servicios1.afip.gov.ar/wscdc/">
10
+ <xsd:element name="ComprobanteDummy" type="tns:ComprobanteDummyType"/>
11
+ <xsd:element name="ComprobanteDummyResponse" type="tns:ComprobanteDummyResponseType"/>
12
+ <xsd:complexType name="ComprobanteDummyType">
13
+ <xsd:sequence/>
14
+ </xsd:complexType>
15
+ <xsd:complexType name="ComprobanteDummyResponseType">
16
+ <xsd:sequence>
17
+ <xsd:element name="ComprobanteDummyResult" type="tns:DummyResultType"/>
18
+ </xsd:sequence>
19
+ </xsd:complexType>
20
+ <xsd:complexType name="DummyResultType">
21
+ <xsd:sequence>
22
+ <xsd:element name="AppServer" type="xsd:string"/>
23
+ <xsd:element name="DbServer" type="xsd:string"/>
24
+ <xsd:element name="AuthServer" type="xsd:string"/>
25
+ </xsd:sequence>
26
+ </xsd:complexType>
27
+ <xsd:complexType name="AuthType">
28
+ <xsd:sequence>
29
+ <xsd:element name="Token" type="xsd:string"/>
30
+ <xsd:element name="Sign" type="xsd:string"/>
31
+ <xsd:element name="Cuit" type="xsd:long"/>
32
+ </xsd:sequence>
33
+ </xsd:complexType>
34
+ <xsd:element name="ComprobanteConstatar" type="tns:ComprobanteConstatarType"/>
35
+ <xsd:element name="ComprobanteConstatarResponse" type="tns:ComprobanteConstatarResponseType"/>
36
+ <xsd:complexType name="ComprobanteConstatarType">
37
+ <xsd:sequence>
38
+ <xsd:element name="Auth" type="tns:AuthType"/>
39
+ <xsd:element name="CmpReq" type="tns:CmpReqType"/>
40
+ </xsd:sequence>
41
+ </xsd:complexType>
42
+ <xsd:complexType name="CmpReqType">
43
+ <xsd:sequence>
44
+ <xsd:element name="CbteModo" type="xsd:string"/>
45
+ <xsd:element name="CuitEmisor" type="xsd:long"/>
46
+ <xsd:element name="PtoVta" type="xsd:int"/>
47
+ <xsd:element name="CbteTipo" type="xsd:int"/>
48
+ <xsd:element name="CbteNro" type="xsd:long"/>
49
+ <xsd:element name="CbteFch" type="xsd:string"/>
50
+ <xsd:element name="ImpTotal" type="xsd:double"/>
51
+ <xsd:element name="CodAutorizacion" type="xsd:string"/>
52
+ </xsd:sequence>
53
+ </xsd:complexType>
54
+ <xsd:complexType name="ComprobanteConstatarResponseType">
55
+ <xsd:sequence>
56
+ <xsd:element name="ComprobanteConstatarResult" type="tns:ComprobanteConstatarResultType"/>
57
+ </xsd:sequence>
58
+ </xsd:complexType>
59
+ <xsd:complexType name="ComprobanteConstatarResultType">
60
+ <xsd:sequence>
61
+ <xsd:element name="CmpResp" type="tns:CmpReqType" minOccurs="0"/>
62
+ <xsd:element name="Resultado" type="xsd:string"/>
63
+ <xsd:element name="FchProceso" type="xsd:string" minOccurs="0"/>
64
+ <xsd:element name="Observaciones" type="tns:ObservacionesType" minOccurs="0"/>
65
+ <xsd:element name="Errors" type="tns:ErrorsType" minOccurs="0"/>
66
+ <xsd:element name="Events" type="tns:EventsType" minOccurs="0"/>
67
+ </xsd:sequence>
68
+ </xsd:complexType>
69
+ <xsd:complexType name="ObservacionesType">
70
+ <xsd:sequence>
71
+ <xsd:element name="Obs" type="tns:ObsType" minOccurs="0" maxOccurs="unbounded"/>
72
+ </xsd:sequence>
73
+ </xsd:complexType>
74
+ <xsd:complexType name="ObsType">
75
+ <xsd:sequence>
76
+ <xsd:element name="Code" type="xsd:int"/>
77
+ <xsd:element name="Msg" type="xsd:string"/>
78
+ </xsd:sequence>
79
+ </xsd:complexType>
80
+ <xsd:complexType name="ErrorsType">
81
+ <xsd:sequence>
82
+ <xsd:element name="Err" type="tns:ErrType" minOccurs="0" maxOccurs="unbounded"/>
83
+ </xsd:sequence>
84
+ </xsd:complexType>
85
+ <xsd:complexType name="ErrType">
86
+ <xsd:sequence>
87
+ <xsd:element name="Code" type="xsd:int"/>
88
+ <xsd:element name="Msg" type="xsd:string"/>
89
+ </xsd:sequence>
90
+ </xsd:complexType>
91
+ <xsd:complexType name="EventsType">
92
+ <xsd:sequence>
93
+ <xsd:element name="Evt" type="tns:EvtType" minOccurs="0" maxOccurs="unbounded"/>
94
+ </xsd:sequence>
95
+ </xsd:complexType>
96
+ <xsd:complexType name="EvtType">
97
+ <xsd:sequence>
98
+ <xsd:element name="Code" type="xsd:int"/>
99
+ <xsd:element name="Msg" type="xsd:string"/>
100
+ </xsd:sequence>
101
+ </xsd:complexType>
102
+ <xsd:element name="ComprobantesModalidadConsultar" type="tns:AuthOnlyType"/>
103
+ <xsd:element name="ComprobantesModalidadConsultarResponse" type="tns:ComprobantesModalidadConsultarResponseType"/>
104
+ <xsd:complexType name="AuthOnlyType">
105
+ <xsd:sequence>
106
+ <xsd:element name="Auth" type="tns:AuthType"/>
107
+ </xsd:sequence>
108
+ </xsd:complexType>
109
+ <xsd:complexType name="ComprobantesModalidadConsultarResponseType">
110
+ <xsd:sequence>
111
+ <xsd:element name="ComprobantesModalidadConsultarResult" type="tns:ResultGetFacModType"/>
112
+ </xsd:sequence>
113
+ </xsd:complexType>
114
+ <xsd:complexType name="ResultGetFacModType">
115
+ <xsd:sequence>
116
+ <xsd:element name="ResultGet" type="tns:FacModTipoArrayType" minOccurs="0"/>
117
+ </xsd:sequence>
118
+ </xsd:complexType>
119
+ <xsd:complexType name="FacModTipoArrayType">
120
+ <xsd:sequence>
121
+ <xsd:element name="FacModTipo" type="tns:FacModTipoType" minOccurs="0" maxOccurs="unbounded"/>
122
+ </xsd:sequence>
123
+ </xsd:complexType>
124
+ <xsd:complexType name="FacModTipoType">
125
+ <xsd:sequence>
126
+ <xsd:element name="Cod" type="xsd:string"/>
127
+ <xsd:element name="Desc" type="xsd:string"/>
128
+ </xsd:sequence>
129
+ </xsd:complexType>
130
+ <xsd:element name="ComprobantesTipoConsultar" type="tns:AuthOnlyType"/>
131
+ <xsd:element name="ComprobantesTipoConsultarResponse" type="tns:ComprobantesTipoConsultarResponseType"/>
132
+ <xsd:complexType name="ComprobantesTipoConsultarResponseType">
133
+ <xsd:sequence>
134
+ <xsd:element name="ComprobantesTipoConsultarResult" type="tns:ResultGetCbteTipoType"/>
135
+ </xsd:sequence>
136
+ </xsd:complexType>
137
+ <xsd:complexType name="ResultGetCbteTipoType">
138
+ <xsd:sequence>
139
+ <xsd:element name="ResultGet" type="tns:CbteTipoArrayType" minOccurs="0"/>
140
+ </xsd:sequence>
141
+ </xsd:complexType>
142
+ <xsd:complexType name="CbteTipoArrayType">
143
+ <xsd:sequence>
144
+ <xsd:element name="CbteTipo" type="tns:CbteTipoType" minOccurs="0" maxOccurs="unbounded"/>
145
+ </xsd:sequence>
146
+ </xsd:complexType>
147
+ <xsd:complexType name="CbteTipoType">
148
+ <xsd:sequence>
149
+ <xsd:element name="Id" type="xsd:int"/>
150
+ <xsd:element name="Desc" type="xsd:string"/>
151
+ <xsd:element name="FchDesde" type="xsd:string" minOccurs="0"/>
152
+ <xsd:element name="FchHasta" type="xsd:string" minOccurs="0"/>
153
+ </xsd:sequence>
154
+ </xsd:complexType>
155
+ <xsd:element name="DocumentosTipoConsultar" type="tns:AuthOnlyType"/>
156
+ <xsd:element name="DocumentosTipoConsultarResponse" type="tns:DocumentosTipoConsultarResponseType"/>
157
+ <xsd:complexType name="DocumentosTipoConsultarResponseType">
158
+ <xsd:sequence>
159
+ <xsd:element name="DocumentosTipoConsultarResult" type="tns:ResultGetDocTipoType"/>
160
+ </xsd:sequence>
161
+ </xsd:complexType>
162
+ <xsd:complexType name="ResultGetDocTipoType">
163
+ <xsd:sequence>
164
+ <xsd:element name="ResultGet" type="tns:DocTipoArrayType" minOccurs="0"/>
165
+ </xsd:sequence>
166
+ </xsd:complexType>
167
+ <xsd:complexType name="DocTipoArrayType">
168
+ <xsd:sequence>
169
+ <xsd:element name="DocTipo" type="tns:DocTipoType" minOccurs="0" maxOccurs="unbounded"/>
170
+ </xsd:sequence>
171
+ </xsd:complexType>
172
+ <xsd:complexType name="DocTipoType">
173
+ <xsd:sequence>
174
+ <xsd:element name="Id" type="xsd:int"/>
175
+ <xsd:element name="Desc" type="xsd:string"/>
176
+ <xsd:element name="FchDesde" type="xsd:string" minOccurs="0"/>
177
+ <xsd:element name="FchHasta" type="xsd:string" minOccurs="0"/>
178
+ </xsd:sequence>
179
+ </xsd:complexType>
180
+ <xsd:element name="OpcionalesTipoConsultar" type="tns:AuthOnlyType"/>
181
+ <xsd:element name="OpcionalesTipoConsultarResponse" type="tns:OpcionalesTipoConsultarResponseType"/>
182
+ <xsd:complexType name="OpcionalesTipoConsultarResponseType">
183
+ <xsd:sequence>
184
+ <xsd:element name="OpcionalesTipoConsultarResult" type="tns:ResultGetOpcionalTipoType"/>
185
+ </xsd:sequence>
186
+ </xsd:complexType>
187
+ <xsd:complexType name="ResultGetOpcionalTipoType">
188
+ <xsd:sequence>
189
+ <xsd:element name="ResultGet" type="tns:OpcionalTipoArrayType" minOccurs="0"/>
190
+ </xsd:sequence>
191
+ </xsd:complexType>
192
+ <xsd:complexType name="OpcionalTipoArrayType">
193
+ <xsd:sequence>
194
+ <xsd:element name="OpcionalTipo" type="tns:OpcionalTipoType" minOccurs="0" maxOccurs="unbounded"/>
195
+ </xsd:sequence>
196
+ </xsd:complexType>
197
+ <xsd:complexType name="OpcionalTipoType">
198
+ <xsd:sequence>
199
+ <xsd:element name="Id" type="xsd:string"/>
200
+ <xsd:element name="Desc" type="xsd:string"/>
201
+ </xsd:sequence>
202
+ </xsd:complexType>
203
+ </xsd:schema>
204
+ </wsdl:types>
205
+ <wsdl:message name="ComprobanteDummySoapIn">
206
+ <wsdl:part name="parameters" element="tns:ComprobanteDummy"/>
207
+ </wsdl:message>
208
+ <wsdl:message name="ComprobanteDummySoapOut">
209
+ <wsdl:part name="parameters" element="tns:ComprobanteDummyResponse"/>
210
+ </wsdl:message>
211
+ <wsdl:message name="ComprobanteConstatarSoapIn">
212
+ <wsdl:part name="parameters" element="tns:ComprobanteConstatar"/>
213
+ </wsdl:message>
214
+ <wsdl:message name="ComprobanteConstatarSoapOut">
215
+ <wsdl:part name="parameters" element="tns:ComprobanteConstatarResponse"/>
216
+ </wsdl:message>
217
+ <wsdl:message name="ComprobantesModalidadConsultarSoapIn">
218
+ <wsdl:part name="parameters" element="tns:ComprobantesModalidadConsultar"/>
219
+ </wsdl:message>
220
+ <wsdl:message name="ComprobantesModalidadConsultarSoapOut">
221
+ <wsdl:part name="parameters" element="tns:ComprobantesModalidadConsultarResponse"/>
222
+ </wsdl:message>
223
+ <wsdl:message name="ComprobantesTipoConsultarSoapIn">
224
+ <wsdl:part name="parameters" element="tns:ComprobantesTipoConsultar"/>
225
+ </wsdl:message>
226
+ <wsdl:message name="ComprobantesTipoConsultarSoapOut">
227
+ <wsdl:part name="parameters" element="tns:ComprobantesTipoConsultarResponse"/>
228
+ </wsdl:message>
229
+ <wsdl:message name="DocumentosTipoConsultarSoapIn">
230
+ <wsdl:part name="parameters" element="tns:DocumentosTipoConsultar"/>
231
+ </wsdl:message>
232
+ <wsdl:message name="DocumentosTipoConsultarSoapOut">
233
+ <wsdl:part name="parameters" element="tns:DocumentosTipoConsultarResponse"/>
234
+ </wsdl:message>
235
+ <wsdl:message name="OpcionalesTipoConsultarSoapIn">
236
+ <wsdl:part name="parameters" element="tns:OpcionalesTipoConsultar"/>
237
+ </wsdl:message>
238
+ <wsdl:message name="OpcionalesTipoConsultarSoapOut">
239
+ <wsdl:part name="parameters" element="tns:OpcionalesTipoConsultarResponse"/>
240
+ </wsdl:message>
241
+ <wsdl:portType name="WSCDCSoap">
242
+ <wsdl:operation name="ComprobanteDummy">
243
+ <wsdl:input message="tns:ComprobanteDummySoapIn"/>
244
+ <wsdl:output message="tns:ComprobanteDummySoapOut"/>
245
+ </wsdl:operation>
246
+ <wsdl:operation name="ComprobanteConstatar">
247
+ <wsdl:input message="tns:ComprobanteConstatarSoapIn"/>
248
+ <wsdl:output message="tns:ComprobanteConstatarSoapOut"/>
249
+ </wsdl:operation>
250
+ <wsdl:operation name="ComprobantesModalidadConsultar">
251
+ <wsdl:input message="tns:ComprobantesModalidadConsultarSoapIn"/>
252
+ <wsdl:output message="tns:ComprobantesModalidadConsultarSoapOut"/>
253
+ </wsdl:operation>
254
+ <wsdl:operation name="ComprobantesTipoConsultar">
255
+ <wsdl:input message="tns:ComprobantesTipoConsultarSoapIn"/>
256
+ <wsdl:output message="tns:ComprobantesTipoConsultarSoapOut"/>
257
+ </wsdl:operation>
258
+ <wsdl:operation name="DocumentosTipoConsultar">
259
+ <wsdl:input message="tns:DocumentosTipoConsultarSoapIn"/>
260
+ <wsdl:output message="tns:DocumentosTipoConsultarSoapOut"/>
261
+ </wsdl:operation>
262
+ <wsdl:operation name="OpcionalesTipoConsultar">
263
+ <wsdl:input message="tns:OpcionalesTipoConsultarSoapIn"/>
264
+ <wsdl:output message="tns:OpcionalesTipoConsultarSoapOut"/>
265
+ </wsdl:operation>
266
+ </wsdl:portType>
267
+ <wsdl:binding name="WSCDCSoap" type="tns:WSCDCSoap">
268
+ <soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
269
+ <wsdl:operation name="ComprobanteDummy">
270
+ <soap:operation soapAction="http://servicios1.afip.gov.ar/wscdc/ComprobanteDummy" style="document"/>
271
+ <wsdl:input><soap:body use="literal"/></wsdl:input>
272
+ <wsdl:output><soap:body use="literal"/></wsdl:output>
273
+ </wsdl:operation>
274
+ <wsdl:operation name="ComprobanteConstatar">
275
+ <soap:operation soapAction="http://servicios1.afip.gov.ar/wscdc/ComprobanteConstatar" style="document"/>
276
+ <wsdl:input><soap:body use="literal"/></wsdl:input>
277
+ <wsdl:output><soap:body use="literal"/></wsdl:output>
278
+ </wsdl:operation>
279
+ <wsdl:operation name="ComprobantesModalidadConsultar">
280
+ <soap:operation soapAction="http://servicios1.afip.gov.ar/wscdc/ComprobantesModalidadConsultar" style="document"/>
281
+ <wsdl:input><soap:body use="literal"/></wsdl:input>
282
+ <wsdl:output><soap:body use="literal"/></wsdl:output>
283
+ </wsdl:operation>
284
+ <wsdl:operation name="ComprobantesTipoConsultar">
285
+ <soap:operation soapAction="http://servicios1.afip.gov.ar/wscdc/ComprobantesTipoConsultar" style="document"/>
286
+ <wsdl:input><soap:body use="literal"/></wsdl:input>
287
+ <wsdl:output><soap:body use="literal"/></wsdl:output>
288
+ </wsdl:operation>
289
+ <wsdl:operation name="DocumentosTipoConsultar">
290
+ <soap:operation soapAction="http://servicios1.afip.gov.ar/wscdc/DocumentosTipoConsultar" style="document"/>
291
+ <wsdl:input><soap:body use="literal"/></wsdl:input>
292
+ <wsdl:output><soap:body use="literal"/></wsdl:output>
293
+ </wsdl:operation>
294
+ <wsdl:operation name="OpcionalesTipoConsultar">
295
+ <soap:operation soapAction="http://servicios1.afip.gov.ar/wscdc/OpcionalesTipoConsultar" style="document"/>
296
+ <wsdl:input><soap:body use="literal"/></wsdl:input>
297
+ <wsdl:output><soap:body use="literal"/></wsdl:output>
298
+ </wsdl:operation>
299
+ </wsdl:binding>
300
+ <wsdl:service name="WSCDC">
301
+ <wsdl:port name="WSCDCSoap" binding="tns:WSCDCSoap">
302
+ <soap:address location="https://wswhomo.afip.gov.ar/WSCDC/service.asmx"/>
303
+ </wsdl:port>
304
+ </wsdl:service>
305
+ </wsdl:definitions>
@@ -0,0 +1,41 @@
1
+ <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
2
+ <soap:Body>
3
+ <FECompConsultarResponse xmlns="http://ar.gov.afip.dif.FEV1/">
4
+ <FECompConsultarResult>
5
+ <ResultGet>
6
+ <Concepto>1</Concepto>
7
+ <DocTipo>80</DocTipo>
8
+ <DocNro>30521189203</DocNro>
9
+ <CbteDesde>1</CbteDesde>
10
+ <CbteHasta>1</CbteHasta>
11
+ <CbteFch>20110113</CbteFch>
12
+ <ImpTotal>1270.48</ImpTotal>
13
+ <ImpTotConc>0</ImpTotConc>
14
+ <ImpNeto>1049.98</ImpNeto>
15
+ <ImpOpEx>0</ImpOpEx>
16
+ <ImpTrib>0</ImpTrib>
17
+ <ImpIVA>220.5</ImpIVA>
18
+ <FchServDesde/>
19
+ <FchServHasta/>
20
+ <FchVtoPago/>
21
+ <MonId>PES</MonId>
22
+ <MonCotiz>1</MonCotiz>
23
+ <Iva>
24
+ <AlicIva>
25
+ <Id>5</Id>
26
+ <BaseImp>1049.98</BaseImp>
27
+ <Importe>220.5</Importe>
28
+ </AlicIva>
29
+ </Iva>
30
+ <Resultado>A</Resultado>
31
+ <CodAutorizacion>61023008595705</CodAutorizacion>
32
+ <EmisionTipo>CAE</EmisionTipo>
33
+ <FchVto>20110123</FchVto>
34
+ <FchProceso>20110113165500</FchProceso>
35
+ <PtoVta>1</PtoVta>
36
+ <CbteTipo>1</CbteTipo>
37
+ </ResultGet>
38
+ </FECompConsultarResult>
39
+ </FECompConsultarResponse>
40
+ </soap:Body>
41
+ </soap:Envelope>
@@ -0,0 +1,9 @@
1
+ <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
2
+ <soap:Body>
3
+ <FECompTotXRequestResponse xmlns="http://ar.gov.afip.dif.FEV1/">
4
+ <FECompTotXRequestResult>
5
+ <RegXReq>250</RegXReq>
6
+ </FECompTotXRequestResult>
7
+ </FECompTotXRequestResponse>
8
+ </soap:Body>
9
+ </soap:Envelope>
@@ -0,0 +1,11 @@
1
+ <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
2
+ <soap:Body>
3
+ <FECompUltimoAutorizadoResponse xmlns="http://ar.gov.afip.dif.FEV1/">
4
+ <FECompUltimoAutorizadoResult>
5
+ <PtoVta>1</PtoVta>
6
+ <CbteTipo>1</CbteTipo>
7
+ <CbteNro>20</CbteNro>
8
+ </FECompUltimoAutorizadoResult>
9
+ </FECompUltimoAutorizadoResponse>
10
+ </soap:Body>
11
+ </soap:Envelope>
@@ -0,0 +1,11 @@
1
+ <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">
2
+ <soap:Body>
3
+ <FEDummyResponse xmlns="http://ar.gov.afip.dif.FEV1/">
4
+ <FEDummyResult>
5
+ <AppServer>OK</AppServer>
6
+ <DbServer>OK</DbServer>
7
+ <AuthServer>OK</AuthServer>
8
+ </FEDummyResult>
9
+ </FEDummyResponse>
10
+ </soap:Body>
11
+ </soap:Envelope>
@@ -0,0 +1,13 @@
1
+ <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">
2
+ <soap:Body>
3
+ <FEParamGetCotizacionResponse xmlns="http://ar.gov.afip.dif.FEV1/">
4
+ <FEParamGetCotizacionResult>
5
+ <ResultGet>
6
+ <MonId>DOL</MonId>
7
+ <MonCotiz>3.976</MonCotiz>
8
+ <FchCotiz>20110112</FchCotiz>
9
+ </ResultGet>
10
+ </FEParamGetCotizacionResult>
11
+ </FEParamGetCotizacionResponse>
12
+ </soap:Body>
13
+ </soap:Envelope>
@@ -0,0 +1,14 @@
1
+ <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">
2
+ <soap:Body>
3
+ <FEParamGetCotizacionResponse xmlns="http://ar.gov.afip.dif.FEV1/">
4
+ <FEParamGetCotizacionResult>
5
+ <Errors>
6
+ <Err>
7
+ <Code>602</Code>
8
+ <Msg>Sin Resultados: - Metodo FEParamGetCotizacion.Codigo de moneda (PES) inexistente o SIN cotización</Msg>
9
+ </Err>
10
+ </Errors>
11
+ </FEParamGetCotizacionResult>
12
+ </FEParamGetCotizacionResponse>
13
+ </soap:Body>
14
+ </soap:Envelope>
@@ -0,0 +1,22 @@
1
+ <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
2
+ <soap:Body>
3
+ <FEParamGetPtosVentaResponse xmlns="http://ar.gov.afip.dif.FEV1/">
4
+ <FEParamGetPtosVentaResult>
5
+ <ResultGet>
6
+ <PtoVenta>
7
+ <Nro>0001</Nro>
8
+ <EmisionTipo>CAE</EmisionTipo>
9
+ <Bloqueado>N</Bloqueado>
10
+ <FchBaja></FchBaja>
11
+ </PtoVenta>
12
+ <PtoVenta>
13
+ <Nro>0002</Nro>
14
+ <EmisionTipo>CAEA</EmisionTipo>
15
+ <Bloqueado>S</Bloqueado>
16
+ <FchBaja>20110131</FchBaja>
17
+ </PtoVenta>
18
+ </ResultGet>
19
+ </FEParamGetPtosVentaResult>
20
+ </FEParamGetPtosVentaResponse>
21
+ </soap:Body>
22
+ </soap:Envelope>
@@ -0,0 +1,14 @@
1
+ <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">
2
+ <soap:Body>
3
+ <FEParamGetTiposCbteResponse xmlns="http://ar.gov.afip.dif.FEV1/">
4
+ <FEParamGetTiposCbteResult>
5
+ <Errors>
6
+ <Err>
7
+ <Code>600</Code>
8
+ <Msg>No se corresponden token con firma</Msg>
9
+ </Err>
10
+ </Errors>
11
+ </FEParamGetTiposCbteResult>
12
+ </FEParamGetTiposCbteResponse>
13
+ </soap:Body>
14
+ </soap:Envelope>
@@ -0,0 +1,18 @@
1
+ <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">
2
+ <soap:Body>
3
+ <FEParamGetTiposCbteResponse xmlns="http://ar.gov.afip.dif.FEV1/">
4
+ <FEParamGetTiposCbteResult>
5
+ <Errors>
6
+ <Err>
7
+ <Code>600</Code>
8
+ <Msg>No se corresponden token con firma</Msg>
9
+ </Err>
10
+ <Err>
11
+ <Code>601</Code>
12
+ <Msg>CUIT representada no incluida en token</Msg>
13
+ </Err>
14
+ </Errors>
15
+ </FEParamGetTiposCbteResult>
16
+ </FEParamGetTiposCbteResponse>
17
+ </soap:Body>
18
+ </soap:Envelope>
@@ -0,0 +1,22 @@
1
+ <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">
2
+ <soap:Body>
3
+ <FEParamGetTiposCbteResponse xmlns="http://ar.gov.afip.dif.FEV1/">
4
+ <FEParamGetTiposCbteResult>
5
+ <ResultGet>
6
+ <CbteTipo>
7
+ <Id>1</Id>
8
+ <Desc>Factura A</Desc>
9
+ <FchDesde>20100917</FchDesde>
10
+ <FchHasta>NULL</FchHasta>
11
+ </CbteTipo>
12
+ <CbteTipo>
13
+ <Id>2</Id>
14
+ <Desc>Nota de Débito A</Desc>
15
+ <FchDesde>20100918</FchDesde>
16
+ <FchHasta>20110918</FchHasta>
17
+ </CbteTipo>
18
+ </ResultGet>
19
+ </FEParamGetTiposCbteResult>
20
+ </FEParamGetTiposCbteResponse>
21
+ </soap:Body>
22
+ </soap:Envelope>
@@ -0,0 +1,17 @@
1
+ <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">
2
+ <soap:Body>
3
+ <FEParamGetTiposConceptoResponse xmlns="http://ar.gov.afip.dif.FEV1/">
4
+ <FEParamGetTiposConceptoResult>
5
+ <ResultGet>
6
+ <ConceptoTipo>
7
+ <Id>1</Id>
8
+ <Desc>Producto</Desc>
9
+ <FchDesde>20080725</FchDesde>
10
+ <FchHasta>NULL</FchHasta>
11
+ </ConceptoTipo>
12
+ </ResultGet>
13
+ </FEParamGetTiposConceptoResult>
14
+ </FEParamGetTiposConceptoResponse>
15
+ </soap:Body>
16
+ </soap:Envelope>
17
+
@@ -0,0 +1,16 @@
1
+ <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">
2
+ <soap:Body>
3
+ <FEParamGetTiposDocResponse xmlns="http://ar.gov.afip.dif.FEV1/">
4
+ <FEParamGetTiposDocResult>
5
+ <ResultGet>
6
+ <DocTipo>
7
+ <Id>80</Id>
8
+ <Desc>CUIT</Desc>
9
+ <FchDesde>20080725</FchDesde>
10
+ <FchHasta>NULL</FchHasta>
11
+ </DocTipo>
12
+ </ResultGet>
13
+ </FEParamGetTiposDocResult>
14
+ </FEParamGetTiposDocResponse>
15
+ </soap:Body>
16
+ </soap:Envelope>
@@ -0,0 +1,16 @@
1
+ <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
2
+ <soap:Body>
3
+ <FEParamGetTiposIvaResponse xmlns="http://ar.gov.afip.dif.FEV1/">
4
+ <FEParamGetTiposIvaResult>
5
+ <ResultGet>
6
+ <IvaTipo>
7
+ <Id>5</Id>
8
+ <Desc>21%</Desc>
9
+ <FchDesde>20090220</FchDesde>
10
+ <FchHasta>NULL</FchHasta>
11
+ </IvaTipo>
12
+ </ResultGet>
13
+ </FEParamGetTiposIvaResult>
14
+ </FEParamGetTiposIvaResponse>
15
+ </soap:Body>
16
+ </soap:Envelope>
@@ -0,0 +1,22 @@
1
+ <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">
2
+ <soap:Body>
3
+ <FEParamGetTiposMonedasResponse xmlns="http://ar.gov.afip.dif.FEV1/">
4
+ <FEParamGetTiposMonedasResult>
5
+ <ResultGet>
6
+ <Moneda>
7
+ <Id>PES</Id>
8
+ <Desc>Pesos Argentinos</Desc>
9
+ <FchDesde>20090403</FchDesde>
10
+ <FchHasta>NULL</FchHasta>
11
+ </Moneda>
12
+ <Moneda>
13
+ <Id>002</Id>
14
+ <Desc>Dólar Libre EEUU</Desc>
15
+ <FchDesde>20090416</FchDesde>
16
+ <FchHasta>NULL</FchHasta>
17
+ </Moneda>
18
+ </ResultGet>
19
+ </FEParamGetTiposMonedasResult>
20
+ </FEParamGetTiposMonedasResponse>
21
+ </soap:Body>
22
+ </soap:Envelope>
@@ -0,0 +1,16 @@
1
+ <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">
2
+ <soap:Body>
3
+ <FEParamGetTiposOpcionalResponse xmlns="http://ar.gov.afip.dif.FEV1/">
4
+ <FEParamGetTiposOpcionalResult>
5
+ <ResultGet>
6
+ <OpcionalTipo>
7
+ <Id>1</Id>
8
+ <Desc>Producto</Desc>
9
+ <FchDesde>20080725</FchDesde>
10
+ <FchHasta>NULL</FchHasta>
11
+ </OpcionalTipo>
12
+ </ResultGet>
13
+ </FEParamGetTiposOpcionalResult>
14
+ </FEParamGetTiposOpcionalResponse>
15
+ </soap:Body>
16
+ </soap:Envelope>
@@ -0,0 +1,16 @@
1
+ <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
2
+ <soap:Body>
3
+ <FEParamGetTiposTributosResponse xmlns="http://ar.gov.afip.dif.FEV1/">
4
+ <FEParamGetTiposTributosResult>
5
+ <ResultGet>
6
+ <TributoTipo>
7
+ <Id>2</Id>
8
+ <Desc>Impuestos provinciales</Desc>
9
+ <FchDesde>20100917</FchDesde>
10
+ <FchHasta>NULL</FchHasta>
11
+ </TributoTipo>
12
+ </ResultGet>
13
+ </FEParamGetTiposTributosResult>
14
+ </FEParamGetTiposTributosResponse>
15
+ </soap:Body>
16
+ </soap:Envelope>
@@ -0,0 +1,30 @@
1
+ <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
2
+ <soap:Body>
3
+ <FECAESolicitarResponse xmlns="http://ar.gov.afip.dif.FEV1/">
4
+ <FECAESolicitarResult>
5
+ <FeCabResp>
6
+ <Cuit>20123456783</Cuit>
7
+ <PtoVta>1</PtoVta>
8
+ <CbteTipo>1</CbteTipo>
9
+ <FchProceso>20110113</FchProceso>
10
+ <CantReg>1</CantReg>
11
+ <Resultado>A</Resultado>
12
+ <Reproceso>N</Reproceso>
13
+ </FeCabResp>
14
+ <FeDetResp>
15
+ <FECAEDetResponse>
16
+ <Concepto>1</Concepto>
17
+ <DocTipo>80</DocTipo>
18
+ <DocNro>30521189203</DocNro>
19
+ <CbteDesde>1</CbteDesde>
20
+ <CbteHasta>1</CbteHasta>
21
+ <CbteFch>20110113</CbteFch>
22
+ <Resultado>A</Resultado>
23
+ <CAE>61023008595705</CAE>
24
+ <CAEFchVto>20110123</CAEFchVto>
25
+ </FECAEDetResponse>
26
+ </FeDetResp>
27
+ </FECAESolicitarResult>
28
+ </FECAESolicitarResponse>
29
+ </soap:Body>
30
+ </soap:Envelope>