correios_sigep 0.3.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. checksums.yaml +8 -8
  2. data/.travis.yml +1 -0
  3. data/README.md +5 -4
  4. data/correios_sigep.gemspec +1 -0
  5. data/lib/correios_sigep.rb +9 -0
  6. data/lib/correios_sigep/builders/collect.rb +15 -0
  7. data/lib/correios_sigep/builders/object.rb +15 -0
  8. data/lib/correios_sigep/builders/person.rb +15 -0
  9. data/lib/correios_sigep/builders/product.rb +15 -0
  10. data/lib/correios_sigep/builders/xml/collect_objects.rb +1 -1
  11. data/lib/correios_sigep/dsl/collect.rb +39 -0
  12. data/lib/correios_sigep/dsl/logistic_reverse.rb +13 -0
  13. data/lib/correios_sigep/dsl/object.rb +13 -0
  14. data/lib/correios_sigep/dsl/person.rb +14 -0
  15. data/lib/correios_sigep/dsl/product.rb +13 -0
  16. data/lib/correios_sigep/logistic_reverse/base_client.rb +2 -0
  17. data/lib/correios_sigep/models/collect.rb +7 -1
  18. data/lib/correios_sigep/models/logistic_reverse.rb +9 -2
  19. data/lib/correios_sigep/models/object.rb +6 -0
  20. data/lib/correios_sigep/models/product.rb +6 -0
  21. data/lib/correios_sigep/models/recipient.rb +7 -2
  22. data/lib/correios_sigep/models/sender.rb +6 -0
  23. data/lib/correios_sigep/version.rb +1 -1
  24. data/spec/correios_sigep/logistic_reverse/base_client_spec.rb +9 -2
  25. data/spec/correios_sigep/logistic_reverse/request_collect_number_spec.rb +3 -3
  26. data/spec/correios_sigep/logistic_reverse/request_sro_spec.rb +1 -1
  27. data/spec/correios_sigep/models/logistic_reverse_spec.rb +161 -0
  28. data/spec/fixtures/builders/logistic_reverse.xml +2 -2
  29. data/spec/fixtures/builders/request_collect_number.xml +2 -2
  30. data/spec/fixtures/correios/wsdl_test.xml +616 -0
  31. data/spec/fixtures/requests/collect_number_request.xml +2 -2
  32. data/spec/spec_helper.rb +2 -0
  33. metadata +27 -2
@@ -52,14 +52,14 @@
52
52
  <item>127078</item>
53
53
  <id>1405670</id>
54
54
  <desc>Pen Drive SAndisk 16GB SDCZ50-016G-A95</desc>
55
- <ship>ship</ship>
55
+ <entrega>ship</entrega>
56
56
  <num>1</num>
57
57
  </obj_col>
58
58
  <obj_col>
59
59
  <item>277574</item>
60
60
  <id>1405670</id>
61
61
  <desc>Chip unico claro Pre pago</desc>
62
- <ship>ship</ship>
62
+ <entrega>ship</entrega>
63
63
  <num>2</num>
64
64
  </obj_col>
65
65
  </coletas_solicitadas>
@@ -51,14 +51,14 @@
51
51
  <item>127078</item>
52
52
  <id>1405670</id>
53
53
  <desc>Pen Drive SAndisk 16GB SDCZ50-016G-A95</desc>
54
- <ship>ship</ship>
54
+ <entrega>ship</entrega>
55
55
  <num>1</num>
56
56
  </obj_col>
57
57
  <obj_col>
58
58
  <item>277574</item>
59
59
  <id>1405670</id>
60
60
  <desc>Chip unico claro Pre pago</desc>
61
- <ship>ship</ship>
61
+ <entrega>ship</entrega>
62
62
  <num>2</num>
63
63
  </obj_col>
64
64
  </coletas_solicitadas>
@@ -0,0 +1,616 @@
1
+ <?xml version='1.0' encoding='UTF-8'?><wsdl:definitions xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://webservice.scol.correios.com.br/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:ns1="http://schemas.xmlsoap.org/soap/http" name="WebServiceScol" targetNamespace="http://webservice.scol.correios.com.br/">
2
+ <wsdl:types>
3
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://webservice.scol.correios.com.br/" elementFormDefault="unqualified" targetNamespace="http://webservice.scol.correios.com.br/" version="1.0">
4
+
5
+ <xs:element name="acompanharPedido" type="tns:acompanharPedido"/>
6
+
7
+ <xs:element name="acompanharPedidoResponse" type="tns:acompanharPedidoResponse"/>
8
+
9
+ <xs:element name="calcularDigitoVerificador" type="tns:calcularDigitoVerificador"/>
10
+
11
+ <xs:element name="calcularDigitoVerificadorResponse" type="tns:calcularDigitoVerificadorResponse"/>
12
+
13
+ <xs:element name="cancelarPedido" type="tns:cancelarPedido"/>
14
+
15
+ <xs:element name="cancelarPedidoResponse" type="tns:cancelarPedidoResponse"/>
16
+
17
+ <xs:element name="solicitarPostagem" type="tns:solicitarPostagem"/>
18
+
19
+ <xs:element name="solicitarPostagemResponse" type="tns:solicitarPostagemResponse"/>
20
+
21
+ <xs:element name="solicitarPostagemReversa" type="tns:solicitarPostagemReversa"/>
22
+
23
+ <xs:element name="solicitarPostagemReversaResponse" type="tns:solicitarPostagemReversaResponse"/>
24
+
25
+ <xs:element name="solicitarPostagemSimultanea" type="tns:solicitarPostagemSimultanea"/>
26
+
27
+ <xs:element name="solicitarPostagemSimultaneaResponse" type="tns:solicitarPostagemSimultaneaResponse"/>
28
+
29
+ <xs:element name="solicitarRange" type="tns:solicitarRange"/>
30
+
31
+ <xs:element name="solicitarRangeResponse" type="tns:solicitarRangeResponse"/>
32
+
33
+ <xs:element name="validarPostagemReversa" type="tns:validarPostagemReversa"/>
34
+
35
+ <xs:element name="validarPostagemReversaResponse" type="tns:validarPostagemReversaResponse"/>
36
+
37
+ <xs:element name="validarPostagemSimultanea" type="tns:validarPostagemSimultanea"/>
38
+
39
+ <xs:element name="validarPostagemSimultaneaResponse" type="tns:validarPostagemSimultaneaResponse"/>
40
+
41
+ <xs:complexType name="validarPostagemSimultanea">
42
+ <xs:sequence>
43
+ <xs:element minOccurs="0" name="usuario" type="xs:string"/>
44
+ <xs:element minOccurs="0" name="senha" type="xs:string"/>
45
+ <xs:element minOccurs="0" name="codAdministrativo" type="xs:int"/>
46
+ <xs:element minOccurs="0" name="codigo_servico" type="xs:int"/>
47
+ <xs:element minOccurs="0" name="cep_destinatario" type="xs:string"/>
48
+ <xs:element minOccurs="0" name="coleta" type="tns:coletaSimultaneaTO"/>
49
+ </xs:sequence>
50
+ </xs:complexType>
51
+
52
+ <xs:complexType name="coletaSimultaneaTO">
53
+ <xs:complexContent>
54
+ <xs:extension base="tns:coletaTO">
55
+ <xs:sequence>
56
+ <xs:element minOccurs="0" name="obs" type="xs:string"/>
57
+ <xs:element minOccurs="0" name="obj" type="xs:string"/>
58
+ </xs:sequence>
59
+ </xs:extension>
60
+ </xs:complexContent>
61
+ </xs:complexType>
62
+
63
+ <xs:complexType name="coletaTO">
64
+ <xs:sequence>
65
+ <xs:element minOccurs="0" name="tipo" type="xs:string"/>
66
+ <xs:element minOccurs="0" name="id_cliente" type="xs:string"/>
67
+ <xs:element minOccurs="0" name="valor_declarado" type="xs:string"/>
68
+ <xs:element minOccurs="0" name="descricao" type="xs:string"/>
69
+ <xs:element minOccurs="0" name="cklist" type="xs:string"/>
70
+ <xs:element minOccurs="0" name="remetente" type="tns:remetenteTO"/>
71
+ <xs:element maxOccurs="unbounded" minOccurs="0" name="produto" nillable="true" type="tns:produtoTO"/>
72
+ </xs:sequence>
73
+ </xs:complexType>
74
+
75
+ <xs:complexType name="remetenteTO">
76
+ <xs:complexContent>
77
+ <xs:extension base="tns:pessoaTO">
78
+ <xs:sequence>
79
+ <xs:element minOccurs="0" name="identificacao" type="xs:string"/>
80
+ <xs:element minOccurs="0" name="ddd_celular" type="xs:string"/>
81
+ <xs:element minOccurs="0" name="celular" type="xs:string"/>
82
+ <xs:element minOccurs="0" name="sms" type="xs:string"/>
83
+ </xs:sequence>
84
+ </xs:extension>
85
+ </xs:complexContent>
86
+ </xs:complexType>
87
+
88
+ <xs:complexType name="pessoaTO">
89
+ <xs:sequence>
90
+ <xs:element minOccurs="0" name="nome" type="xs:string"/>
91
+ <xs:element minOccurs="0" name="logradouro" type="xs:string"/>
92
+ <xs:element minOccurs="0" name="numero" type="xs:string"/>
93
+ <xs:element minOccurs="0" name="complemento" type="xs:string"/>
94
+ <xs:element minOccurs="0" name="bairro" type="xs:string"/>
95
+ <xs:element minOccurs="0" name="referencia" type="xs:string"/>
96
+ <xs:element minOccurs="0" name="cidade" type="xs:string"/>
97
+ <xs:element minOccurs="0" name="uf" type="xs:string"/>
98
+ <xs:element minOccurs="0" name="cep" type="xs:string"/>
99
+ <xs:element minOccurs="0" name="ddd" type="xs:string"/>
100
+ <xs:element minOccurs="0" name="telefone" type="xs:string"/>
101
+ <xs:element minOccurs="0" name="email" type="xs:string"/>
102
+ </xs:sequence>
103
+ </xs:complexType>
104
+
105
+ <xs:complexType name="produtoTO">
106
+ <xs:sequence>
107
+ <xs:element minOccurs="0" name="codigo" type="xs:string"/>
108
+ <xs:element minOccurs="0" name="tipo" type="xs:string"/>
109
+ <xs:element minOccurs="0" name="qtd" type="xs:string"/>
110
+ </xs:sequence>
111
+ </xs:complexType>
112
+
113
+ <xs:complexType name="validarPostagemSimultaneaResponse">
114
+ <xs:sequence>
115
+ <xs:element minOccurs="0" name="return" type="tns:retornoValidacaoTO"/>
116
+ </xs:sequence>
117
+ </xs:complexType>
118
+
119
+ <xs:complexType name="retornoValidacaoTO">
120
+ <xs:sequence>
121
+ <xs:element minOccurs="0" name="cod_erro" type="xs:long"/>
122
+ <xs:element minOccurs="0" name="msg_erro" type="xs:string"/>
123
+ </xs:sequence>
124
+ </xs:complexType>
125
+
126
+ <xs:complexType name="solicitarPostagem">
127
+ <xs:sequence>
128
+ <xs:element minOccurs="0" name="usuario" type="xs:string"/>
129
+ <xs:element minOccurs="0" name="senha" type="xs:string"/>
130
+ <xs:element minOccurs="0" name="codAdministrativo" type="xs:int"/>
131
+ <xs:element minOccurs="0" name="xml" type="xs:string"/>
132
+ </xs:sequence>
133
+ </xs:complexType>
134
+
135
+ <xs:complexType name="solicitarPostagemResponse">
136
+ <xs:sequence>
137
+ <xs:element minOccurs="0" name="return" type="xs:string"/>
138
+ </xs:sequence>
139
+ </xs:complexType>
140
+
141
+ <xs:complexType name="calcularDigitoVerificador">
142
+ <xs:sequence>
143
+ <xs:element minOccurs="0" name="usuario" type="xs:string"/>
144
+ <xs:element minOccurs="0" name="senha" type="xs:string"/>
145
+ <xs:element minOccurs="0" name="codAdministrativo" type="xs:int"/>
146
+ <xs:element minOccurs="0" name="numero" type="xs:int"/>
147
+ </xs:sequence>
148
+ </xs:complexType>
149
+
150
+ <xs:complexType name="calcularDigitoVerificadorResponse">
151
+ <xs:sequence>
152
+ <xs:element minOccurs="0" name="return" type="tns:retornoDigitoVerificadorTO"/>
153
+ </xs:sequence>
154
+ </xs:complexType>
155
+
156
+ <xs:complexType name="retornoDigitoVerificadorTO">
157
+ <xs:sequence>
158
+ <xs:element minOccurs="0" name="data" type="xs:string"/>
159
+ <xs:element minOccurs="0" name="hora" type="xs:string"/>
160
+ <xs:element minOccurs="0" name="cod_erro" type="xs:string"/>
161
+ <xs:element minOccurs="0" name="msg_erro" type="xs:string"/>
162
+ <xs:element minOccurs="0" name="digito" type="xs:int"/>
163
+ <xs:element minOccurs="0" name="numero" type="xs:int"/>
164
+ </xs:sequence>
165
+ </xs:complexType>
166
+
167
+ <xs:complexType name="solicitarPostagemReversa">
168
+ <xs:sequence>
169
+ <xs:element minOccurs="0" name="usuario" type="xs:string"/>
170
+ <xs:element minOccurs="0" name="senha" type="xs:string"/>
171
+ <xs:element minOccurs="0" name="codAdministrativo" type="xs:int"/>
172
+ <xs:element minOccurs="0" name="contrato" type="xs:string"/>
173
+ <xs:element minOccurs="0" name="codigo_servico" type="xs:int"/>
174
+ <xs:element minOccurs="0" name="cartao" type="xs:string"/>
175
+ <xs:element minOccurs="0" name="destinatario" type="tns:pessoaTO"/>
176
+ <xs:element maxOccurs="unbounded" minOccurs="0" name="coletas_solicitadas" type="tns:coletaReversaTO"/>
177
+ </xs:sequence>
178
+ </xs:complexType>
179
+
180
+ <xs:complexType name="coletaReversaTO">
181
+ <xs:complexContent>
182
+ <xs:extension base="tns:coletaTO">
183
+ <xs:sequence>
184
+ <xs:element minOccurs="0" name="numero" type="xs:int"/>
185
+ <xs:element minOccurs="0" name="ag" type="xs:string"/>
186
+ <xs:element minOccurs="0" name="cartao" type="xs:string"/>
187
+ <xs:element minOccurs="0" name="servico_adicional" type="xs:string"/>
188
+ <xs:element minOccurs="0" name="ar" type="xs:int"/>
189
+ <xs:element maxOccurs="unbounded" minOccurs="0" name="obj_col" nillable="true" type="tns:objetoTO"/>
190
+ </xs:sequence>
191
+ </xs:extension>
192
+ </xs:complexContent>
193
+ </xs:complexType>
194
+
195
+ <xs:complexType name="objetoTO">
196
+ <xs:sequence>
197
+ <xs:element minOccurs="0" name="item" type="xs:string"/>
198
+ <xs:element minOccurs="0" name="desc" type="xs:string"/>
199
+ <xs:element minOccurs="0" name="entrega" type="xs:string"/>
200
+ <xs:element minOccurs="0" name="num" type="xs:string"/>
201
+ <xs:element minOccurs="0" name="id" type="xs:string"/>
202
+ </xs:sequence>
203
+ </xs:complexType>
204
+
205
+ <xs:complexType name="solicitarPostagemReversaResponse">
206
+ <xs:sequence>
207
+ <xs:element minOccurs="0" name="return" type="tns:retornoPostagemTO"/>
208
+ </xs:sequence>
209
+ </xs:complexType>
210
+
211
+ <xs:complexType name="retornoPostagemTO">
212
+ <xs:sequence>
213
+ <xs:element minOccurs="0" name="status_processamento" type="xs:string"/>
214
+ <xs:element minOccurs="0" name="data_processamento" type="xs:string"/>
215
+ <xs:element minOccurs="0" name="hora_processamento" type="xs:string"/>
216
+ <xs:element minOccurs="0" name="cod_erro" type="xs:string"/>
217
+ <xs:element minOccurs="0" name="msg_erro" type="xs:string"/>
218
+ <xs:element maxOccurs="unbounded" minOccurs="0" name="resultado_solicitacao" nillable="true" type="tns:resultadoSolicitacaoTO"/>
219
+ </xs:sequence>
220
+ </xs:complexType>
221
+
222
+ <xs:complexType name="resultadoSolicitacaoTO">
223
+ <xs:sequence>
224
+ <xs:element minOccurs="0" name="tipo" type="xs:string"/>
225
+ <xs:element minOccurs="0" name="id_cliente" type="xs:string"/>
226
+ <xs:element minOccurs="0" name="numero_coleta" type="xs:string"/>
227
+ <xs:element minOccurs="0" name="numero_etiqueta" type="xs:string"/>
228
+ <xs:element minOccurs="0" name="id_obj" type="xs:string"/>
229
+ <xs:element minOccurs="0" name="status_objeto" type="xs:string"/>
230
+ <xs:element minOccurs="0" name="prazo" type="xs:string"/>
231
+ <xs:element minOccurs="0" name="data_solicitacao" type="xs:string"/>
232
+ <xs:element minOccurs="0" name="hora_solicitacao" type="xs:string"/>
233
+ <xs:element name="codigo_erro" type="xs:long"/>
234
+ <xs:element minOccurs="0" name="descricao_erro" type="xs:string"/>
235
+ </xs:sequence>
236
+ </xs:complexType>
237
+
238
+ <xs:complexType name="solicitarRange">
239
+ <xs:sequence>
240
+ <xs:element minOccurs="0" name="usuario" type="xs:string"/>
241
+ <xs:element minOccurs="0" name="senha" type="xs:string"/>
242
+ <xs:element minOccurs="0" name="codAdministrativo" type="xs:int"/>
243
+ <xs:element minOccurs="0" name="contrato" type="xs:string"/>
244
+ <xs:element minOccurs="0" name="tipo" type="xs:string"/>
245
+ <xs:element minOccurs="0" name="servico" type="xs:string"/>
246
+ <xs:element minOccurs="0" name="quantidade" type="xs:int"/>
247
+ </xs:sequence>
248
+ </xs:complexType>
249
+
250
+ <xs:complexType name="solicitarRangeResponse">
251
+ <xs:sequence>
252
+ <xs:element minOccurs="0" name="return" type="tns:retornoFaixaNumericaTO"/>
253
+ </xs:sequence>
254
+ </xs:complexType>
255
+
256
+ <xs:complexType name="retornoFaixaNumericaTO">
257
+ <xs:sequence>
258
+ <xs:element minOccurs="0" name="data" type="xs:string"/>
259
+ <xs:element minOccurs="0" name="hora" type="xs:string"/>
260
+ <xs:element minOccurs="0" name="cod_erro" type="xs:string"/>
261
+ <xs:element minOccurs="0" name="msg_erro" type="xs:string"/>
262
+ <xs:element minOccurs="0" name="faixa_inicial" type="xs:int"/>
263
+ <xs:element minOccurs="0" name="faixa_final" type="xs:int"/>
264
+ </xs:sequence>
265
+ </xs:complexType>
266
+
267
+ <xs:complexType name="solicitarPostagemSimultanea">
268
+ <xs:sequence>
269
+ <xs:element minOccurs="0" name="usuario" type="xs:string"/>
270
+ <xs:element minOccurs="0" name="senha" type="xs:string"/>
271
+ <xs:element minOccurs="0" name="codAdministrativo" type="xs:int"/>
272
+ <xs:element minOccurs="0" name="contrato" type="xs:string"/>
273
+ <xs:element minOccurs="0" name="codigo_servico" type="xs:int"/>
274
+ <xs:element minOccurs="0" name="cartao" type="xs:string"/>
275
+ <xs:element minOccurs="0" name="destinatario" type="tns:pessoaTO"/>
276
+ <xs:element maxOccurs="unbounded" minOccurs="0" name="coletas_solicitadas" type="tns:coletaSimultaneaTO"/>
277
+ </xs:sequence>
278
+ </xs:complexType>
279
+
280
+ <xs:complexType name="solicitarPostagemSimultaneaResponse">
281
+ <xs:sequence>
282
+ <xs:element minOccurs="0" name="return" type="tns:retornoPostagemTO"/>
283
+ </xs:sequence>
284
+ </xs:complexType>
285
+
286
+ <xs:complexType name="acompanharPedido">
287
+ <xs:sequence>
288
+ <xs:element minOccurs="0" name="usuario" type="xs:string"/>
289
+ <xs:element minOccurs="0" name="senha" type="xs:string"/>
290
+ <xs:element minOccurs="0" name="codAdministrativo" type="xs:int"/>
291
+ <xs:element minOccurs="0" name="tipoBusca" type="xs:string"/>
292
+ <xs:element minOccurs="0" name="tipoSolicitacao" type="xs:string"/>
293
+ <xs:element maxOccurs="unbounded" minOccurs="0" name="numeroPedido" type="xs:string"/>
294
+ </xs:sequence>
295
+ </xs:complexType>
296
+
297
+ <xs:complexType name="acompanharPedidoResponse">
298
+ <xs:sequence>
299
+ <xs:element minOccurs="0" name="return" type="tns:retornoAcompanhamentoTO"/>
300
+ </xs:sequence>
301
+ </xs:complexType>
302
+
303
+ <xs:complexType name="retornoAcompanhamentoTO">
304
+ <xs:sequence>
305
+ <xs:element minOccurs="0" name="codigo_administrativo" type="xs:string"/>
306
+ <xs:element minOccurs="0" name="tipo_solicitacao" type="xs:string"/>
307
+ <xs:element maxOccurs="unbounded" minOccurs="0" name="coleta" nillable="true" type="tns:coletasSolicitadasTO"/>
308
+ <xs:element minOccurs="0" name="data" type="xs:string"/>
309
+ <xs:element minOccurs="0" name="hora" type="xs:string"/>
310
+ <xs:element minOccurs="0" name="cod_erro" type="xs:string"/>
311
+ <xs:element minOccurs="0" name="msg_erro" type="xs:string"/>
312
+ </xs:sequence>
313
+ </xs:complexType>
314
+
315
+ <xs:complexType name="coletasSolicitadasTO">
316
+ <xs:sequence>
317
+ <xs:element minOccurs="0" name="numero_pedido" type="xs:int"/>
318
+ <xs:element minOccurs="0" name="controle_cliente" type="xs:string"/>
319
+ <xs:element maxOccurs="unbounded" minOccurs="0" name="historico" nillable="true" type="tns:historicoColetaTO"/>
320
+ <xs:element maxOccurs="unbounded" minOccurs="0" name="objeto" nillable="true" type="tns:objetoPostalTO"/>
321
+ </xs:sequence>
322
+ </xs:complexType>
323
+
324
+ <xs:complexType name="historicoColetaTO">
325
+ <xs:sequence>
326
+ <xs:element minOccurs="0" name="status" type="xs:int"/>
327
+ <xs:element minOccurs="0" name="descricao_status" type="xs:string"/>
328
+ <xs:element minOccurs="0" name="data_atualizacao" type="xs:string"/>
329
+ <xs:element minOccurs="0" name="hora_atualizacao" type="xs:string"/>
330
+ <xs:element minOccurs="0" name="observacao" type="xs:string"/>
331
+ </xs:sequence>
332
+ </xs:complexType>
333
+
334
+ <xs:complexType name="objetoPostalTO">
335
+ <xs:sequence>
336
+ <xs:element minOccurs="0" name="numero_etiqueta" type="xs:string"/>
337
+ <xs:element minOccurs="0" name="controle_objeto_cliente" type="xs:string"/>
338
+ <xs:element minOccurs="0" name="ultimo_status" type="xs:string"/>
339
+ <xs:element minOccurs="0" name="descricao_status" type="xs:string"/>
340
+ <xs:element minOccurs="0" name="data_ultima_atualizacao" type="xs:string"/>
341
+ <xs:element minOccurs="0" name="hora_ultima_atualizacao" type="xs:string"/>
342
+ </xs:sequence>
343
+ </xs:complexType>
344
+
345
+ <xs:complexType name="validarPostagemReversa">
346
+ <xs:sequence>
347
+ <xs:element minOccurs="0" name="usuario" type="xs:string"/>
348
+ <xs:element minOccurs="0" name="senha" type="xs:string"/>
349
+ <xs:element minOccurs="0" name="codAdministrativo" type="xs:int"/>
350
+ <xs:element minOccurs="0" name="codigo_servico" type="xs:int"/>
351
+ <xs:element minOccurs="0" name="cep_destinatario" type="xs:string"/>
352
+ <xs:element minOccurs="0" name="coleta" type="tns:coletaReversaTO"/>
353
+ </xs:sequence>
354
+ </xs:complexType>
355
+
356
+ <xs:complexType name="validarPostagemReversaResponse">
357
+ <xs:sequence>
358
+ <xs:element minOccurs="0" name="return" type="tns:retornoValidacaoTO"/>
359
+ </xs:sequence>
360
+ </xs:complexType>
361
+
362
+ <xs:complexType name="cancelarPedido">
363
+ <xs:sequence>
364
+ <xs:element minOccurs="0" name="usuario" type="xs:string"/>
365
+ <xs:element minOccurs="0" name="senha" type="xs:string"/>
366
+ <xs:element minOccurs="0" name="codAdministrativo" type="xs:int"/>
367
+ <xs:element minOccurs="0" name="numeroPedido" type="xs:string"/>
368
+ <xs:element minOccurs="0" name="tipo" type="xs:string"/>
369
+ </xs:sequence>
370
+ </xs:complexType>
371
+
372
+ <xs:complexType name="cancelarPedidoResponse">
373
+ <xs:sequence>
374
+ <xs:element minOccurs="0" name="return" type="tns:retornoCancelamentoTO"/>
375
+ </xs:sequence>
376
+ </xs:complexType>
377
+
378
+ <xs:complexType name="retornoCancelamentoTO">
379
+ <xs:sequence>
380
+ <xs:element minOccurs="0" name="codigo_administrativo" type="xs:string"/>
381
+ <xs:element minOccurs="0" name="objeto_postal" type="tns:objetoSimplificadoTO"/>
382
+ <xs:element minOccurs="0" name="data" type="xs:string"/>
383
+ <xs:element minOccurs="0" name="hora" type="xs:string"/>
384
+ <xs:element minOccurs="0" name="cod_erro" type="xs:string"/>
385
+ <xs:element minOccurs="0" name="msg_erro" type="xs:string"/>
386
+ </xs:sequence>
387
+ </xs:complexType>
388
+
389
+ <xs:complexType name="objetoSimplificadoTO">
390
+ <xs:sequence>
391
+ <xs:element minOccurs="0" name="numero_pedido" type="xs:int"/>
392
+ <xs:element minOccurs="0" name="status_pedido" type="xs:string"/>
393
+ <xs:element minOccurs="0" name="datahora_cancelamento" type="xs:string"/>
394
+ </xs:sequence>
395
+ </xs:complexType>
396
+
397
+ </xs:schema>
398
+ </wsdl:types>
399
+ <wsdl:message name="solicitarRangeResponse">
400
+ <wsdl:part element="tns:solicitarRangeResponse" name="parameters">
401
+ </wsdl:part>
402
+ </wsdl:message>
403
+ <wsdl:message name="solicitarPostagemResponse">
404
+ <wsdl:part element="tns:solicitarPostagemResponse" name="parameters">
405
+ </wsdl:part>
406
+ </wsdl:message>
407
+ <wsdl:message name="acompanharPedidoResponse">
408
+ <wsdl:part element="tns:acompanharPedidoResponse" name="parameters">
409
+ </wsdl:part>
410
+ </wsdl:message>
411
+ <wsdl:message name="solicitarPostagemReversa">
412
+ <wsdl:part element="tns:solicitarPostagemReversa" name="parameters">
413
+ </wsdl:part>
414
+ </wsdl:message>
415
+ <wsdl:message name="solicitarPostagemSimultanea">
416
+ <wsdl:part element="tns:solicitarPostagemSimultanea" name="parameters">
417
+ </wsdl:part>
418
+ </wsdl:message>
419
+ <wsdl:message name="calcularDigitoVerificador">
420
+ <wsdl:part element="tns:calcularDigitoVerificador" name="parameters">
421
+ </wsdl:part>
422
+ </wsdl:message>
423
+ <wsdl:message name="solicitarRange">
424
+ <wsdl:part element="tns:solicitarRange" name="parameters">
425
+ </wsdl:part>
426
+ </wsdl:message>
427
+ <wsdl:message name="validarPostagemReversaResponse">
428
+ <wsdl:part element="tns:validarPostagemReversaResponse" name="parameters">
429
+ </wsdl:part>
430
+ </wsdl:message>
431
+ <wsdl:message name="cancelarPedido">
432
+ <wsdl:part element="tns:cancelarPedido" name="parameters">
433
+ </wsdl:part>
434
+ </wsdl:message>
435
+ <wsdl:message name="solicitarPostagemSimultaneaResponse">
436
+ <wsdl:part element="tns:solicitarPostagemSimultaneaResponse" name="parameters">
437
+ </wsdl:part>
438
+ </wsdl:message>
439
+ <wsdl:message name="acompanharPedido">
440
+ <wsdl:part element="tns:acompanharPedido" name="parameters">
441
+ </wsdl:part>
442
+ </wsdl:message>
443
+ <wsdl:message name="validarPostagemSimultaneaResponse">
444
+ <wsdl:part element="tns:validarPostagemSimultaneaResponse" name="parameters">
445
+ </wsdl:part>
446
+ </wsdl:message>
447
+ <wsdl:message name="solicitarPostagem">
448
+ <wsdl:part element="tns:solicitarPostagem" name="parameters">
449
+ </wsdl:part>
450
+ </wsdl:message>
451
+ <wsdl:message name="validarPostagemSimultanea">
452
+ <wsdl:part element="tns:validarPostagemSimultanea" name="parameters">
453
+ </wsdl:part>
454
+ </wsdl:message>
455
+ <wsdl:message name="validarPostagemReversa">
456
+ <wsdl:part element="tns:validarPostagemReversa" name="parameters">
457
+ </wsdl:part>
458
+ </wsdl:message>
459
+ <wsdl:message name="calcularDigitoVerificadorResponse">
460
+ <wsdl:part element="tns:calcularDigitoVerificadorResponse" name="parameters">
461
+ </wsdl:part>
462
+ </wsdl:message>
463
+ <wsdl:message name="cancelarPedidoResponse">
464
+ <wsdl:part element="tns:cancelarPedidoResponse" name="parameters">
465
+ </wsdl:part>
466
+ </wsdl:message>
467
+ <wsdl:message name="solicitarPostagemReversaResponse">
468
+ <wsdl:part element="tns:solicitarPostagemReversaResponse" name="parameters">
469
+ </wsdl:part>
470
+ </wsdl:message>
471
+ <wsdl:portType name="WebServiceScol">
472
+ <wsdl:operation name="validarPostagemSimultanea">
473
+ <wsdl:input message="tns:validarPostagemSimultanea" name="validarPostagemSimultanea">
474
+ </wsdl:input>
475
+ <wsdl:output message="tns:validarPostagemSimultaneaResponse" name="validarPostagemSimultaneaResponse">
476
+ </wsdl:output>
477
+ </wsdl:operation>
478
+ <wsdl:operation name="solicitarPostagem">
479
+ <wsdl:input message="tns:solicitarPostagem" name="solicitarPostagem">
480
+ </wsdl:input>
481
+ <wsdl:output message="tns:solicitarPostagemResponse" name="solicitarPostagemResponse">
482
+ </wsdl:output>
483
+ </wsdl:operation>
484
+ <wsdl:operation name="calcularDigitoVerificador">
485
+ <wsdl:input message="tns:calcularDigitoVerificador" name="calcularDigitoVerificador">
486
+ </wsdl:input>
487
+ <wsdl:output message="tns:calcularDigitoVerificadorResponse" name="calcularDigitoVerificadorResponse">
488
+ </wsdl:output>
489
+ </wsdl:operation>
490
+ <wsdl:operation name="solicitarPostagemReversa">
491
+ <wsdl:input message="tns:solicitarPostagemReversa" name="solicitarPostagemReversa">
492
+ </wsdl:input>
493
+ <wsdl:output message="tns:solicitarPostagemReversaResponse" name="solicitarPostagemReversaResponse">
494
+ </wsdl:output>
495
+ </wsdl:operation>
496
+ <wsdl:operation name="solicitarRange">
497
+ <wsdl:input message="tns:solicitarRange" name="solicitarRange">
498
+ </wsdl:input>
499
+ <wsdl:output message="tns:solicitarRangeResponse" name="solicitarRangeResponse">
500
+ </wsdl:output>
501
+ </wsdl:operation>
502
+ <wsdl:operation name="solicitarPostagemSimultanea">
503
+ <wsdl:input message="tns:solicitarPostagemSimultanea" name="solicitarPostagemSimultanea">
504
+ </wsdl:input>
505
+ <wsdl:output message="tns:solicitarPostagemSimultaneaResponse" name="solicitarPostagemSimultaneaResponse">
506
+ </wsdl:output>
507
+ </wsdl:operation>
508
+ <wsdl:operation name="acompanharPedido">
509
+ <wsdl:input message="tns:acompanharPedido" name="acompanharPedido">
510
+ </wsdl:input>
511
+ <wsdl:output message="tns:acompanharPedidoResponse" name="acompanharPedidoResponse">
512
+ </wsdl:output>
513
+ </wsdl:operation>
514
+ <wsdl:operation name="validarPostagemReversa">
515
+ <wsdl:input message="tns:validarPostagemReversa" name="validarPostagemReversa">
516
+ </wsdl:input>
517
+ <wsdl:output message="tns:validarPostagemReversaResponse" name="validarPostagemReversaResponse">
518
+ </wsdl:output>
519
+ </wsdl:operation>
520
+ <wsdl:operation name="cancelarPedido">
521
+ <wsdl:input message="tns:cancelarPedido" name="cancelarPedido">
522
+ </wsdl:input>
523
+ <wsdl:output message="tns:cancelarPedidoResponse" name="cancelarPedidoResponse">
524
+ </wsdl:output>
525
+ </wsdl:operation>
526
+ </wsdl:portType>
527
+ <wsdl:binding name="WebServiceScolSoapBinding" type="tns:WebServiceScol">
528
+ <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
529
+ <wsdl:operation name="calcularDigitoVerificador">
530
+ <soap:operation soapAction="" style="document"/>
531
+ <wsdl:input name="calcularDigitoVerificador">
532
+ <soap:body use="literal"/>
533
+ </wsdl:input>
534
+ <wsdl:output name="calcularDigitoVerificadorResponse">
535
+ <soap:body use="literal"/>
536
+ </wsdl:output>
537
+ </wsdl:operation>
538
+ <wsdl:operation name="solicitarPostagem">
539
+ <soap:operation soapAction="" style="document"/>
540
+ <wsdl:input name="solicitarPostagem">
541
+ <soap:body use="literal"/>
542
+ </wsdl:input>
543
+ <wsdl:output name="solicitarPostagemResponse">
544
+ <soap:body use="literal"/>
545
+ </wsdl:output>
546
+ </wsdl:operation>
547
+ <wsdl:operation name="validarPostagemSimultanea">
548
+ <soap:operation soapAction="" style="document"/>
549
+ <wsdl:input name="validarPostagemSimultanea">
550
+ <soap:body use="literal"/>
551
+ </wsdl:input>
552
+ <wsdl:output name="validarPostagemSimultaneaResponse">
553
+ <soap:body use="literal"/>
554
+ </wsdl:output>
555
+ </wsdl:operation>
556
+ <wsdl:operation name="solicitarPostagemReversa">
557
+ <soap:operation soapAction="" style="document"/>
558
+ <wsdl:input name="solicitarPostagemReversa">
559
+ <soap:body use="literal"/>
560
+ </wsdl:input>
561
+ <wsdl:output name="solicitarPostagemReversaResponse">
562
+ <soap:body use="literal"/>
563
+ </wsdl:output>
564
+ </wsdl:operation>
565
+ <wsdl:operation name="solicitarRange">
566
+ <soap:operation soapAction="" style="document"/>
567
+ <wsdl:input name="solicitarRange">
568
+ <soap:body use="literal"/>
569
+ </wsdl:input>
570
+ <wsdl:output name="solicitarRangeResponse">
571
+ <soap:body use="literal"/>
572
+ </wsdl:output>
573
+ </wsdl:operation>
574
+ <wsdl:operation name="solicitarPostagemSimultanea">
575
+ <soap:operation soapAction="" style="document"/>
576
+ <wsdl:input name="solicitarPostagemSimultanea">
577
+ <soap:body use="literal"/>
578
+ </wsdl:input>
579
+ <wsdl:output name="solicitarPostagemSimultaneaResponse">
580
+ <soap:body use="literal"/>
581
+ </wsdl:output>
582
+ </wsdl:operation>
583
+ <wsdl:operation name="acompanharPedido">
584
+ <soap:operation soapAction="" style="document"/>
585
+ <wsdl:input name="acompanharPedido">
586
+ <soap:body use="literal"/>
587
+ </wsdl:input>
588
+ <wsdl:output name="acompanharPedidoResponse">
589
+ <soap:body use="literal"/>
590
+ </wsdl:output>
591
+ </wsdl:operation>
592
+ <wsdl:operation name="validarPostagemReversa">
593
+ <soap:operation soapAction="" style="document"/>
594
+ <wsdl:input name="validarPostagemReversa">
595
+ <soap:body use="literal"/>
596
+ </wsdl:input>
597
+ <wsdl:output name="validarPostagemReversaResponse">
598
+ <soap:body use="literal"/>
599
+ </wsdl:output>
600
+ </wsdl:operation>
601
+ <wsdl:operation name="cancelarPedido">
602
+ <soap:operation soapAction="" style="document"/>
603
+ <wsdl:input name="cancelarPedido">
604
+ <soap:body use="literal"/>
605
+ </wsdl:input>
606
+ <wsdl:output name="cancelarPedidoResponse">
607
+ <soap:body use="literal"/>
608
+ </wsdl:output>
609
+ </wsdl:operation>
610
+ </wsdl:binding>
611
+ <wsdl:service name="WebServiceScol">
612
+ <wsdl:port binding="tns:WebServiceScolSoapBinding" name="WebServiceScolPort">
613
+ <soap:address location="http://webservicescolhomologacao.correios.com.br/ScolWeb/WebServiceScol"/>
614
+ </wsdl:port>
615
+ </wsdl:service>
616
+ </wsdl:definitions>