-
Notifications
You must be signed in to change notification settings - Fork 6
/
soapcaptureObject.h
executable file
·67 lines (51 loc) · 3.35 KB
/
soapcaptureObject.h
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
/* soapcaptureObject.h
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.
*/
#ifndef soapcaptureObject_H
#define soapcaptureObject_H
#include "soapH.h"
/******************************************************************************\
* *
* Service Object *
* *
\******************************************************************************/
class captureService : public soap
{ public:
captureService()
{ static const struct Namespace namespaces[] =
{
{"SOAP-ENV", "http://schemas.xmlsoap.org/soap/envelope/", "http://www.w3.org/*/soap-envelope", NULL},
{"SOAP-ENC", "http://schemas.xmlsoap.org/soap/encoding/", "http://www.w3.org/*/soap-encoding", NULL},
{"xsi", "http://www.w3.org/2001/XMLSchema-instance", "http://www.w3.org/*/XMLSchema-instance", NULL},
{"xsd", "http://www.w3.org/2001/XMLSchema", "http://www.w3.org/*/XMLSchema", NULL},
{"ns", "capture", NULL, NULL},
{NULL, NULL, NULL, NULL}
};
if (!this->namespaces) this->namespaces = namespaces; };
virtual ~captureService() { };
/// Bind service to port (returns master socket or SOAP_INVALID_SOCKET)
virtual SOAP_SOCKET bind(const char *host, int port, int backlog) { return soap_bind(this, host, port, backlog); };
/// Accept next request (returns socket or SOAP_INVALID_SOCKET)
virtual SOAP_SOCKET accept() { return soap_accept(this); };
/// Serve this request (returns error code or SOAP_OK)
virtual int serve() { return soap_serve(this); };
};
/******************************************************************************\
* *
* Service Operations (you should define these globally) *
* *
\******************************************************************************/
SOAP_FMAC5 int SOAP_FMAC6 ns__ping(struct soap*, char *a, char **result);
SOAP_FMAC5 int SOAP_FMAC6 ns__visitURL(struct soap*, char *URL, int &result);
SOAP_FMAC5 int SOAP_FMAC6 ns__sendFileBase64(struct soap*, char *fileName, char *data, unsigned int encodedLength, unsigned int decodedLength, int &result);
SOAP_FMAC5 int SOAP_FMAC6 ns__receiveFileBase64(struct soap*, char *fileName, struct s1 **result);
SOAP_FMAC5 int SOAP_FMAC6 ns__openDocument(struct soap*, char *fileName, int waitTimeMillisec, int &result);
SOAP_FMAC5 int SOAP_FMAC6 ns__returnRegistryEvents(struct soap*, int maxEventsToReturn, struct ns__dynRegArray **result);
SOAP_FMAC5 int SOAP_FMAC6 ns__returnFileEvents(struct soap*, int maxEventsToReturn, struct ns__dynFileArray **result);
SOAP_FMAC5 int SOAP_FMAC6 ns__returnProcessEvents(struct soap*, int maxEventsToReturn, struct ns__dynProcArray **result);
SOAP_FMAC5 int SOAP_FMAC6 ns__returnEvents(struct soap*, int maxEventsToReturn, struct a1 **result);
SOAP_FMAC5 int SOAP_FMAC6 ns__sendMIME(struct soap*, int magicNumber, int &result);
#endif