-
Notifications
You must be signed in to change notification settings - Fork 6
/
soapServer.cpp
executable file
·528 lines (506 loc) · 20.6 KB
/
soapServer.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
/* soapServer.cpp
Generated by gSOAP 2.7.10 from captureGSOAP.h
Copyright(C) 2000-2008, Robert van Engelen, Genivia Inc. All Rights Reserved.
This part of the software is released under one of the following licenses:
GPL, the gSOAP public license, or Genivia's license for commercial use.
*/
#include "soapH.h"
SOAP_SOURCE_STAMP("@(#) soapServer.cpp ver 2.7.10 2009-02-13 20:50:07 GMT")
SOAP_FMAC5 int SOAP_FMAC6 soap_serve(struct soap *soap)
{
#ifndef WITH_FASTCGI
unsigned int k = soap->max_keep_alive;
#endif
do
{
#ifdef WITH_FASTCGI
if (FCGI_Accept() < 0)
{
soap->error = SOAP_EOF;
return soap_send_fault(soap);
}
#endif
soap_begin(soap);
#ifndef WITH_FASTCGI
if (soap->max_keep_alive > 0 && !--k)
soap->keep_alive = 0;
#endif
if (soap_begin_recv(soap))
{ if (soap->error < SOAP_STOP)
{
#ifdef WITH_FASTCGI
soap_send_fault(soap);
#else
return soap_send_fault(soap);
#endif
}
soap_closesock(soap);
continue;
}
if (soap_envelope_begin_in(soap)
|| soap_recv_header(soap)
|| soap_body_begin_in(soap)
|| soap_serve_request(soap)
|| (soap->fserveloop && soap->fserveloop(soap)))
{
#ifdef WITH_FASTCGI
soap_send_fault(soap);
#else
return soap_send_fault(soap);
#endif
}
#ifdef WITH_FASTCGI
soap_destroy(soap);
soap_end(soap);
} while (1);
#else
} while (soap->keep_alive);
#endif
return SOAP_OK;
}
#ifndef WITH_NOSERVEREQUEST
SOAP_FMAC5 int SOAP_FMAC6 soap_serve_request(struct soap *soap)
{
soap_peek_element(soap);
if (!soap_match_tag(soap, soap->tag, "ns:ping"))
return soap_serve_ns__ping(soap);
if (!soap_match_tag(soap, soap->tag, "ns:visitURL"))
return soap_serve_ns__visitURL(soap);
if (!soap_match_tag(soap, soap->tag, "ns:sendFileBase64"))
return soap_serve_ns__sendFileBase64(soap);
if (!soap_match_tag(soap, soap->tag, "ns:receiveFileBase64"))
return soap_serve_ns__receiveFileBase64(soap);
if (!soap_match_tag(soap, soap->tag, "ns:openDocument"))
return soap_serve_ns__openDocument(soap);
if (!soap_match_tag(soap, soap->tag, "ns:returnRegistryEvents"))
return soap_serve_ns__returnRegistryEvents(soap);
if (!soap_match_tag(soap, soap->tag, "ns:returnFileEvents"))
return soap_serve_ns__returnFileEvents(soap);
if (!soap_match_tag(soap, soap->tag, "ns:returnProcessEvents"))
return soap_serve_ns__returnProcessEvents(soap);
if (!soap_match_tag(soap, soap->tag, "ns:returnEvents"))
return soap_serve_ns__returnEvents(soap);
if (!soap_match_tag(soap, soap->tag, "ns:sendMIME"))
return soap_serve_ns__sendMIME(soap);
return soap->error = SOAP_NO_METHOD;
}
#endif
SOAP_FMAC5 int SOAP_FMAC6 soap_serve_ns__ping(struct soap *soap)
{ struct ns__ping soap_tmp_ns__ping;
struct ns__pingResponse soap_tmp_ns__pingResponse;
char * soap_tmp_string;
soap_default_ns__pingResponse(soap, &soap_tmp_ns__pingResponse);
soap_tmp_string = NULL;
soap_tmp_ns__pingResponse.result = &soap_tmp_string;
soap_default_ns__ping(soap, &soap_tmp_ns__ping);
soap->encodingStyle = "";
if (!soap_get_ns__ping(soap, &soap_tmp_ns__ping, "ns:ping", NULL))
return soap->error;
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap->error;
soap->error = ns__ping(soap, soap_tmp_ns__ping.a, &soap_tmp_string);
if (soap->error)
return soap->error;
soap_serializeheader(soap);
soap_serialize_ns__pingResponse(soap, &soap_tmp_ns__pingResponse);
if (soap_begin_count(soap))
return soap->error;
if (soap->mode & SOAP_IO_LENGTH)
{ if (soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| soap_put_ns__pingResponse(soap, &soap_tmp_ns__pingResponse, "ns:pingResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap))
return soap->error;
};
if (soap_end_count(soap)
|| soap_response(soap, SOAP_OK)
|| soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| soap_put_ns__pingResponse(soap, &soap_tmp_ns__pingResponse, "ns:pingResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap->error;
return soap_closesock(soap);
}
SOAP_FMAC5 int SOAP_FMAC6 soap_serve_ns__visitURL(struct soap *soap)
{ struct ns__visitURL soap_tmp_ns__visitURL;
struct ns__visitURLResponse soap_tmp_ns__visitURLResponse;
soap_default_ns__visitURLResponse(soap, &soap_tmp_ns__visitURLResponse);
soap_default_ns__visitURL(soap, &soap_tmp_ns__visitURL);
soap->encodingStyle = "";
if (!soap_get_ns__visitURL(soap, &soap_tmp_ns__visitURL, "ns:visitURL", NULL))
return soap->error;
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap->error;
soap->error = ns__visitURL(soap, soap_tmp_ns__visitURL.URL, soap_tmp_ns__visitURLResponse.result);
if (soap->error)
return soap->error;
soap_serializeheader(soap);
soap_serialize_ns__visitURLResponse(soap, &soap_tmp_ns__visitURLResponse);
if (soap_begin_count(soap))
return soap->error;
if (soap->mode & SOAP_IO_LENGTH)
{ if (soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| soap_put_ns__visitURLResponse(soap, &soap_tmp_ns__visitURLResponse, "ns:visitURLResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap))
return soap->error;
};
if (soap_end_count(soap)
|| soap_response(soap, SOAP_OK)
|| soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| soap_put_ns__visitURLResponse(soap, &soap_tmp_ns__visitURLResponse, "ns:visitURLResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap->error;
return soap_closesock(soap);
}
SOAP_FMAC5 int SOAP_FMAC6 soap_serve_ns__sendFileBase64(struct soap *soap)
{ struct ns__sendFileBase64 soap_tmp_ns__sendFileBase64;
struct ns__sendFileBase64Response soap_tmp_ns__sendFileBase64Response;
soap_default_ns__sendFileBase64Response(soap, &soap_tmp_ns__sendFileBase64Response);
soap_default_ns__sendFileBase64(soap, &soap_tmp_ns__sendFileBase64);
soap->encodingStyle = "";
if (!soap_get_ns__sendFileBase64(soap, &soap_tmp_ns__sendFileBase64, "ns:sendFileBase64", NULL))
return soap->error;
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap->error;
soap->error = ns__sendFileBase64(soap, soap_tmp_ns__sendFileBase64.fileName, soap_tmp_ns__sendFileBase64.data, soap_tmp_ns__sendFileBase64.encodedLength, soap_tmp_ns__sendFileBase64.decodedLength, soap_tmp_ns__sendFileBase64Response.result);
if (soap->error)
return soap->error;
soap_serializeheader(soap);
soap_serialize_ns__sendFileBase64Response(soap, &soap_tmp_ns__sendFileBase64Response);
if (soap_begin_count(soap))
return soap->error;
if (soap->mode & SOAP_IO_LENGTH)
{ if (soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| soap_put_ns__sendFileBase64Response(soap, &soap_tmp_ns__sendFileBase64Response, "ns:sendFileBase64Response", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap))
return soap->error;
};
if (soap_end_count(soap)
|| soap_response(soap, SOAP_OK)
|| soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| soap_put_ns__sendFileBase64Response(soap, &soap_tmp_ns__sendFileBase64Response, "ns:sendFileBase64Response", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap->error;
return soap_closesock(soap);
}
SOAP_FMAC5 int SOAP_FMAC6 soap_serve_ns__receiveFileBase64(struct soap *soap)
{ struct ns__receiveFileBase64 soap_tmp_ns__receiveFileBase64;
struct ns__receiveFileBase64Response soap_tmp_ns__receiveFileBase64Response;
struct s1 * soap_tmp_PointerTons__receiveFileStruct;
soap_default_ns__receiveFileBase64Response(soap, &soap_tmp_ns__receiveFileBase64Response);
soap_tmp_PointerTons__receiveFileStruct = NULL;
soap_tmp_ns__receiveFileBase64Response.result = &soap_tmp_PointerTons__receiveFileStruct;
soap_default_ns__receiveFileBase64(soap, &soap_tmp_ns__receiveFileBase64);
soap->encodingStyle = "";
if (!soap_get_ns__receiveFileBase64(soap, &soap_tmp_ns__receiveFileBase64, "ns:receiveFileBase64", NULL))
return soap->error;
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap->error;
soap->error = ns__receiveFileBase64(soap, soap_tmp_ns__receiveFileBase64.fileName, &soap_tmp_PointerTons__receiveFileStruct);
if (soap->error)
return soap->error;
soap_serializeheader(soap);
soap_serialize_ns__receiveFileBase64Response(soap, &soap_tmp_ns__receiveFileBase64Response);
if (soap_begin_count(soap))
return soap->error;
if (soap->mode & SOAP_IO_LENGTH)
{ if (soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| soap_put_ns__receiveFileBase64Response(soap, &soap_tmp_ns__receiveFileBase64Response, "ns:receiveFileBase64Response", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap))
return soap->error;
};
if (soap_end_count(soap)
|| soap_response(soap, SOAP_OK)
|| soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| soap_put_ns__receiveFileBase64Response(soap, &soap_tmp_ns__receiveFileBase64Response, "ns:receiveFileBase64Response", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap->error;
return soap_closesock(soap);
}
SOAP_FMAC5 int SOAP_FMAC6 soap_serve_ns__openDocument(struct soap *soap)
{ struct ns__openDocument soap_tmp_ns__openDocument;
struct ns__openDocumentResponse soap_tmp_ns__openDocumentResponse;
soap_default_ns__openDocumentResponse(soap, &soap_tmp_ns__openDocumentResponse);
soap_default_ns__openDocument(soap, &soap_tmp_ns__openDocument);
soap->encodingStyle = "";
if (!soap_get_ns__openDocument(soap, &soap_tmp_ns__openDocument, "ns:openDocument", NULL))
return soap->error;
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap->error;
soap->error = ns__openDocument(soap, soap_tmp_ns__openDocument.fileName, soap_tmp_ns__openDocument.waitTimeMillisec, soap_tmp_ns__openDocumentResponse.result);
if (soap->error)
return soap->error;
soap_serializeheader(soap);
soap_serialize_ns__openDocumentResponse(soap, &soap_tmp_ns__openDocumentResponse);
if (soap_begin_count(soap))
return soap->error;
if (soap->mode & SOAP_IO_LENGTH)
{ if (soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| soap_put_ns__openDocumentResponse(soap, &soap_tmp_ns__openDocumentResponse, "ns:openDocumentResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap))
return soap->error;
};
if (soap_end_count(soap)
|| soap_response(soap, SOAP_OK)
|| soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| soap_put_ns__openDocumentResponse(soap, &soap_tmp_ns__openDocumentResponse, "ns:openDocumentResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap->error;
return soap_closesock(soap);
}
SOAP_FMAC5 int SOAP_FMAC6 soap_serve_ns__returnRegistryEvents(struct soap *soap)
{ struct ns__returnRegistryEvents soap_tmp_ns__returnRegistryEvents;
struct ns__returnRegistryEventsResponse soap_tmp_ns__returnRegistryEventsResponse;
struct ns__dynRegArray * soap_tmp_PointerTons__dynRegArray;
soap_default_ns__returnRegistryEventsResponse(soap, &soap_tmp_ns__returnRegistryEventsResponse);
soap_tmp_PointerTons__dynRegArray = NULL;
soap_tmp_ns__returnRegistryEventsResponse.result = &soap_tmp_PointerTons__dynRegArray;
soap_default_ns__returnRegistryEvents(soap, &soap_tmp_ns__returnRegistryEvents);
soap->encodingStyle = "";
if (!soap_get_ns__returnRegistryEvents(soap, &soap_tmp_ns__returnRegistryEvents, "ns:returnRegistryEvents", NULL))
return soap->error;
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap->error;
soap->error = ns__returnRegistryEvents(soap, soap_tmp_ns__returnRegistryEvents.maxEventsToReturn, &soap_tmp_PointerTons__dynRegArray);
if (soap->error)
return soap->error;
soap_serializeheader(soap);
soap_serialize_ns__returnRegistryEventsResponse(soap, &soap_tmp_ns__returnRegistryEventsResponse);
if (soap_begin_count(soap))
return soap->error;
if (soap->mode & SOAP_IO_LENGTH)
{ if (soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| soap_put_ns__returnRegistryEventsResponse(soap, &soap_tmp_ns__returnRegistryEventsResponse, "ns:returnRegistryEventsResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap))
return soap->error;
};
if (soap_end_count(soap)
|| soap_response(soap, SOAP_OK)
|| soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| soap_put_ns__returnRegistryEventsResponse(soap, &soap_tmp_ns__returnRegistryEventsResponse, "ns:returnRegistryEventsResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap->error;
return soap_closesock(soap);
}
SOAP_FMAC5 int SOAP_FMAC6 soap_serve_ns__returnFileEvents(struct soap *soap)
{ struct ns__returnFileEvents soap_tmp_ns__returnFileEvents;
struct ns__returnFileEventsResponse soap_tmp_ns__returnFileEventsResponse;
struct ns__dynFileArray * soap_tmp_PointerTons__dynFileArray;
soap_default_ns__returnFileEventsResponse(soap, &soap_tmp_ns__returnFileEventsResponse);
soap_tmp_PointerTons__dynFileArray = NULL;
soap_tmp_ns__returnFileEventsResponse.result = &soap_tmp_PointerTons__dynFileArray;
soap_default_ns__returnFileEvents(soap, &soap_tmp_ns__returnFileEvents);
soap->encodingStyle = "";
if (!soap_get_ns__returnFileEvents(soap, &soap_tmp_ns__returnFileEvents, "ns:returnFileEvents", NULL))
return soap->error;
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap->error;
soap->error = ns__returnFileEvents(soap, soap_tmp_ns__returnFileEvents.maxEventsToReturn, &soap_tmp_PointerTons__dynFileArray);
if (soap->error)
return soap->error;
soap_serializeheader(soap);
soap_serialize_ns__returnFileEventsResponse(soap, &soap_tmp_ns__returnFileEventsResponse);
if (soap_begin_count(soap))
return soap->error;
if (soap->mode & SOAP_IO_LENGTH)
{ if (soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| soap_put_ns__returnFileEventsResponse(soap, &soap_tmp_ns__returnFileEventsResponse, "ns:returnFileEventsResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap))
return soap->error;
};
if (soap_end_count(soap)
|| soap_response(soap, SOAP_OK)
|| soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| soap_put_ns__returnFileEventsResponse(soap, &soap_tmp_ns__returnFileEventsResponse, "ns:returnFileEventsResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap->error;
return soap_closesock(soap);
}
SOAP_FMAC5 int SOAP_FMAC6 soap_serve_ns__returnProcessEvents(struct soap *soap)
{ struct ns__returnProcessEvents soap_tmp_ns__returnProcessEvents;
struct ns__returnProcessEventsResponse soap_tmp_ns__returnProcessEventsResponse;
struct ns__dynProcArray * soap_tmp_PointerTons__dynProcArray;
soap_default_ns__returnProcessEventsResponse(soap, &soap_tmp_ns__returnProcessEventsResponse);
soap_tmp_PointerTons__dynProcArray = NULL;
soap_tmp_ns__returnProcessEventsResponse.result = &soap_tmp_PointerTons__dynProcArray;
soap_default_ns__returnProcessEvents(soap, &soap_tmp_ns__returnProcessEvents);
soap->encodingStyle = "";
if (!soap_get_ns__returnProcessEvents(soap, &soap_tmp_ns__returnProcessEvents, "ns:returnProcessEvents", NULL))
return soap->error;
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap->error;
soap->error = ns__returnProcessEvents(soap, soap_tmp_ns__returnProcessEvents.maxEventsToReturn, &soap_tmp_PointerTons__dynProcArray);
if (soap->error)
return soap->error;
soap_serializeheader(soap);
soap_serialize_ns__returnProcessEventsResponse(soap, &soap_tmp_ns__returnProcessEventsResponse);
if (soap_begin_count(soap))
return soap->error;
if (soap->mode & SOAP_IO_LENGTH)
{ if (soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| soap_put_ns__returnProcessEventsResponse(soap, &soap_tmp_ns__returnProcessEventsResponse, "ns:returnProcessEventsResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap))
return soap->error;
};
if (soap_end_count(soap)
|| soap_response(soap, SOAP_OK)
|| soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| soap_put_ns__returnProcessEventsResponse(soap, &soap_tmp_ns__returnProcessEventsResponse, "ns:returnProcessEventsResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap->error;
return soap_closesock(soap);
}
SOAP_FMAC5 int SOAP_FMAC6 soap_serve_ns__returnEvents(struct soap *soap)
{ struct ns__returnEvents soap_tmp_ns__returnEvents;
struct ns__returnEventsResponse soap_tmp_ns__returnEventsResponse;
struct a1 * soap_tmp_PointerTons__allEvents;
soap_default_ns__returnEventsResponse(soap, &soap_tmp_ns__returnEventsResponse);
soap_tmp_PointerTons__allEvents = NULL;
soap_tmp_ns__returnEventsResponse.result = &soap_tmp_PointerTons__allEvents;
soap_default_ns__returnEvents(soap, &soap_tmp_ns__returnEvents);
soap->encodingStyle = "";
if (!soap_get_ns__returnEvents(soap, &soap_tmp_ns__returnEvents, "ns:returnEvents", NULL))
return soap->error;
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap->error;
soap->error = ns__returnEvents(soap, soap_tmp_ns__returnEvents.maxEventsToReturn, &soap_tmp_PointerTons__allEvents);
if (soap->error)
return soap->error;
soap_serializeheader(soap);
soap_serialize_ns__returnEventsResponse(soap, &soap_tmp_ns__returnEventsResponse);
if (soap_begin_count(soap))
return soap->error;
if (soap->mode & SOAP_IO_LENGTH)
{ if (soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| soap_put_ns__returnEventsResponse(soap, &soap_tmp_ns__returnEventsResponse, "ns:returnEventsResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap))
return soap->error;
};
if (soap_end_count(soap)
|| soap_response(soap, SOAP_OK)
|| soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| soap_put_ns__returnEventsResponse(soap, &soap_tmp_ns__returnEventsResponse, "ns:returnEventsResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap->error;
return soap_closesock(soap);
}
SOAP_FMAC5 int SOAP_FMAC6 soap_serve_ns__sendMIME(struct soap *soap)
{ struct ns__sendMIME soap_tmp_ns__sendMIME;
struct ns__sendMIMEResponse soap_tmp_ns__sendMIMEResponse;
soap_default_ns__sendMIMEResponse(soap, &soap_tmp_ns__sendMIMEResponse);
soap_default_ns__sendMIME(soap, &soap_tmp_ns__sendMIME);
soap->encodingStyle = "";
if (!soap_get_ns__sendMIME(soap, &soap_tmp_ns__sendMIME, "ns:sendMIME", NULL))
return soap->error;
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap->error;
soap->error = ns__sendMIME(soap, soap_tmp_ns__sendMIME.magicNumber, soap_tmp_ns__sendMIMEResponse.result);
if (soap->error)
return soap->error;
soap_serializeheader(soap);
soap_serialize_ns__sendMIMEResponse(soap, &soap_tmp_ns__sendMIMEResponse);
if (soap_begin_count(soap))
return soap->error;
if (soap->mode & SOAP_IO_LENGTH)
{ if (soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| soap_put_ns__sendMIMEResponse(soap, &soap_tmp_ns__sendMIMEResponse, "ns:sendMIMEResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap))
return soap->error;
};
if (soap_end_count(soap)
|| soap_response(soap, SOAP_OK)
|| soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| soap_put_ns__sendMIMEResponse(soap, &soap_tmp_ns__sendMIMEResponse, "ns:sendMIMEResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap->error;
return soap_closesock(soap);
}
/* End of soapServer.cpp */