You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

133 lines
10 KiB

8 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /* soapwsddProxy.h
  2. Generated by gSOAP 2.8.17r from onvif.h
  3. Copyright(C) 2000-2013, Robert van Engelen, Genivia Inc. All Rights Reserved.
  4. The generated code is released under one of the following licenses:
  5. GPL or Genivia's license for commercial use.
  6. This program is released under the GPL with the additional exemption that
  7. compiling, linking, and/or using OpenSSL is allowed.
  8. */
  9. #ifndef soapwsddProxy_H
  10. #define soapwsddProxy_H
  11. #include "soapH.h"
  12. class SOAP_CMAC wsddProxy : public soap
  13. { public:
  14. /// Endpoint URL of service 'wsddProxy' (change as needed)
  15. const char *soap_endpoint;
  16. /// Constructor
  17. wsddProxy();
  18. /// Construct from another engine state
  19. wsddProxy(const struct soap&);
  20. /// Constructor with endpoint URL
  21. wsddProxy(const char *url);
  22. /// Constructor with engine input+output mode control
  23. wsddProxy(soap_mode iomode);
  24. /// Constructor with URL and input+output mode control
  25. wsddProxy(const char *url, soap_mode iomode);
  26. /// Constructor with engine input and output mode control
  27. wsddProxy(soap_mode imode, soap_mode omode);
  28. /// Destructor frees deserialized data
  29. virtual ~wsddProxy();
  30. /// Initializer used by constructors
  31. virtual void wsddProxy_init(soap_mode imode, soap_mode omode);
  32. /// Delete all deserialized data (with soap_destroy and soap_end)
  33. virtual void destroy();
  34. /// Delete all deserialized data and reset to default
  35. virtual void reset();
  36. /// Disables and removes SOAP Header from message
  37. virtual void soap_noheader();
  38. /// Put SOAP Header in message
  39. virtual void soap_header(struct _wsse__Security *wsse__Security, char *wsa__MessageID, struct wsa__Relationship *wsa__RelatesTo, struct wsa__EndpointReferenceType *wsa__From, struct wsa__EndpointReferenceType *wsa__ReplyTo, struct wsa__EndpointReferenceType *wsa__FaultTo, char *wsa__To, char *wsa__Action, struct wsdd__AppSequenceType *wsdd__AppSequence, char *wsa5__MessageID, struct wsa5__RelatesToType *wsa5__RelatesTo, struct wsa5__EndpointReferenceType *wsa5__From, struct wsa5__EndpointReferenceType *wsa5__ReplyTo, struct wsa5__EndpointReferenceType *wsa5__FaultTo, char *wsa5__To, char *wsa5__Action, struct chan__ChannelInstanceType *chan__ChannelInstance);
  40. /// Get SOAP Header structure (NULL when absent)
  41. virtual const SOAP_ENV__Header *soap_header();
  42. /// Get SOAP Fault structure (NULL when absent)
  43. virtual const SOAP_ENV__Fault *soap_fault();
  44. /// Get SOAP Fault string (NULL when absent)
  45. virtual const char *soap_fault_string();
  46. /// Get SOAP Fault detail as string (NULL when absent)
  47. virtual const char *soap_fault_detail();
  48. /// Close connection (normally automatic, except for send_X ops)
  49. virtual int soap_close_socket();
  50. /// Force close connection (can kill a thread blocked on IO)
  51. virtual int soap_force_close_socket();
  52. /// Print fault
  53. virtual void soap_print_fault(FILE*);
  54. #ifndef WITH_LEAN
  55. /// Print fault to stream
  56. #ifndef WITH_COMPAT
  57. virtual void soap_stream_fault(std::ostream&);
  58. #endif
  59. /// Put fault into buffer
  60. virtual char *soap_sprint_fault(char *buf, size_t len);
  61. #endif
  62. /// Web service one-way send operation 'send_Hello' (returns error code or SOAP_OK)
  63. virtual int send_Hello(struct wsdd__HelloType *wsdd__Hello) { return this->send_Hello(NULL, NULL, wsdd__Hello); }
  64. virtual int send_Hello(const char *endpoint, const char *soap_action, struct wsdd__HelloType *wsdd__Hello);
  65. /// Web service one-way receive operation 'recv_Hello' (returns error code or SOAP_OK);
  66. virtual int recv_Hello(struct __wsdd__Hello&);
  67. /// Web service receive of HTTP Accept acknowledgment for one-way send operation 'send_Hello' (returns error code or SOAP_OK)
  68. virtual int recv_Hello_empty_response() { return soap_recv_empty_response(this); }
  69. /// Web service one-way synchronous send operation 'Hello' with HTTP Accept/OK response receive (returns error code or SOAP_OK)
  70. virtual int Hello(struct wsdd__HelloType *wsdd__Hello) { return this->Hello(NULL, NULL, wsdd__Hello); }
  71. virtual int Hello(const char *endpoint, const char *soap_action, struct wsdd__HelloType *wsdd__Hello) { if (this->send_Hello(endpoint, soap_action, wsdd__Hello) || soap_recv_empty_response(this)) return this->error; return SOAP_OK; }
  72. /// Web service one-way send operation 'send_Bye' (returns error code or SOAP_OK)
  73. virtual int send_Bye(struct wsdd__ByeType *wsdd__Bye) { return this->send_Bye(NULL, NULL, wsdd__Bye); }
  74. virtual int send_Bye(const char *endpoint, const char *soap_action, struct wsdd__ByeType *wsdd__Bye);
  75. /// Web service one-way receive operation 'recv_Bye' (returns error code or SOAP_OK);
  76. virtual int recv_Bye(struct __wsdd__Bye&);
  77. /// Web service receive of HTTP Accept acknowledgment for one-way send operation 'send_Bye' (returns error code or SOAP_OK)
  78. virtual int recv_Bye_empty_response() { return soap_recv_empty_response(this); }
  79. /// Web service one-way synchronous send operation 'Bye' with HTTP Accept/OK response receive (returns error code or SOAP_OK)
  80. virtual int Bye(struct wsdd__ByeType *wsdd__Bye) { return this->Bye(NULL, NULL, wsdd__Bye); }
  81. virtual int Bye(const char *endpoint, const char *soap_action, struct wsdd__ByeType *wsdd__Bye) { if (this->send_Bye(endpoint, soap_action, wsdd__Bye) || soap_recv_empty_response(this)) return this->error; return SOAP_OK; }
  82. /// Web service one-way send operation 'send_Probe' (returns error code or SOAP_OK)
  83. virtual int send_Probe(struct wsdd__ProbeType *wsdd__Probe) { return this->send_Probe(NULL, NULL, wsdd__Probe); }
  84. virtual int send_Probe(const char *endpoint, const char *soap_action, struct wsdd__ProbeType *wsdd__Probe);
  85. /// Web service one-way receive operation 'recv_Probe' (returns error code or SOAP_OK);
  86. virtual int recv_Probe(struct __wsdd__Probe&);
  87. /// Web service receive of HTTP Accept acknowledgment for one-way send operation 'send_Probe' (returns error code or SOAP_OK)
  88. virtual int recv_Probe_empty_response() { return soap_recv_empty_response(this); }
  89. /// Web service one-way synchronous send operation 'Probe' with HTTP Accept/OK response receive (returns error code or SOAP_OK)
  90. virtual int Probe(struct wsdd__ProbeType *wsdd__Probe) { return this->Probe(NULL, NULL, wsdd__Probe); }
  91. virtual int Probe(const char *endpoint, const char *soap_action, struct wsdd__ProbeType *wsdd__Probe) { if (this->send_Probe(endpoint, soap_action, wsdd__Probe) || soap_recv_empty_response(this)) return this->error; return SOAP_OK; }
  92. /// Web service one-way send operation 'send_ProbeMatches' (returns error code or SOAP_OK)
  93. virtual int send_ProbeMatches(struct wsdd__ProbeMatchesType *wsdd__ProbeMatches) { return this->send_ProbeMatches(NULL, NULL, wsdd__ProbeMatches); }
  94. virtual int send_ProbeMatches(const char *endpoint, const char *soap_action, struct wsdd__ProbeMatchesType *wsdd__ProbeMatches);
  95. /// Web service one-way receive operation 'recv_ProbeMatches' (returns error code or SOAP_OK);
  96. virtual int recv_ProbeMatches(struct __wsdd__ProbeMatches&);
  97. /// Web service receive of HTTP Accept acknowledgment for one-way send operation 'send_ProbeMatches' (returns error code or SOAP_OK)
  98. virtual int recv_ProbeMatches_empty_response() { return soap_recv_empty_response(this); }
  99. /// Web service one-way synchronous send operation 'ProbeMatches' with HTTP Accept/OK response receive (returns error code or SOAP_OK)
  100. virtual int ProbeMatches(struct wsdd__ProbeMatchesType *wsdd__ProbeMatches) { return this->ProbeMatches(NULL, NULL, wsdd__ProbeMatches); }
  101. virtual int ProbeMatches(const char *endpoint, const char *soap_action, struct wsdd__ProbeMatchesType *wsdd__ProbeMatches) { if (this->send_ProbeMatches(endpoint, soap_action, wsdd__ProbeMatches) || soap_recv_empty_response(this)) return this->error; return SOAP_OK; }
  102. /// Web service one-way send operation 'send_Resolve' (returns error code or SOAP_OK)
  103. virtual int send_Resolve(struct wsdd__ResolveType *wsdd__Resolve) { return this->send_Resolve(NULL, NULL, wsdd__Resolve); }
  104. virtual int send_Resolve(const char *endpoint, const char *soap_action, struct wsdd__ResolveType *wsdd__Resolve);
  105. /// Web service one-way receive operation 'recv_Resolve' (returns error code or SOAP_OK);
  106. virtual int recv_Resolve(struct __wsdd__Resolve&);
  107. /// Web service receive of HTTP Accept acknowledgment for one-way send operation 'send_Resolve' (returns error code or SOAP_OK)
  108. virtual int recv_Resolve_empty_response() { return soap_recv_empty_response(this); }
  109. /// Web service one-way synchronous send operation 'Resolve' with HTTP Accept/OK response receive (returns error code or SOAP_OK)
  110. virtual int Resolve(struct wsdd__ResolveType *wsdd__Resolve) { return this->Resolve(NULL, NULL, wsdd__Resolve); }
  111. virtual int Resolve(const char *endpoint, const char *soap_action, struct wsdd__ResolveType *wsdd__Resolve) { if (this->send_Resolve(endpoint, soap_action, wsdd__Resolve) || soap_recv_empty_response(this)) return this->error; return SOAP_OK; }
  112. /// Web service one-way send operation 'send_ResolveMatches' (returns error code or SOAP_OK)
  113. virtual int send_ResolveMatches(struct wsdd__ResolveMatchesType *wsdd__ResolveMatches) { return this->send_ResolveMatches(NULL, NULL, wsdd__ResolveMatches); }
  114. virtual int send_ResolveMatches(const char *endpoint, const char *soap_action, struct wsdd__ResolveMatchesType *wsdd__ResolveMatches);
  115. /// Web service one-way receive operation 'recv_ResolveMatches' (returns error code or SOAP_OK);
  116. virtual int recv_ResolveMatches(struct __wsdd__ResolveMatches&);
  117. /// Web service receive of HTTP Accept acknowledgment for one-way send operation 'send_ResolveMatches' (returns error code or SOAP_OK)
  118. virtual int recv_ResolveMatches_empty_response() { return soap_recv_empty_response(this); }
  119. /// Web service one-way synchronous send operation 'ResolveMatches' with HTTP Accept/OK response receive (returns error code or SOAP_OK)
  120. virtual int ResolveMatches(struct wsdd__ResolveMatchesType *wsdd__ResolveMatches) { return this->ResolveMatches(NULL, NULL, wsdd__ResolveMatches); }
  121. virtual int ResolveMatches(const char *endpoint, const char *soap_action, struct wsdd__ResolveMatchesType *wsdd__ResolveMatches) { if (this->send_ResolveMatches(endpoint, soap_action, wsdd__ResolveMatches) || soap_recv_empty_response(this)) return this->error; return SOAP_OK; }
  122. };
  123. #endif