-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsoapProxy.h
81 lines (78 loc) · 3.79 KB
/
soapProxy.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
/* soapProxy.h
Generated by gSOAP 2.8.60 for hello.h
gSOAP XML Web services tools
Copyright (C) 2000-2018, Robert van Engelen, Genivia Inc. All Rights Reserved.
The soapcpp2 tool and its generated software are released under the GPL.
This program is released under the GPL with the additional exemption that
compiling, linking, and/or using OpenSSL is allowed.
--------------------------------------------------------------------------------
A commercial use license is available from Genivia Inc., [email protected]
--------------------------------------------------------------------------------
*/
#ifndef soapProxy_H
#define soapProxy_H
#include "soapH.h"
class SOAP_CMAC Proxy {
public:
/// Context to manage proxy IO and data
struct soap *soap;
bool soap_own; ///< flag indicating that this context is owned by this proxy when context is shared
/// Endpoint URL of service 'Proxy' (change as needed)
const char *soap_endpoint;
/// Variables globally declared in hello.h, if any
/// Construct a proxy with new managing context
Proxy();
/// Copy constructor
Proxy(const Proxy& rhs);
/// Construct proxy given a shared managing context
Proxy(struct soap*);
/// Constructor taking an endpoint URL
Proxy(const char *endpoint);
/// Constructor taking input and output mode flags for the new managing context
Proxy(soap_mode iomode);
/// Constructor taking endpoint URL and input and output mode flags for the new managing context
Proxy(const char *endpoint, soap_mode iomode);
/// Constructor taking input and output mode flags for the new managing context
Proxy(soap_mode imode, soap_mode omode);
/// Destructor deletes non-shared managing context only (use destroy() to delete deserialized data)
virtual ~Proxy();
/// Initializer used by constructors
virtual void Proxy_init(soap_mode imode, soap_mode omode);
/// Return a copy that has a new managing context with the same engine state
virtual Proxy *copy();
/// Copy assignment
Proxy& operator=(const Proxy&);
/// Delete all deserialized data (uses soap_destroy() and soap_end())
virtual void destroy();
/// Delete all deserialized data and reset to default
virtual void reset();
/// Disables and removes SOAP Header from message by setting soap->header = NULL
virtual void soap_noheader();
/// Get SOAP Header structure (i.e. soap->header, which is NULL when absent)
virtual ::SOAP_ENV__Header *soap_header();
/// Get SOAP Fault structure (i.e. soap->fault, which is NULL when absent)
virtual ::SOAP_ENV__Fault *soap_fault();
/// Get SOAP Fault string (NULL when absent)
virtual const char *soap_fault_string();
/// Get SOAP Fault detail as string (NULL when absent)
virtual const char *soap_fault_detail();
/// Close connection (normally automatic, except for send_X ops)
virtual int soap_close_socket();
/// Force close connection (can kill a thread blocked on IO)
virtual int soap_force_close_socket();
/// Print fault
virtual void soap_print_fault(FILE*);
#ifndef WITH_LEAN
#ifndef WITH_COMPAT
/// Print fault to stream
virtual void soap_stream_fault(std::ostream&);
#endif
/// Write fault to buffer
virtual char *soap_sprint_fault(char *buf, size_t len);
#endif
/// Web service operation 'hello' (returns SOAP_OK or error code)
virtual int hello(double input, double &output)
{ return this->hello(NULL, NULL, input, output); }
virtual int hello(const char *soap_endpoint, const char *soap_action, double input, double &output);
};
#endif