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.

1592 lines
61 KiB

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /* soapPTZBindingProxy.cpp
  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. #include "soapPTZBindingProxy.h"
  10. PTZBindingProxy::PTZBindingProxy()
  11. { PTZBindingProxy_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
  12. }
  13. PTZBindingProxy::PTZBindingProxy(const struct soap &_soap) : soap(_soap)
  14. { }
  15. PTZBindingProxy::PTZBindingProxy(const char *url)
  16. { PTZBindingProxy_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
  17. soap_endpoint = url;
  18. }
  19. PTZBindingProxy::PTZBindingProxy(soap_mode iomode)
  20. { PTZBindingProxy_init(iomode, iomode);
  21. }
  22. PTZBindingProxy::PTZBindingProxy(const char *url, soap_mode iomode)
  23. { PTZBindingProxy_init(iomode, iomode);
  24. soap_endpoint = url;
  25. }
  26. PTZBindingProxy::PTZBindingProxy(soap_mode imode, soap_mode omode)
  27. { PTZBindingProxy_init(imode, omode);
  28. }
  29. PTZBindingProxy::~PTZBindingProxy()
  30. { }
  31. void PTZBindingProxy::PTZBindingProxy_init(soap_mode imode, soap_mode omode)
  32. { soap_imode(this, imode);
  33. soap_omode(this, omode);
  34. soap_endpoint = NULL;
  35. static const struct Namespace namespaces[] =
  36. {
  37. {"SOAP-ENV", "http://www.w3.org/2003/05/soap-envelope", "http://schemas.xmlsoap.org/soap/envelope/", NULL},
  38. {"SOAP-ENC", "http://www.w3.org/2003/05/soap-encoding", "http://schemas.xmlsoap.org/soap/encoding/", NULL},
  39. {"xsi", "http://www.w3.org/2001/XMLSchema-instance", "http://www.w3.org/*/XMLSchema-instance", NULL},
  40. {"xsd", "http://www.w3.org/2001/XMLSchema", "http://www.w3.org/*/XMLSchema", NULL},
  41. {"c14n", "http://www.w3.org/2001/10/xml-exc-c14n#", NULL, NULL},
  42. {"wsu", "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd", NULL, NULL},
  43. {"xenc", "http://www.w3.org/2001/04/xmlenc#", NULL, NULL},
  44. {"wsc", "http://schemas.xmlsoap.org/ws/2005/02/sc", NULL, NULL},
  45. {"ds", "http://www.w3.org/2000/09/xmldsig#", NULL, NULL},
  46. {"wsse", "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd", "http://docs.oasis-open.org/wss/oasis-wss-wssecurity-secext-1.1.xsd", NULL},
  47. {"wsa", "http://schemas.xmlsoap.org/ws/2004/08/addressing", NULL, NULL},
  48. {"wsdd", "http://schemas.xmlsoap.org/ws/2005/04/discovery", NULL, NULL},
  49. {"chan", "http://schemas.microsoft.com/ws/2005/02/duplex", NULL, NULL},
  50. {"wsa5", "http://www.w3.org/2005/08/addressing", "http://schemas.xmlsoap.org/ws/2004/08/addressing", NULL},
  51. {"xmime", "http://tempuri.org/xmime.xsd", NULL, NULL},
  52. {"xop", "http://www.w3.org/2004/08/xop/include", NULL, NULL},
  53. {"tt", "http://www.onvif.org/ver10/schema", NULL, NULL},
  54. {"wsrfbf", "http://docs.oasis-open.org/wsrf/bf-2", NULL, NULL},
  55. {"wstop", "http://docs.oasis-open.org/wsn/t-1", NULL, NULL},
  56. {"wsrfr", "http://docs.oasis-open.org/wsrf/r-2", NULL, NULL},
  57. {"tdn", "http://www.onvif.org/ver10/network/wsdl", NULL, NULL},
  58. {"tds", "http://www.onvif.org/ver10/device/wsdl", NULL, NULL},
  59. {"tev", "http://www.onvif.org/ver10/events/wsdl", NULL, NULL},
  60. {"wsnt", "http://docs.oasis-open.org/wsn/b-2", NULL, NULL},
  61. {"timg", "http://www.onvif.org/ver20/imaging/wsdl", NULL, NULL},
  62. {"tls", "http://www.onvif.org/ver10/display/wsdl", NULL, NULL},
  63. {"tmd", "http://www.onvif.org/ver10/deviceIO/wsdl", NULL, NULL},
  64. {"tptz", "http://www.onvif.org/ver20/ptz/wsdl", NULL, NULL},
  65. {"trc", "http://www.onvif.org/ver10/recording/wsdl", NULL, NULL},
  66. {"trp", "http://www.onvif.org/ver10/replay/wsdl", NULL, NULL},
  67. {"trt", "http://www.onvif.org/ver10/media/wsdl", NULL, NULL},
  68. {"trv", "http://www.onvif.org/ver10/receiver/wsdl", NULL, NULL},
  69. {"tse", "http://www.onvif.org/ver10/search/wsdl", NULL, NULL},
  70. {NULL, NULL, NULL, NULL}
  71. };
  72. soap_set_namespaces(this, namespaces);
  73. }
  74. void PTZBindingProxy::destroy()
  75. { soap_destroy(this);
  76. soap_end(this);
  77. }
  78. void PTZBindingProxy::reset()
  79. { destroy();
  80. soap_done(this);
  81. soap_initialize(this);
  82. PTZBindingProxy_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
  83. }
  84. void PTZBindingProxy::soap_noheader()
  85. { this->header = NULL;
  86. }
  87. void PTZBindingProxy::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)
  88. { ::soap_header(this);
  89. this->header->wsse__Security = wsse__Security;
  90. this->header->wsa__MessageID = wsa__MessageID;
  91. this->header->wsa__RelatesTo = wsa__RelatesTo;
  92. this->header->wsa__From = wsa__From;
  93. this->header->wsa__ReplyTo = wsa__ReplyTo;
  94. this->header->wsa__FaultTo = wsa__FaultTo;
  95. this->header->wsa__To = wsa__To;
  96. this->header->wsa__Action = wsa__Action;
  97. this->header->wsdd__AppSequence = wsdd__AppSequence;
  98. this->header->wsa5__MessageID = wsa5__MessageID;
  99. this->header->wsa5__RelatesTo = wsa5__RelatesTo;
  100. this->header->wsa5__From = wsa5__From;
  101. this->header->wsa5__ReplyTo = wsa5__ReplyTo;
  102. this->header->wsa5__FaultTo = wsa5__FaultTo;
  103. this->header->wsa5__To = wsa5__To;
  104. this->header->wsa5__Action = wsa5__Action;
  105. this->header->chan__ChannelInstance = chan__ChannelInstance;
  106. }
  107. const SOAP_ENV__Header *PTZBindingProxy::soap_header()
  108. { return this->header;
  109. }
  110. const SOAP_ENV__Fault *PTZBindingProxy::soap_fault()
  111. { return this->fault;
  112. }
  113. const char *PTZBindingProxy::soap_fault_string()
  114. { return *soap_faultstring(this);
  115. }
  116. const char *PTZBindingProxy::soap_fault_detail()
  117. { return *soap_faultdetail(this);
  118. }
  119. int PTZBindingProxy::soap_close_socket()
  120. { return soap_closesock(this);
  121. }
  122. int PTZBindingProxy::soap_force_close_socket()
  123. { return soap_force_closesock(this);
  124. }
  125. void PTZBindingProxy::soap_print_fault(FILE *fd)
  126. { ::soap_print_fault(this, fd);
  127. }
  128. #ifndef WITH_LEAN
  129. #ifndef WITH_COMPAT
  130. void PTZBindingProxy::soap_stream_fault(std::ostream& os)
  131. { ::soap_stream_fault(this, os);
  132. }
  133. #endif
  134. char *PTZBindingProxy::soap_sprint_fault(char *buf, size_t len)
  135. { return ::soap_sprint_fault(this, buf, len);
  136. }
  137. #endif
  138. int PTZBindingProxy::GetServiceCapabilities(const char *endpoint, const char *soap_action, _tptz__GetServiceCapabilities *tptz__GetServiceCapabilities, _tptz__GetServiceCapabilitiesResponse *tptz__GetServiceCapabilitiesResponse)
  139. { struct soap *soap = this;
  140. struct __tptz__GetServiceCapabilities soap_tmp___tptz__GetServiceCapabilities;
  141. if (endpoint)
  142. soap_endpoint = endpoint;
  143. if (soap_action == NULL)
  144. soap_action = "http://www.onvif.org/ver20/ptz/wsdl/GetServiceCapabilities";
  145. soap_begin(soap);
  146. soap->encodingStyle = NULL;
  147. soap_tmp___tptz__GetServiceCapabilities.tptz__GetServiceCapabilities = tptz__GetServiceCapabilities;
  148. soap_set_version(soap, 2); /* SOAP1.2 */
  149. soap_serializeheader(soap);
  150. soap_serialize___tptz__GetServiceCapabilities(soap, &soap_tmp___tptz__GetServiceCapabilities);
  151. if (soap_begin_count(soap))
  152. return soap->error;
  153. if (soap->mode & SOAP_IO_LENGTH)
  154. { if (soap_envelope_begin_out(soap)
  155. || soap_putheader(soap)
  156. || soap_body_begin_out(soap)
  157. || soap_put___tptz__GetServiceCapabilities(soap, &soap_tmp___tptz__GetServiceCapabilities, "-tptz:GetServiceCapabilities", NULL)
  158. || soap_body_end_out(soap)
  159. || soap_envelope_end_out(soap))
  160. return soap->error;
  161. }
  162. if (soap_end_count(soap))
  163. return soap->error;
  164. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  165. || soap_envelope_begin_out(soap)
  166. || soap_putheader(soap)
  167. || soap_body_begin_out(soap)
  168. || soap_put___tptz__GetServiceCapabilities(soap, &soap_tmp___tptz__GetServiceCapabilities, "-tptz:GetServiceCapabilities", NULL)
  169. || soap_body_end_out(soap)
  170. || soap_envelope_end_out(soap)
  171. || soap_end_send(soap))
  172. return soap_closesock(soap);
  173. if (!tptz__GetServiceCapabilitiesResponse)
  174. return soap_closesock(soap);
  175. tptz__GetServiceCapabilitiesResponse->soap_default(soap);
  176. if (soap_begin_recv(soap)
  177. || soap_envelope_begin_in(soap)
  178. || soap_recv_header(soap)
  179. || soap_body_begin_in(soap))
  180. return soap_closesock(soap);
  181. tptz__GetServiceCapabilitiesResponse->soap_get(soap, "tptz:GetServiceCapabilitiesResponse", "");
  182. if (soap->error)
  183. return soap_recv_fault(soap, 0);
  184. if (soap_body_end_in(soap)
  185. || soap_envelope_end_in(soap)
  186. || soap_end_recv(soap))
  187. return soap_closesock(soap);
  188. return soap_closesock(soap);
  189. }
  190. int PTZBindingProxy::GetConfigurations(const char *endpoint, const char *soap_action, _tptz__GetConfigurations *tptz__GetConfigurations, _tptz__GetConfigurationsResponse *tptz__GetConfigurationsResponse)
  191. { struct soap *soap = this;
  192. struct __tptz__GetConfigurations soap_tmp___tptz__GetConfigurations;
  193. if (endpoint)
  194. soap_endpoint = endpoint;
  195. if (soap_action == NULL)
  196. soap_action = "http://www.onvif.org/ver20/ptz/wsdl/GetConfigurations";
  197. soap_begin(soap);
  198. soap->encodingStyle = NULL;
  199. soap_tmp___tptz__GetConfigurations.tptz__GetConfigurations = tptz__GetConfigurations;
  200. soap_set_version(soap, 2); /* SOAP1.2 */
  201. soap_serializeheader(soap);
  202. soap_serialize___tptz__GetConfigurations(soap, &soap_tmp___tptz__GetConfigurations);
  203. if (soap_begin_count(soap))
  204. return soap->error;
  205. if (soap->mode & SOAP_IO_LENGTH)
  206. { if (soap_envelope_begin_out(soap)
  207. || soap_putheader(soap)
  208. || soap_body_begin_out(soap)
  209. || soap_put___tptz__GetConfigurations(soap, &soap_tmp___tptz__GetConfigurations, "-tptz:GetConfigurations", NULL)
  210. || soap_body_end_out(soap)
  211. || soap_envelope_end_out(soap))
  212. return soap->error;
  213. }
  214. if (soap_end_count(soap))
  215. return soap->error;
  216. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  217. || soap_envelope_begin_out(soap)
  218. || soap_putheader(soap)
  219. || soap_body_begin_out(soap)
  220. || soap_put___tptz__GetConfigurations(soap, &soap_tmp___tptz__GetConfigurations, "-tptz:GetConfigurations", NULL)
  221. || soap_body_end_out(soap)
  222. || soap_envelope_end_out(soap)
  223. || soap_end_send(soap))
  224. return soap_closesock(soap);
  225. if (!tptz__GetConfigurationsResponse)
  226. return soap_closesock(soap);
  227. tptz__GetConfigurationsResponse->soap_default(soap);
  228. if (soap_begin_recv(soap)
  229. || soap_envelope_begin_in(soap)
  230. || soap_recv_header(soap)
  231. || soap_body_begin_in(soap))
  232. return soap_closesock(soap);
  233. tptz__GetConfigurationsResponse->soap_get(soap, "tptz:GetConfigurationsResponse", "");
  234. if (soap->error)
  235. return soap_recv_fault(soap, 0);
  236. if (soap_body_end_in(soap)
  237. || soap_envelope_end_in(soap)
  238. || soap_end_recv(soap))
  239. return soap_closesock(soap);
  240. return soap_closesock(soap);
  241. }
  242. int PTZBindingProxy::GetPresets(const char *endpoint, const char *soap_action, _tptz__GetPresets *tptz__GetPresets, _tptz__GetPresetsResponse *tptz__GetPresetsResponse)
  243. { struct soap *soap = this;
  244. struct __tptz__GetPresets soap_tmp___tptz__GetPresets;
  245. if (endpoint)
  246. soap_endpoint = endpoint;
  247. if (soap_action == NULL)
  248. soap_action = "http://www.onvif.org/ver20/ptz/wsdl/GetPresets";
  249. soap_begin(soap);
  250. soap->encodingStyle = NULL;
  251. soap_tmp___tptz__GetPresets.tptz__GetPresets = tptz__GetPresets;
  252. soap_set_version(soap, 2); /* SOAP1.2 */
  253. soap_serializeheader(soap);
  254. soap_serialize___tptz__GetPresets(soap, &soap_tmp___tptz__GetPresets);
  255. if (soap_begin_count(soap))
  256. return soap->error;
  257. if (soap->mode & SOAP_IO_LENGTH)
  258. { if (soap_envelope_begin_out(soap)
  259. || soap_putheader(soap)
  260. || soap_body_begin_out(soap)
  261. || soap_put___tptz__GetPresets(soap, &soap_tmp___tptz__GetPresets, "-tptz:GetPresets", NULL)
  262. || soap_body_end_out(soap)
  263. || soap_envelope_end_out(soap))
  264. return soap->error;
  265. }
  266. if (soap_end_count(soap))
  267. return soap->error;
  268. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  269. || soap_envelope_begin_out(soap)
  270. || soap_putheader(soap)
  271. || soap_body_begin_out(soap)
  272. || soap_put___tptz__GetPresets(soap, &soap_tmp___tptz__GetPresets, "-tptz:GetPresets", NULL)
  273. || soap_body_end_out(soap)
  274. || soap_envelope_end_out(soap)
  275. || soap_end_send(soap))
  276. return soap_closesock(soap);
  277. if (!tptz__GetPresetsResponse)
  278. return soap_closesock(soap);
  279. tptz__GetPresetsResponse->soap_default(soap);
  280. if (soap_begin_recv(soap)
  281. || soap_envelope_begin_in(soap)
  282. || soap_recv_header(soap)
  283. || soap_body_begin_in(soap))
  284. return soap_closesock(soap);
  285. tptz__GetPresetsResponse->soap_get(soap, "tptz:GetPresetsResponse", "");
  286. if (soap->error)
  287. return soap_recv_fault(soap, 0);
  288. if (soap_body_end_in(soap)
  289. || soap_envelope_end_in(soap)
  290. || soap_end_recv(soap))
  291. return soap_closesock(soap);
  292. return soap_closesock(soap);
  293. }
  294. int PTZBindingProxy::SetPreset(const char *endpoint, const char *soap_action, _tptz__SetPreset *tptz__SetPreset, _tptz__SetPresetResponse *tptz__SetPresetResponse)
  295. { struct soap *soap = this;
  296. struct __tptz__SetPreset soap_tmp___tptz__SetPreset;
  297. if (endpoint)
  298. soap_endpoint = endpoint;
  299. if (soap_action == NULL)
  300. soap_action = "http://www.onvif.org/ver20/ptz/wsdl/SetPreset";
  301. soap_begin(soap);
  302. soap->encodingStyle = NULL;
  303. soap_tmp___tptz__SetPreset.tptz__SetPreset = tptz__SetPreset;
  304. soap_set_version(soap, 2); /* SOAP1.2 */
  305. soap_serializeheader(soap);
  306. soap_serialize___tptz__SetPreset(soap, &soap_tmp___tptz__SetPreset);
  307. if (soap_begin_count(soap))
  308. return soap->error;
  309. if (soap->mode & SOAP_IO_LENGTH)
  310. { if (soap_envelope_begin_out(soap)
  311. || soap_putheader(soap)
  312. || soap_body_begin_out(soap)
  313. || soap_put___tptz__SetPreset(soap, &soap_tmp___tptz__SetPreset, "-tptz:SetPreset", NULL)
  314. || soap_body_end_out(soap)
  315. || soap_envelope_end_out(soap))
  316. return soap->error;
  317. }
  318. if (soap_end_count(soap))
  319. return soap->error;
  320. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  321. || soap_envelope_begin_out(soap)
  322. || soap_putheader(soap)
  323. || soap_body_begin_out(soap)
  324. || soap_put___tptz__SetPreset(soap, &soap_tmp___tptz__SetPreset, "-tptz:SetPreset", NULL)
  325. || soap_body_end_out(soap)
  326. || soap_envelope_end_out(soap)
  327. || soap_end_send(soap))
  328. return soap_closesock(soap);
  329. if (!tptz__SetPresetResponse)
  330. return soap_closesock(soap);
  331. tptz__SetPresetResponse->soap_default(soap);
  332. if (soap_begin_recv(soap)
  333. || soap_envelope_begin_in(soap)
  334. || soap_recv_header(soap)
  335. || soap_body_begin_in(soap))
  336. return soap_closesock(soap);
  337. tptz__SetPresetResponse->soap_get(soap, "tptz:SetPresetResponse", "");
  338. if (soap->error)
  339. return soap_recv_fault(soap, 0);
  340. if (soap_body_end_in(soap)
  341. || soap_envelope_end_in(soap)
  342. || soap_end_recv(soap))
  343. return soap_closesock(soap);
  344. return soap_closesock(soap);
  345. }
  346. int PTZBindingProxy::RemovePreset(const char *endpoint, const char *soap_action, _tptz__RemovePreset *tptz__RemovePreset, _tptz__RemovePresetResponse *tptz__RemovePresetResponse)
  347. { struct soap *soap = this;
  348. struct __tptz__RemovePreset soap_tmp___tptz__RemovePreset;
  349. if (endpoint)
  350. soap_endpoint = endpoint;
  351. if (soap_action == NULL)
  352. soap_action = "http://www.onvif.org/ver20/ptz/wsdl/RemovePreset";
  353. soap_begin(soap);
  354. soap->encodingStyle = NULL;
  355. soap_tmp___tptz__RemovePreset.tptz__RemovePreset = tptz__RemovePreset;
  356. soap_set_version(soap, 2); /* SOAP1.2 */
  357. soap_serializeheader(soap);
  358. soap_serialize___tptz__RemovePreset(soap, &soap_tmp___tptz__RemovePreset);
  359. if (soap_begin_count(soap))
  360. return soap->error;
  361. if (soap->mode & SOAP_IO_LENGTH)
  362. { if (soap_envelope_begin_out(soap)
  363. || soap_putheader(soap)
  364. || soap_body_begin_out(soap)
  365. || soap_put___tptz__RemovePreset(soap, &soap_tmp___tptz__RemovePreset, "-tptz:RemovePreset", NULL)
  366. || soap_body_end_out(soap)
  367. || soap_envelope_end_out(soap))
  368. return soap->error;
  369. }
  370. if (soap_end_count(soap))
  371. return soap->error;
  372. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  373. || soap_envelope_begin_out(soap)
  374. || soap_putheader(soap)
  375. || soap_body_begin_out(soap)
  376. || soap_put___tptz__RemovePreset(soap, &soap_tmp___tptz__RemovePreset, "-tptz:RemovePreset", NULL)
  377. || soap_body_end_out(soap)
  378. || soap_envelope_end_out(soap)
  379. || soap_end_send(soap))
  380. return soap_closesock(soap);
  381. if (!tptz__RemovePresetResponse)
  382. return soap_closesock(soap);
  383. tptz__RemovePresetResponse->soap_default(soap);
  384. if (soap_begin_recv(soap)
  385. || soap_envelope_begin_in(soap)
  386. || soap_recv_header(soap)
  387. || soap_body_begin_in(soap))
  388. return soap_closesock(soap);
  389. tptz__RemovePresetResponse->soap_get(soap, "tptz:RemovePresetResponse", "");
  390. if (soap->error)
  391. return soap_recv_fault(soap, 0);
  392. if (soap_body_end_in(soap)
  393. || soap_envelope_end_in(soap)
  394. || soap_end_recv(soap))
  395. return soap_closesock(soap);
  396. return soap_closesock(soap);
  397. }
  398. int PTZBindingProxy::GotoPreset(const char *endpoint, const char *soap_action, _tptz__GotoPreset *tptz__GotoPreset, _tptz__GotoPresetResponse *tptz__GotoPresetResponse)
  399. { struct soap *soap = this;
  400. struct __tptz__GotoPreset soap_tmp___tptz__GotoPreset;
  401. if (endpoint)
  402. soap_endpoint = endpoint;
  403. if (soap_action == NULL)
  404. soap_action = "http://www.onvif.org/ver20/ptz/wsdl/GotoPreset";
  405. soap_begin(soap);
  406. soap->encodingStyle = NULL;
  407. soap_tmp___tptz__GotoPreset.tptz__GotoPreset = tptz__GotoPreset;
  408. soap_set_version(soap, 2); /* SOAP1.2 */
  409. soap_serializeheader(soap);
  410. soap_serialize___tptz__GotoPreset(soap, &soap_tmp___tptz__GotoPreset);
  411. if (soap_begin_count(soap))
  412. return soap->error;
  413. if (soap->mode & SOAP_IO_LENGTH)
  414. { if (soap_envelope_begin_out(soap)
  415. || soap_putheader(soap)
  416. || soap_body_begin_out(soap)
  417. || soap_put___tptz__GotoPreset(soap, &soap_tmp___tptz__GotoPreset, "-tptz:GotoPreset", NULL)
  418. || soap_body_end_out(soap)
  419. || soap_envelope_end_out(soap))
  420. return soap->error;
  421. }
  422. if (soap_end_count(soap))
  423. return soap->error;
  424. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  425. || soap_envelope_begin_out(soap)
  426. || soap_putheader(soap)
  427. || soap_body_begin_out(soap)
  428. || soap_put___tptz__GotoPreset(soap, &soap_tmp___tptz__GotoPreset, "-tptz:GotoPreset", NULL)
  429. || soap_body_end_out(soap)
  430. || soap_envelope_end_out(soap)
  431. || soap_end_send(soap))
  432. return soap_closesock(soap);
  433. if (!tptz__GotoPresetResponse)
  434. return soap_closesock(soap);
  435. tptz__GotoPresetResponse->soap_default(soap);
  436. if (soap_begin_recv(soap)
  437. || soap_envelope_begin_in(soap)
  438. || soap_recv_header(soap)
  439. || soap_body_begin_in(soap))
  440. return soap_closesock(soap);
  441. tptz__GotoPresetResponse->soap_get(soap, "tptz:GotoPresetResponse", "");
  442. if (soap->error)
  443. return soap_recv_fault(soap, 0);
  444. if (soap_body_end_in(soap)
  445. || soap_envelope_end_in(soap)
  446. || soap_end_recv(soap))
  447. return soap_closesock(soap);
  448. return soap_closesock(soap);
  449. }
  450. int PTZBindingProxy::GetStatus(const char *endpoint, const char *soap_action, _tptz__GetStatus *tptz__GetStatus, _tptz__GetStatusResponse *tptz__GetStatusResponse)
  451. { struct soap *soap = this;
  452. struct __tptz__GetStatus soap_tmp___tptz__GetStatus;
  453. if (endpoint)
  454. soap_endpoint = endpoint;
  455. if (soap_action == NULL)
  456. soap_action = "http://www.onvif.org/ver20/ptz/wsdl/GetStatus";
  457. soap_begin(soap);
  458. soap->encodingStyle = NULL;
  459. soap_tmp___tptz__GetStatus.tptz__GetStatus = tptz__GetStatus;
  460. soap_set_version(soap, 2); /* SOAP1.2 */
  461. soap_serializeheader(soap);
  462. soap_serialize___tptz__GetStatus(soap, &soap_tmp___tptz__GetStatus);
  463. if (soap_begin_count(soap))
  464. return soap->error;
  465. if (soap->mode & SOAP_IO_LENGTH)
  466. { if (soap_envelope_begin_out(soap)
  467. || soap_putheader(soap)
  468. || soap_body_begin_out(soap)
  469. || soap_put___tptz__GetStatus(soap, &soap_tmp___tptz__GetStatus, "-tptz:GetStatus", NULL)
  470. || soap_body_end_out(soap)
  471. || soap_envelope_end_out(soap))
  472. return soap->error;
  473. }
  474. if (soap_end_count(soap))
  475. return soap->error;
  476. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  477. || soap_envelope_begin_out(soap)
  478. || soap_putheader(soap)
  479. || soap_body_begin_out(soap)
  480. || soap_put___tptz__GetStatus(soap, &soap_tmp___tptz__GetStatus, "-tptz:GetStatus", NULL)
  481. || soap_body_end_out(soap)
  482. || soap_envelope_end_out(soap)
  483. || soap_end_send(soap))
  484. return soap_closesock(soap);
  485. if (!tptz__GetStatusResponse)
  486. return soap_closesock(soap);
  487. tptz__GetStatusResponse->soap_default(soap);
  488. if (soap_begin_recv(soap)
  489. || soap_envelope_begin_in(soap)
  490. || soap_recv_header(soap)
  491. || soap_body_begin_in(soap))
  492. return soap_closesock(soap);
  493. tptz__GetStatusResponse->soap_get(soap, "tptz:GetStatusResponse", "");
  494. if (soap->error)
  495. return soap_recv_fault(soap, 0);
  496. if (soap_body_end_in(soap)
  497. || soap_envelope_end_in(soap)
  498. || soap_end_recv(soap))
  499. return soap_closesock(soap);
  500. return soap_closesock(soap);
  501. }
  502. int PTZBindingProxy::GetConfiguration(const char *endpoint, const char *soap_action, _tptz__GetConfiguration *tptz__GetConfiguration, _tptz__GetConfigurationResponse *tptz__GetConfigurationResponse)
  503. { struct soap *soap = this;
  504. struct __tptz__GetConfiguration soap_tmp___tptz__GetConfiguration;
  505. if (endpoint)
  506. soap_endpoint = endpoint;
  507. if (soap_action == NULL)
  508. soap_action = "http://www.onvif.org/ver20/ptz/wsdl/GetConfiguration";
  509. soap_begin(soap);
  510. soap->encodingStyle = NULL;
  511. soap_tmp___tptz__GetConfiguration.tptz__GetConfiguration = tptz__GetConfiguration;
  512. soap_set_version(soap, 2); /* SOAP1.2 */
  513. soap_serializeheader(soap);
  514. soap_serialize___tptz__GetConfiguration(soap, &soap_tmp___tptz__GetConfiguration);
  515. if (soap_begin_count(soap))
  516. return soap->error;
  517. if (soap->mode & SOAP_IO_LENGTH)
  518. { if (soap_envelope_begin_out(soap)
  519. || soap_putheader(soap)
  520. || soap_body_begin_out(soap)
  521. || soap_put___tptz__GetConfiguration(soap, &soap_tmp___tptz__GetConfiguration, "-tptz:GetConfiguration", NULL)
  522. || soap_body_end_out(soap)
  523. || soap_envelope_end_out(soap))
  524. return soap->error;
  525. }
  526. if (soap_end_count(soap))
  527. return soap->error;
  528. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  529. || soap_envelope_begin_out(soap)
  530. || soap_putheader(soap)
  531. || soap_body_begin_out(soap)
  532. || soap_put___tptz__GetConfiguration(soap, &soap_tmp___tptz__GetConfiguration, "-tptz:GetConfiguration", NULL)
  533. || soap_body_end_out(soap)
  534. || soap_envelope_end_out(soap)
  535. || soap_end_send(soap))
  536. return soap_closesock(soap);
  537. if (!tptz__GetConfigurationResponse)
  538. return soap_closesock(soap);
  539. tptz__GetConfigurationResponse->soap_default(soap);
  540. if (soap_begin_recv(soap)
  541. || soap_envelope_begin_in(soap)
  542. || soap_recv_header(soap)
  543. || soap_body_begin_in(soap))
  544. return soap_closesock(soap);
  545. tptz__GetConfigurationResponse->soap_get(soap, "tptz:GetConfigurationResponse", "");
  546. if (soap->error)
  547. return soap_recv_fault(soap, 0);
  548. if (soap_body_end_in(soap)
  549. || soap_envelope_end_in(soap)
  550. || soap_end_recv(soap))
  551. return soap_closesock(soap);
  552. return soap_closesock(soap);
  553. }
  554. int PTZBindingProxy::GetNodes(const char *endpoint, const char *soap_action, _tptz__GetNodes *tptz__GetNodes, _tptz__GetNodesResponse *tptz__GetNodesResponse)
  555. { struct soap *soap = this;
  556. struct __tptz__GetNodes soap_tmp___tptz__GetNodes;
  557. if (endpoint)
  558. soap_endpoint = endpoint;
  559. if (soap_action == NULL)
  560. soap_action = "http://www.onvif.org/ver20/ptz/wsdl/GetNodes";
  561. soap_begin(soap);
  562. soap->encodingStyle = NULL;
  563. soap_tmp___tptz__GetNodes.tptz__GetNodes = tptz__GetNodes;
  564. soap_set_version(soap, 2); /* SOAP1.2 */
  565. soap_serializeheader(soap);
  566. soap_serialize___tptz__GetNodes(soap, &soap_tmp___tptz__GetNodes);
  567. if (soap_begin_count(soap))
  568. return soap->error;
  569. if (soap->mode & SOAP_IO_LENGTH)
  570. { if (soap_envelope_begin_out(soap)
  571. || soap_putheader(soap)
  572. || soap_body_begin_out(soap)
  573. || soap_put___tptz__GetNodes(soap, &soap_tmp___tptz__GetNodes, "-tptz:GetNodes", NULL)
  574. || soap_body_end_out(soap)
  575. || soap_envelope_end_out(soap))
  576. return soap->error;
  577. }
  578. if (soap_end_count(soap))
  579. return soap->error;
  580. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  581. || soap_envelope_begin_out(soap)
  582. || soap_putheader(soap)
  583. || soap_body_begin_out(soap)
  584. || soap_put___tptz__GetNodes(soap, &soap_tmp___tptz__GetNodes, "-tptz:GetNodes", NULL)
  585. || soap_body_end_out(soap)
  586. || soap_envelope_end_out(soap)
  587. || soap_end_send(soap))
  588. return soap_closesock(soap);
  589. if (!tptz__GetNodesResponse)
  590. return soap_closesock(soap);
  591. tptz__GetNodesResponse->soap_default(soap);
  592. if (soap_begin_recv(soap)
  593. || soap_envelope_begin_in(soap)
  594. || soap_recv_header(soap)
  595. || soap_body_begin_in(soap))
  596. return soap_closesock(soap);
  597. tptz__GetNodesResponse->soap_get(soap, "tptz:GetNodesResponse", "");
  598. if (soap->error)
  599. return soap_recv_fault(soap, 0);
  600. if (soap_body_end_in(soap)
  601. || soap_envelope_end_in(soap)
  602. || soap_end_recv(soap))
  603. return soap_closesock(soap);
  604. return soap_closesock(soap);
  605. }
  606. int PTZBindingProxy::GetNode(const char *endpoint, const char *soap_action, _tptz__GetNode *tptz__GetNode, _tptz__GetNodeResponse *tptz__GetNodeResponse)
  607. { struct soap *soap = this;
  608. struct __tptz__GetNode soap_tmp___tptz__GetNode;
  609. if (endpoint)
  610. soap_endpoint = endpoint;
  611. if (soap_action == NULL)
  612. soap_action = "http://www.onvif.org/ver20/ptz/wsdl/GetNode";
  613. soap_begin(soap);
  614. soap->encodingStyle = NULL;
  615. soap_tmp___tptz__GetNode.tptz__GetNode = tptz__GetNode;
  616. soap_set_version(soap, 2); /* SOAP1.2 */
  617. soap_serializeheader(soap);
  618. soap_serialize___tptz__GetNode(soap, &soap_tmp___tptz__GetNode);
  619. if (soap_begin_count(soap))
  620. return soap->error;
  621. if (soap->mode & SOAP_IO_LENGTH)
  622. { if (soap_envelope_begin_out(soap)
  623. || soap_putheader(soap)
  624. || soap_body_begin_out(soap)
  625. || soap_put___tptz__GetNode(soap, &soap_tmp___tptz__GetNode, "-tptz:GetNode", NULL)
  626. || soap_body_end_out(soap)
  627. || soap_envelope_end_out(soap))
  628. return soap->error;
  629. }
  630. if (soap_end_count(soap))
  631. return soap->error;
  632. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  633. || soap_envelope_begin_out(soap)
  634. || soap_putheader(soap)
  635. || soap_body_begin_out(soap)
  636. || soap_put___tptz__GetNode(soap, &soap_tmp___tptz__GetNode, "-tptz:GetNode", NULL)
  637. || soap_body_end_out(soap)
  638. || soap_envelope_end_out(soap)
  639. || soap_end_send(soap))
  640. return soap_closesock(soap);
  641. if (!tptz__GetNodeResponse)
  642. return soap_closesock(soap);
  643. tptz__GetNodeResponse->soap_default(soap);
  644. if (soap_begin_recv(soap)
  645. || soap_envelope_begin_in(soap)
  646. || soap_recv_header(soap)
  647. || soap_body_begin_in(soap))
  648. return soap_closesock(soap);
  649. tptz__GetNodeResponse->soap_get(soap, "tptz:GetNodeResponse", "");
  650. if (soap->error)
  651. return soap_recv_fault(soap, 0);
  652. if (soap_body_end_in(soap)
  653. || soap_envelope_end_in(soap)
  654. || soap_end_recv(soap))
  655. return soap_closesock(soap);
  656. return soap_closesock(soap);
  657. }
  658. int PTZBindingProxy::SetConfiguration(const char *endpoint, const char *soap_action, _tptz__SetConfiguration *tptz__SetConfiguration, _tptz__SetConfigurationResponse *tptz__SetConfigurationResponse)
  659. { struct soap *soap = this;
  660. struct __tptz__SetConfiguration soap_tmp___tptz__SetConfiguration;
  661. if (endpoint)
  662. soap_endpoint = endpoint;
  663. if (soap_action == NULL)
  664. soap_action = "http://www.onvif.org/ver20/ptz/wsdl/SetConfiguration";
  665. soap_begin(soap);
  666. soap->encodingStyle = NULL;
  667. soap_tmp___tptz__SetConfiguration.tptz__SetConfiguration = tptz__SetConfiguration;
  668. soap_set_version(soap, 2); /* SOAP1.2 */
  669. soap_serializeheader(soap);
  670. soap_serialize___tptz__SetConfiguration(soap, &soap_tmp___tptz__SetConfiguration);
  671. if (soap_begin_count(soap))
  672. return soap->error;
  673. if (soap->mode & SOAP_IO_LENGTH)
  674. { if (soap_envelope_begin_out(soap)
  675. || soap_putheader(soap)
  676. || soap_body_begin_out(soap)
  677. || soap_put___tptz__SetConfiguration(soap, &soap_tmp___tptz__SetConfiguration, "-tptz:SetConfiguration", NULL)
  678. || soap_body_end_out(soap)
  679. || soap_envelope_end_out(soap))
  680. return soap->error;
  681. }
  682. if (soap_end_count(soap))
  683. return soap->error;
  684. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  685. || soap_envelope_begin_out(soap)
  686. || soap_putheader(soap)
  687. || soap_body_begin_out(soap)
  688. || soap_put___tptz__SetConfiguration(soap, &soap_tmp___tptz__SetConfiguration, "-tptz:SetConfiguration", NULL)
  689. || soap_body_end_out(soap)
  690. || soap_envelope_end_out(soap)
  691. || soap_end_send(soap))
  692. return soap_closesock(soap);
  693. if (!tptz__SetConfigurationResponse)
  694. return soap_closesock(soap);
  695. tptz__SetConfigurationResponse->soap_default(soap);
  696. if (soap_begin_recv(soap)
  697. || soap_envelope_begin_in(soap)
  698. || soap_recv_header(soap)
  699. || soap_body_begin_in(soap))
  700. return soap_closesock(soap);
  701. tptz__SetConfigurationResponse->soap_get(soap, "tptz:SetConfigurationResponse", "");
  702. if (soap->error)
  703. return soap_recv_fault(soap, 0);
  704. if (soap_body_end_in(soap)
  705. || soap_envelope_end_in(soap)
  706. || soap_end_recv(soap))
  707. return soap_closesock(soap);
  708. return soap_closesock(soap);
  709. }
  710. int PTZBindingProxy::GetConfigurationOptions(const char *endpoint, const char *soap_action, _tptz__GetConfigurationOptions *tptz__GetConfigurationOptions, _tptz__GetConfigurationOptionsResponse *tptz__GetConfigurationOptionsResponse)
  711. { struct soap *soap = this;
  712. struct __tptz__GetConfigurationOptions soap_tmp___tptz__GetConfigurationOptions;
  713. if (endpoint)
  714. soap_endpoint = endpoint;
  715. if (soap_action == NULL)
  716. soap_action = "http://www.onvif.org/ver20/ptz/wsdl/GetConfigurationOptions";
  717. soap_begin(soap);
  718. soap->encodingStyle = NULL;
  719. soap_tmp___tptz__GetConfigurationOptions.tptz__GetConfigurationOptions = tptz__GetConfigurationOptions;
  720. soap_set_version(soap, 2); /* SOAP1.2 */
  721. soap_serializeheader(soap);
  722. soap_serialize___tptz__GetConfigurationOptions(soap, &soap_tmp___tptz__GetConfigurationOptions);
  723. if (soap_begin_count(soap))
  724. return soap->error;
  725. if (soap->mode & SOAP_IO_LENGTH)
  726. { if (soap_envelope_begin_out(soap)
  727. || soap_putheader(soap)
  728. || soap_body_begin_out(soap)
  729. || soap_put___tptz__GetConfigurationOptions(soap, &soap_tmp___tptz__GetConfigurationOptions, "-tptz:GetConfigurationOptions", NULL)
  730. || soap_body_end_out(soap)
  731. || soap_envelope_end_out(soap))
  732. return soap->error;
  733. }
  734. if (soap_end_count(soap))
  735. return soap->error;
  736. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  737. || soap_envelope_begin_out(soap)
  738. || soap_putheader(soap)
  739. || soap_body_begin_out(soap)
  740. || soap_put___tptz__GetConfigurationOptions(soap, &soap_tmp___tptz__GetConfigurationOptions, "-tptz:GetConfigurationOptions", NULL)
  741. || soap_body_end_out(soap)
  742. || soap_envelope_end_out(soap)
  743. || soap_end_send(soap))
  744. return soap_closesock(soap);
  745. if (!tptz__GetConfigurationOptionsResponse)
  746. return soap_closesock(soap);
  747. tptz__GetConfigurationOptionsResponse->soap_default(soap);
  748. if (soap_begin_recv(soap)
  749. || soap_envelope_begin_in(soap)
  750. || soap_recv_header(soap)
  751. || soap_body_begin_in(soap))
  752. return soap_closesock(soap);
  753. tptz__GetConfigurationOptionsResponse->soap_get(soap, "tptz:GetConfigurationOptionsResponse", "");
  754. if (soap->error)
  755. return soap_recv_fault(soap, 0);
  756. if (soap_body_end_in(soap)
  757. || soap_envelope_end_in(soap)
  758. || soap_end_recv(soap))
  759. return soap_closesock(soap);
  760. return soap_closesock(soap);
  761. }
  762. int PTZBindingProxy::GotoHomePosition(const char *endpoint, const char *soap_action, _tptz__GotoHomePosition *tptz__GotoHomePosition, _tptz__GotoHomePositionResponse *tptz__GotoHomePositionResponse)
  763. { struct soap *soap = this;
  764. struct __tptz__GotoHomePosition soap_tmp___tptz__GotoHomePosition;
  765. if (endpoint)
  766. soap_endpoint = endpoint;
  767. if (soap_action == NULL)
  768. soap_action = "http://www.onvif.org/ver20/ptz/wsdl/GotoHomePosition";
  769. soap_begin(soap);
  770. soap->encodingStyle = NULL;
  771. soap_tmp___tptz__GotoHomePosition.tptz__GotoHomePosition = tptz__GotoHomePosition;
  772. soap_set_version(soap, 2); /* SOAP1.2 */
  773. soap_serializeheader(soap);
  774. soap_serialize___tptz__GotoHomePosition(soap, &soap_tmp___tptz__GotoHomePosition);
  775. if (soap_begin_count(soap))
  776. return soap->error;
  777. if (soap->mode & SOAP_IO_LENGTH)
  778. { if (soap_envelope_begin_out(soap)
  779. || soap_putheader(soap)
  780. || soap_body_begin_out(soap)
  781. || soap_put___tptz__GotoHomePosition(soap, &soap_tmp___tptz__GotoHomePosition, "-tptz:GotoHomePosition", NULL)
  782. || soap_body_end_out(soap)
  783. || soap_envelope_end_out(soap))
  784. return soap->error;
  785. }
  786. if (soap_end_count(soap))
  787. return soap->error;
  788. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  789. || soap_envelope_begin_out(soap)
  790. || soap_putheader(soap)
  791. || soap_body_begin_out(soap)
  792. || soap_put___tptz__GotoHomePosition(soap, &soap_tmp___tptz__GotoHomePosition, "-tptz:GotoHomePosition", NULL)
  793. || soap_body_end_out(soap)
  794. || soap_envelope_end_out(soap)
  795. || soap_end_send(soap))
  796. return soap_closesock(soap);
  797. if (!tptz__GotoHomePositionResponse)
  798. return soap_closesock(soap);
  799. tptz__GotoHomePositionResponse->soap_default(soap);
  800. if (soap_begin_recv(soap)
  801. || soap_envelope_begin_in(soap)
  802. || soap_recv_header(soap)
  803. || soap_body_begin_in(soap))
  804. return soap_closesock(soap);
  805. tptz__GotoHomePositionResponse->soap_get(soap, "tptz:GotoHomePositionResponse", "");
  806. if (soap->error)
  807. return soap_recv_fault(soap, 0);
  808. if (soap_body_end_in(soap)
  809. || soap_envelope_end_in(soap)
  810. || soap_end_recv(soap))
  811. return soap_closesock(soap);
  812. return soap_closesock(soap);
  813. }
  814. int PTZBindingProxy::SetHomePosition(const char *endpoint, const char *soap_action, _tptz__SetHomePosition *tptz__SetHomePosition, _tptz__SetHomePositionResponse *tptz__SetHomePositionResponse)
  815. { struct soap *soap = this;
  816. struct __tptz__SetHomePosition soap_tmp___tptz__SetHomePosition;
  817. if (endpoint)
  818. soap_endpoint = endpoint;
  819. if (soap_action == NULL)
  820. soap_action = "http://www.onvif.org/ver20/ptz/wsdl/SetHomePosition";
  821. soap_begin(soap);
  822. soap->encodingStyle = NULL;
  823. soap_tmp___tptz__SetHomePosition.tptz__SetHomePosition = tptz__SetHomePosition;
  824. soap_set_version(soap, 2); /* SOAP1.2 */
  825. soap_serializeheader(soap);
  826. soap_serialize___tptz__SetHomePosition(soap, &soap_tmp___tptz__SetHomePosition);
  827. if (soap_begin_count(soap))
  828. return soap->error;
  829. if (soap->mode & SOAP_IO_LENGTH)
  830. { if (soap_envelope_begin_out(soap)
  831. || soap_putheader(soap)
  832. || soap_body_begin_out(soap)
  833. || soap_put___tptz__SetHomePosition(soap, &soap_tmp___tptz__SetHomePosition, "-tptz:SetHomePosition", NULL)
  834. || soap_body_end_out(soap)
  835. || soap_envelope_end_out(soap))
  836. return soap->error;
  837. }
  838. if (soap_end_count(soap))
  839. return soap->error;
  840. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  841. || soap_envelope_begin_out(soap)
  842. || soap_putheader(soap)
  843. || soap_body_begin_out(soap)
  844. || soap_put___tptz__SetHomePosition(soap, &soap_tmp___tptz__SetHomePosition, "-tptz:SetHomePosition", NULL)
  845. || soap_body_end_out(soap)
  846. || soap_envelope_end_out(soap)
  847. || soap_end_send(soap))
  848. return soap_closesock(soap);
  849. if (!tptz__SetHomePositionResponse)
  850. return soap_closesock(soap);
  851. tptz__SetHomePositionResponse->soap_default(soap);
  852. if (soap_begin_recv(soap)
  853. || soap_envelope_begin_in(soap)
  854. || soap_recv_header(soap)
  855. || soap_body_begin_in(soap))
  856. return soap_closesock(soap);
  857. tptz__SetHomePositionResponse->soap_get(soap, "tptz:SetHomePositionResponse", "");
  858. if (soap->error)
  859. return soap_recv_fault(soap, 0);
  860. if (soap_body_end_in(soap)
  861. || soap_envelope_end_in(soap)
  862. || soap_end_recv(soap))
  863. return soap_closesock(soap);
  864. return soap_closesock(soap);
  865. }
  866. int PTZBindingProxy::ContinuousMove(const char *endpoint, const char *soap_action, _tptz__ContinuousMove *tptz__ContinuousMove, _tptz__ContinuousMoveResponse *tptz__ContinuousMoveResponse)
  867. { struct soap *soap = this;
  868. struct __tptz__ContinuousMove soap_tmp___tptz__ContinuousMove;
  869. if (endpoint)
  870. soap_endpoint = endpoint;
  871. if (soap_action == NULL)
  872. soap_action = "http://www.onvif.org/ver20/ptz/wsdl/ContinuousMove";
  873. soap_begin(soap);
  874. soap->encodingStyle = NULL;
  875. soap_tmp___tptz__ContinuousMove.tptz__ContinuousMove = tptz__ContinuousMove;
  876. soap_set_version(soap, 2); /* SOAP1.2 */
  877. soap_serializeheader(soap);
  878. soap_serialize___tptz__ContinuousMove(soap, &soap_tmp___tptz__ContinuousMove);
  879. if (soap_begin_count(soap))
  880. return soap->error;
  881. if (soap->mode & SOAP_IO_LENGTH)
  882. { if (soap_envelope_begin_out(soap)
  883. || soap_putheader(soap)
  884. || soap_body_begin_out(soap)
  885. || soap_put___tptz__ContinuousMove(soap, &soap_tmp___tptz__ContinuousMove, "-tptz:ContinuousMove", NULL)
  886. || soap_body_end_out(soap)
  887. || soap_envelope_end_out(soap))
  888. return soap->error;
  889. }
  890. if (soap_end_count(soap))
  891. return soap->error;
  892. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  893. || soap_envelope_begin_out(soap)
  894. || soap_putheader(soap)
  895. || soap_body_begin_out(soap)
  896. || soap_put___tptz__ContinuousMove(soap, &soap_tmp___tptz__ContinuousMove, "-tptz:ContinuousMove", NULL)
  897. || soap_body_end_out(soap)
  898. || soap_envelope_end_out(soap)
  899. || soap_end_send(soap))
  900. return soap_closesock(soap);
  901. if (!tptz__ContinuousMoveResponse)
  902. return soap_closesock(soap);
  903. tptz__ContinuousMoveResponse->soap_default(soap);
  904. if (soap_begin_recv(soap)
  905. || soap_envelope_begin_in(soap)
  906. || soap_recv_header(soap)
  907. || soap_body_begin_in(soap))
  908. return soap_closesock(soap);
  909. tptz__ContinuousMoveResponse->soap_get(soap, "tptz:ContinuousMoveResponse", "");
  910. if (soap->error)
  911. return soap_recv_fault(soap, 0);
  912. if (soap_body_end_in(soap)
  913. || soap_envelope_end_in(soap)
  914. || soap_end_recv(soap))
  915. return soap_closesock(soap);
  916. return soap_closesock(soap);
  917. }
  918. int PTZBindingProxy::RelativeMove(const char *endpoint, const char *soap_action, _tptz__RelativeMove *tptz__RelativeMove, _tptz__RelativeMoveResponse *tptz__RelativeMoveResponse)
  919. { struct soap *soap = this;
  920. struct __tptz__RelativeMove soap_tmp___tptz__RelativeMove;
  921. if (endpoint)
  922. soap_endpoint = endpoint;
  923. if (soap_action == NULL)
  924. soap_action = "http://www.onvif.org/ver20/ptz/wsdl/RelativeMove";
  925. soap_begin(soap);
  926. soap->encodingStyle = NULL;
  927. soap_tmp___tptz__RelativeMove.tptz__RelativeMove = tptz__RelativeMove;
  928. soap_set_version(soap, 2); /* SOAP1.2 */
  929. soap_serializeheader(soap);
  930. soap_serialize___tptz__RelativeMove(soap, &soap_tmp___tptz__RelativeMove);
  931. if (soap_begin_count(soap))
  932. return soap->error;
  933. if (soap->mode & SOAP_IO_LENGTH)
  934. { if (soap_envelope_begin_out(soap)
  935. || soap_putheader(soap)
  936. || soap_body_begin_out(soap)
  937. || soap_put___tptz__RelativeMove(soap, &soap_tmp___tptz__RelativeMove, "-tptz:RelativeMove", NULL)
  938. || soap_body_end_out(soap)
  939. || soap_envelope_end_out(soap))
  940. return soap->error;
  941. }
  942. if (soap_end_count(soap))
  943. return soap->error;
  944. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  945. || soap_envelope_begin_out(soap)
  946. || soap_putheader(soap)
  947. || soap_body_begin_out(soap)
  948. || soap_put___tptz__RelativeMove(soap, &soap_tmp___tptz__RelativeMove, "-tptz:RelativeMove", NULL)
  949. || soap_body_end_out(soap)
  950. || soap_envelope_end_out(soap)
  951. || soap_end_send(soap))
  952. return soap_closesock(soap);
  953. if (!tptz__RelativeMoveResponse)
  954. return soap_closesock(soap);
  955. tptz__RelativeMoveResponse->soap_default(soap);
  956. if (soap_begin_recv(soap)
  957. || soap_envelope_begin_in(soap)
  958. || soap_recv_header(soap)
  959. || soap_body_begin_in(soap))
  960. return soap_closesock(soap);
  961. tptz__RelativeMoveResponse->soap_get(soap, "tptz:RelativeMoveResponse", "");
  962. if (soap->error)
  963. return soap_recv_fault(soap, 0);
  964. if (soap_body_end_in(soap)
  965. || soap_envelope_end_in(soap)
  966. || soap_end_recv(soap))
  967. return soap_closesock(soap);
  968. return soap_closesock(soap);
  969. }
  970. int PTZBindingProxy::SendAuxiliaryCommand(const char *endpoint, const char *soap_action, _tptz__SendAuxiliaryCommand *tptz__SendAuxiliaryCommand, _tptz__SendAuxiliaryCommandResponse *tptz__SendAuxiliaryCommandResponse)
  971. { struct soap *soap = this;
  972. struct __tptz__SendAuxiliaryCommand soap_tmp___tptz__SendAuxiliaryCommand;
  973. if (endpoint)
  974. soap_endpoint = endpoint;
  975. if (soap_action == NULL)
  976. soap_action = "http://www.onvif.org/ver20/ptz/wsdl/SendAuxiliaryCommand";
  977. soap_begin(soap);
  978. soap->encodingStyle = NULL;
  979. soap_tmp___tptz__SendAuxiliaryCommand.tptz__SendAuxiliaryCommand = tptz__SendAuxiliaryCommand;
  980. soap_set_version(soap, 2); /* SOAP1.2 */
  981. soap_serializeheader(soap);
  982. soap_serialize___tptz__SendAuxiliaryCommand(soap, &soap_tmp___tptz__SendAuxiliaryCommand);
  983. if (soap_begin_count(soap))
  984. return soap->error;
  985. if (soap->mode & SOAP_IO_LENGTH)
  986. { if (soap_envelope_begin_out(soap)
  987. || soap_putheader(soap)
  988. || soap_body_begin_out(soap)
  989. || soap_put___tptz__SendAuxiliaryCommand(soap, &soap_tmp___tptz__SendAuxiliaryCommand, "-tptz:SendAuxiliaryCommand", NULL)
  990. || soap_body_end_out(soap)
  991. || soap_envelope_end_out(soap))
  992. return soap->error;
  993. }
  994. if (soap_end_count(soap))
  995. return soap->error;
  996. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  997. || soap_envelope_begin_out(soap)
  998. || soap_putheader(soap)
  999. || soap_body_begin_out(soap)
  1000. || soap_put___tptz__SendAuxiliaryCommand(soap, &soap_tmp___tptz__SendAuxiliaryCommand, "-tptz:SendAuxiliaryCommand", NULL)
  1001. || soap_body_end_out(soap)
  1002. || soap_envelope_end_out(soap)
  1003. || soap_end_send(soap))
  1004. return soap_closesock(soap);
  1005. if (!tptz__SendAuxiliaryCommandResponse)
  1006. return soap_closesock(soap);
  1007. tptz__SendAuxiliaryCommandResponse->soap_default(soap);
  1008. if (soap_begin_recv(soap)
  1009. || soap_envelope_begin_in(soap)
  1010. || soap_recv_header(soap)
  1011. || soap_body_begin_in(soap))
  1012. return soap_closesock(soap);
  1013. tptz__SendAuxiliaryCommandResponse->soap_get(soap, "tptz:SendAuxiliaryCommandResponse", "");
  1014. if (soap->error)
  1015. return soap_recv_fault(soap, 0);
  1016. if (soap_body_end_in(soap)
  1017. || soap_envelope_end_in(soap)
  1018. || soap_end_recv(soap))
  1019. return soap_closesock(soap);
  1020. return soap_closesock(soap);
  1021. }
  1022. int PTZBindingProxy::AbsoluteMove(const char *endpoint, const char *soap_action, _tptz__AbsoluteMove *tptz__AbsoluteMove, _tptz__AbsoluteMoveResponse *tptz__AbsoluteMoveResponse)
  1023. { struct soap *soap = this;
  1024. struct __tptz__AbsoluteMove soap_tmp___tptz__AbsoluteMove;
  1025. if (endpoint)
  1026. soap_endpoint = endpoint;
  1027. if (soap_action == NULL)
  1028. soap_action = "http://www.onvif.org/ver20/ptz/wsdl/AbsoluteMove";
  1029. soap_begin(soap);
  1030. soap->encodingStyle = NULL;
  1031. soap_tmp___tptz__AbsoluteMove.tptz__AbsoluteMove = tptz__AbsoluteMove;
  1032. soap_set_version(soap, 2); /* SOAP1.2 */
  1033. soap_serializeheader(soap);
  1034. soap_serialize___tptz__AbsoluteMove(soap, &soap_tmp___tptz__AbsoluteMove);
  1035. if (soap_begin_count(soap))
  1036. return soap->error;
  1037. if (soap->mode & SOAP_IO_LENGTH)
  1038. { if (soap_envelope_begin_out(soap)
  1039. || soap_putheader(soap)
  1040. || soap_body_begin_out(soap)
  1041. || soap_put___tptz__AbsoluteMove(soap, &soap_tmp___tptz__AbsoluteMove, "-tptz:AbsoluteMove", NULL)
  1042. || soap_body_end_out(soap)
  1043. || soap_envelope_end_out(soap))
  1044. return soap->error;
  1045. }
  1046. if (soap_end_count(soap))
  1047. return soap->error;
  1048. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  1049. || soap_envelope_begin_out(soap)
  1050. || soap_putheader(soap)
  1051. || soap_body_begin_out(soap)
  1052. || soap_put___tptz__AbsoluteMove(soap, &soap_tmp___tptz__AbsoluteMove, "-tptz:AbsoluteMove", NULL)
  1053. || soap_body_end_out(soap)
  1054. || soap_envelope_end_out(soap)
  1055. || soap_end_send(soap))
  1056. return soap_closesock(soap);
  1057. if (!tptz__AbsoluteMoveResponse)
  1058. return soap_closesock(soap);
  1059. tptz__AbsoluteMoveResponse->soap_default(soap);
  1060. if (soap_begin_recv(soap)
  1061. || soap_envelope_begin_in(soap)
  1062. || soap_recv_header(soap)
  1063. || soap_body_begin_in(soap))
  1064. return soap_closesock(soap);
  1065. tptz__AbsoluteMoveResponse->soap_get(soap, "tptz:AbsoluteMoveResponse", "");
  1066. if (soap->error)
  1067. return soap_recv_fault(soap, 0);
  1068. if (soap_body_end_in(soap)
  1069. || soap_envelope_end_in(soap)
  1070. || soap_end_recv(soap))
  1071. return soap_closesock(soap);
  1072. return soap_closesock(soap);
  1073. }
  1074. int PTZBindingProxy::Stop(const char *endpoint, const char *soap_action, _tptz__Stop *tptz__Stop, _tptz__StopResponse *tptz__StopResponse)
  1075. { struct soap *soap = this;
  1076. struct __tptz__Stop soap_tmp___tptz__Stop;
  1077. if (endpoint)
  1078. soap_endpoint = endpoint;
  1079. if (soap_action == NULL)
  1080. soap_action = "http://www.onvif.org/ver20/ptz/wsdl/Stop";
  1081. soap_begin(soap);
  1082. soap->encodingStyle = NULL;
  1083. soap_tmp___tptz__Stop.tptz__Stop = tptz__Stop;
  1084. soap_set_version(soap, 2); /* SOAP1.2 */
  1085. soap_serializeheader(soap);
  1086. soap_serialize___tptz__Stop(soap, &soap_tmp___tptz__Stop);
  1087. if (soap_begin_count(soap))
  1088. return soap->error;
  1089. if (soap->mode & SOAP_IO_LENGTH)
  1090. { if (soap_envelope_begin_out(soap)
  1091. || soap_putheader(soap)
  1092. || soap_body_begin_out(soap)
  1093. || soap_put___tptz__Stop(soap, &soap_tmp___tptz__Stop, "-tptz:Stop", NULL)
  1094. || soap_body_end_out(soap)
  1095. || soap_envelope_end_out(soap))
  1096. return soap->error;
  1097. }
  1098. if (soap_end_count(soap))
  1099. return soap->error;
  1100. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  1101. || soap_envelope_begin_out(soap)
  1102. || soap_putheader(soap)
  1103. || soap_body_begin_out(soap)
  1104. || soap_put___tptz__Stop(soap, &soap_tmp___tptz__Stop, "-tptz:Stop", NULL)
  1105. || soap_body_end_out(soap)
  1106. || soap_envelope_end_out(soap)
  1107. || soap_end_send(soap))
  1108. return soap_closesock(soap);
  1109. if (!tptz__StopResponse)
  1110. return soap_closesock(soap);
  1111. tptz__StopResponse->soap_default(soap);
  1112. if (soap_begin_recv(soap)
  1113. || soap_envelope_begin_in(soap)
  1114. || soap_recv_header(soap)
  1115. || soap_body_begin_in(soap))
  1116. return soap_closesock(soap);
  1117. tptz__StopResponse->soap_get(soap, "tptz:StopResponse", "");
  1118. if (soap->error)
  1119. return soap_recv_fault(soap, 0);
  1120. if (soap_body_end_in(soap)
  1121. || soap_envelope_end_in(soap)
  1122. || soap_end_recv(soap))
  1123. return soap_closesock(soap);
  1124. return soap_closesock(soap);
  1125. }
  1126. int PTZBindingProxy::GetPresetTours(const char *endpoint, const char *soap_action, _tptz__GetPresetTours *tptz__GetPresetTours, _tptz__GetPresetToursResponse *tptz__GetPresetToursResponse)
  1127. { struct soap *soap = this;
  1128. struct __tptz__GetPresetTours soap_tmp___tptz__GetPresetTours;
  1129. if (endpoint)
  1130. soap_endpoint = endpoint;
  1131. if (soap_action == NULL)
  1132. soap_action = "http://www.onvif.org/ver20/ptz/wsdl/GetPresetTours";
  1133. soap_begin(soap);
  1134. soap->encodingStyle = NULL;
  1135. soap_tmp___tptz__GetPresetTours.tptz__GetPresetTours = tptz__GetPresetTours;
  1136. soap_set_version(soap, 2); /* SOAP1.2 */
  1137. soap_serializeheader(soap);
  1138. soap_serialize___tptz__GetPresetTours(soap, &soap_tmp___tptz__GetPresetTours);
  1139. if (soap_begin_count(soap))
  1140. return soap->error;
  1141. if (soap->mode & SOAP_IO_LENGTH)
  1142. { if (soap_envelope_begin_out(soap)
  1143. || soap_putheader(soap)
  1144. || soap_body_begin_out(soap)
  1145. || soap_put___tptz__GetPresetTours(soap, &soap_tmp___tptz__GetPresetTours, "-tptz:GetPresetTours", NULL)
  1146. || soap_body_end_out(soap)
  1147. || soap_envelope_end_out(soap))
  1148. return soap->error;
  1149. }
  1150. if (soap_end_count(soap))
  1151. return soap->error;
  1152. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  1153. || soap_envelope_begin_out(soap)
  1154. || soap_putheader(soap)
  1155. || soap_body_begin_out(soap)
  1156. || soap_put___tptz__GetPresetTours(soap, &soap_tmp___tptz__GetPresetTours, "-tptz:GetPresetTours", NULL)
  1157. || soap_body_end_out(soap)
  1158. || soap_envelope_end_out(soap)
  1159. || soap_end_send(soap))
  1160. return soap_closesock(soap);
  1161. if (!tptz__GetPresetToursResponse)
  1162. return soap_closesock(soap);
  1163. tptz__GetPresetToursResponse->soap_default(soap);
  1164. if (soap_begin_recv(soap)
  1165. || soap_envelope_begin_in(soap)
  1166. || soap_recv_header(soap)
  1167. || soap_body_begin_in(soap))
  1168. return soap_closesock(soap);
  1169. tptz__GetPresetToursResponse->soap_get(soap, "tptz:GetPresetToursResponse", "");
  1170. if (soap->error)
  1171. return soap_recv_fault(soap, 0);
  1172. if (soap_body_end_in(soap)
  1173. || soap_envelope_end_in(soap)
  1174. || soap_end_recv(soap))
  1175. return soap_closesock(soap);
  1176. return soap_closesock(soap);
  1177. }
  1178. int PTZBindingProxy::GetPresetTour(const char *endpoint, const char *soap_action, _tptz__GetPresetTour *tptz__GetPresetTour, _tptz__GetPresetTourResponse *tptz__GetPresetTourResponse)
  1179. { struct soap *soap = this;
  1180. struct __tptz__GetPresetTour soap_tmp___tptz__GetPresetTour;
  1181. if (endpoint)
  1182. soap_endpoint = endpoint;
  1183. if (soap_action == NULL)
  1184. soap_action = "http://www.onvif.org/ver20/ptz/wsdl/GetPresetTour";
  1185. soap_begin(soap);
  1186. soap->encodingStyle = NULL;
  1187. soap_tmp___tptz__GetPresetTour.tptz__GetPresetTour = tptz__GetPresetTour;
  1188. soap_set_version(soap, 2); /* SOAP1.2 */
  1189. soap_serializeheader(soap);
  1190. soap_serialize___tptz__GetPresetTour(soap, &soap_tmp___tptz__GetPresetTour);
  1191. if (soap_begin_count(soap))
  1192. return soap->error;
  1193. if (soap->mode & SOAP_IO_LENGTH)
  1194. { if (soap_envelope_begin_out(soap)
  1195. || soap_putheader(soap)
  1196. || soap_body_begin_out(soap)
  1197. || soap_put___tptz__GetPresetTour(soap, &soap_tmp___tptz__GetPresetTour, "-tptz:GetPresetTour", NULL)
  1198. || soap_body_end_out(soap)
  1199. || soap_envelope_end_out(soap))
  1200. return soap->error;
  1201. }
  1202. if (soap_end_count(soap))
  1203. return soap->error;
  1204. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  1205. || soap_envelope_begin_out(soap)
  1206. || soap_putheader(soap)
  1207. || soap_body_begin_out(soap)
  1208. || soap_put___tptz__GetPresetTour(soap, &soap_tmp___tptz__GetPresetTour, "-tptz:GetPresetTour", NULL)
  1209. || soap_body_end_out(soap)
  1210. || soap_envelope_end_out(soap)
  1211. || soap_end_send(soap))
  1212. return soap_closesock(soap);
  1213. if (!tptz__GetPresetTourResponse)
  1214. return soap_closesock(soap);
  1215. tptz__GetPresetTourResponse->soap_default(soap);
  1216. if (soap_begin_recv(soap)
  1217. || soap_envelope_begin_in(soap)
  1218. || soap_recv_header(soap)
  1219. || soap_body_begin_in(soap))
  1220. return soap_closesock(soap);
  1221. tptz__GetPresetTourResponse->soap_get(soap, "tptz:GetPresetTourResponse", "");
  1222. if (soap->error)
  1223. return soap_recv_fault(soap, 0);
  1224. if (soap_body_end_in(soap)
  1225. || soap_envelope_end_in(soap)
  1226. || soap_end_recv(soap))
  1227. return soap_closesock(soap);
  1228. return soap_closesock(soap);
  1229. }
  1230. int PTZBindingProxy::GetPresetTourOptions(const char *endpoint, const char *soap_action, _tptz__GetPresetTourOptions *tptz__GetPresetTourOptions, _tptz__GetPresetTourOptionsResponse *tptz__GetPresetTourOptionsResponse)
  1231. { struct soap *soap = this;
  1232. struct __tptz__GetPresetTourOptions soap_tmp___tptz__GetPresetTourOptions;
  1233. if (endpoint)
  1234. soap_endpoint = endpoint;
  1235. if (soap_action == NULL)
  1236. soap_action = "http://www.onvif.org/ver20/ptz/wsdl/GetPresetTourOptions";
  1237. soap_begin(soap);
  1238. soap->encodingStyle = NULL;
  1239. soap_tmp___tptz__GetPresetTourOptions.tptz__GetPresetTourOptions = tptz__GetPresetTourOptions;
  1240. soap_set_version(soap, 2); /* SOAP1.2 */
  1241. soap_serializeheader(soap);
  1242. soap_serialize___tptz__GetPresetTourOptions(soap, &soap_tmp___tptz__GetPresetTourOptions);
  1243. if (soap_begin_count(soap))
  1244. return soap->error;
  1245. if (soap->mode & SOAP_IO_LENGTH)
  1246. { if (soap_envelope_begin_out(soap)
  1247. || soap_putheader(soap)
  1248. || soap_body_begin_out(soap)
  1249. || soap_put___tptz__GetPresetTourOptions(soap, &soap_tmp___tptz__GetPresetTourOptions, "-tptz:GetPresetTourOptions", NULL)
  1250. || soap_body_end_out(soap)
  1251. || soap_envelope_end_out(soap))
  1252. return soap->error;
  1253. }
  1254. if (soap_end_count(soap))
  1255. return soap->error;
  1256. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  1257. || soap_envelope_begin_out(soap)
  1258. || soap_putheader(soap)
  1259. || soap_body_begin_out(soap)
  1260. || soap_put___tptz__GetPresetTourOptions(soap, &soap_tmp___tptz__GetPresetTourOptions, "-tptz:GetPresetTourOptions", NULL)
  1261. || soap_body_end_out(soap)
  1262. || soap_envelope_end_out(soap)
  1263. || soap_end_send(soap))
  1264. return soap_closesock(soap);
  1265. if (!tptz__GetPresetTourOptionsResponse)
  1266. return soap_closesock(soap);
  1267. tptz__GetPresetTourOptionsResponse->soap_default(soap);
  1268. if (soap_begin_recv(soap)
  1269. || soap_envelope_begin_in(soap)
  1270. || soap_recv_header(soap)
  1271. || soap_body_begin_in(soap))
  1272. return soap_closesock(soap);
  1273. tptz__GetPresetTourOptionsResponse->soap_get(soap, "tptz:GetPresetTourOptionsResponse", "");
  1274. if (soap->error)
  1275. return soap_recv_fault(soap, 0);
  1276. if (soap_body_end_in(soap)
  1277. || soap_envelope_end_in(soap)
  1278. || soap_end_recv(soap))
  1279. return soap_closesock(soap);
  1280. return soap_closesock(soap);
  1281. }
  1282. int PTZBindingProxy::CreatePresetTour(const char *endpoint, const char *soap_action, _tptz__CreatePresetTour *tptz__CreatePresetTour, _tptz__CreatePresetTourResponse *tptz__CreatePresetTourResponse)
  1283. { struct soap *soap = this;
  1284. struct __tptz__CreatePresetTour soap_tmp___tptz__CreatePresetTour;
  1285. if (endpoint)
  1286. soap_endpoint = endpoint;
  1287. if (soap_action == NULL)
  1288. soap_action = "http://www.onvif.org/ver20/ptz/wsdl/CreatePresetTour";
  1289. soap_begin(soap);
  1290. soap->encodingStyle = NULL;
  1291. soap_tmp___tptz__CreatePresetTour.tptz__CreatePresetTour = tptz__CreatePresetTour;
  1292. soap_set_version(soap, 2); /* SOAP1.2 */
  1293. soap_serializeheader(soap);
  1294. soap_serialize___tptz__CreatePresetTour(soap, &soap_tmp___tptz__CreatePresetTour);
  1295. if (soap_begin_count(soap))
  1296. return soap->error;
  1297. if (soap->mode & SOAP_IO_LENGTH)
  1298. { if (soap_envelope_begin_out(soap)
  1299. || soap_putheader(soap)
  1300. || soap_body_begin_out(soap)
  1301. || soap_put___tptz__CreatePresetTour(soap, &soap_tmp___tptz__CreatePresetTour, "-tptz:CreatePresetTour", NULL)
  1302. || soap_body_end_out(soap)
  1303. || soap_envelope_end_out(soap))
  1304. return soap->error;
  1305. }
  1306. if (soap_end_count(soap))
  1307. return soap->error;
  1308. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  1309. || soap_envelope_begin_out(soap)
  1310. || soap_putheader(soap)
  1311. || soap_body_begin_out(soap)
  1312. || soap_put___tptz__CreatePresetTour(soap, &soap_tmp___tptz__CreatePresetTour, "-tptz:CreatePresetTour", NULL)
  1313. || soap_body_end_out(soap)
  1314. || soap_envelope_end_out(soap)
  1315. || soap_end_send(soap))
  1316. return soap_closesock(soap);
  1317. if (!tptz__CreatePresetTourResponse)
  1318. return soap_closesock(soap);
  1319. tptz__CreatePresetTourResponse->soap_default(soap);
  1320. if (soap_begin_recv(soap)
  1321. || soap_envelope_begin_in(soap)
  1322. || soap_recv_header(soap)
  1323. || soap_body_begin_in(soap))
  1324. return soap_closesock(soap);
  1325. tptz__CreatePresetTourResponse->soap_get(soap, "tptz:CreatePresetTourResponse", "");
  1326. if (soap->error)
  1327. return soap_recv_fault(soap, 0);
  1328. if (soap_body_end_in(soap)
  1329. || soap_envelope_end_in(soap)
  1330. || soap_end_recv(soap))
  1331. return soap_closesock(soap);
  1332. return soap_closesock(soap);
  1333. }
  1334. int PTZBindingProxy::ModifyPresetTour(const char *endpoint, const char *soap_action, _tptz__ModifyPresetTour *tptz__ModifyPresetTour, _tptz__ModifyPresetTourResponse *tptz__ModifyPresetTourResponse)
  1335. { struct soap *soap = this;
  1336. struct __tptz__ModifyPresetTour soap_tmp___tptz__ModifyPresetTour;
  1337. if (endpoint)
  1338. soap_endpoint = endpoint;
  1339. if (soap_action == NULL)
  1340. soap_action = "http://www.onvif.org/ver20/ptz/wsdl/ModifyPresetTour";
  1341. soap_begin(soap);
  1342. soap->encodingStyle = NULL;
  1343. soap_tmp___tptz__ModifyPresetTour.tptz__ModifyPresetTour = tptz__ModifyPresetTour;
  1344. soap_set_version(soap, 2); /* SOAP1.2 */
  1345. soap_serializeheader(soap);
  1346. soap_serialize___tptz__ModifyPresetTour(soap, &soap_tmp___tptz__ModifyPresetTour);
  1347. if (soap_begin_count(soap))
  1348. return soap->error;
  1349. if (soap->mode & SOAP_IO_LENGTH)
  1350. { if (soap_envelope_begin_out(soap)
  1351. || soap_putheader(soap)
  1352. || soap_body_begin_out(soap)
  1353. || soap_put___tptz__ModifyPresetTour(soap, &soap_tmp___tptz__ModifyPresetTour, "-tptz:ModifyPresetTour", NULL)
  1354. || soap_body_end_out(soap)
  1355. || soap_envelope_end_out(soap))
  1356. return soap->error;
  1357. }
  1358. if (soap_end_count(soap))
  1359. return soap->error;
  1360. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  1361. || soap_envelope_begin_out(soap)
  1362. || soap_putheader(soap)
  1363. || soap_body_begin_out(soap)
  1364. || soap_put___tptz__ModifyPresetTour(soap, &soap_tmp___tptz__ModifyPresetTour, "-tptz:ModifyPresetTour", NULL)
  1365. || soap_body_end_out(soap)
  1366. || soap_envelope_end_out(soap)
  1367. || soap_end_send(soap))
  1368. return soap_closesock(soap);
  1369. if (!tptz__ModifyPresetTourResponse)
  1370. return soap_closesock(soap);
  1371. tptz__ModifyPresetTourResponse->soap_default(soap);
  1372. if (soap_begin_recv(soap)
  1373. || soap_envelope_begin_in(soap)
  1374. || soap_recv_header(soap)
  1375. || soap_body_begin_in(soap))
  1376. return soap_closesock(soap);
  1377. tptz__ModifyPresetTourResponse->soap_get(soap, "tptz:ModifyPresetTourResponse", "");
  1378. if (soap->error)
  1379. return soap_recv_fault(soap, 0);
  1380. if (soap_body_end_in(soap)
  1381. || soap_envelope_end_in(soap)
  1382. || soap_end_recv(soap))
  1383. return soap_closesock(soap);
  1384. return soap_closesock(soap);
  1385. }
  1386. int PTZBindingProxy::OperatePresetTour(const char *endpoint, const char *soap_action, _tptz__OperatePresetTour *tptz__OperatePresetTour, _tptz__OperatePresetTourResponse *tptz__OperatePresetTourResponse)
  1387. { struct soap *soap = this;
  1388. struct __tptz__OperatePresetTour soap_tmp___tptz__OperatePresetTour;
  1389. if (endpoint)
  1390. soap_endpoint = endpoint;
  1391. if (soap_action == NULL)
  1392. soap_action = "http://www.onvif.org/ver20/ptz/wsdl/OperatePresetTour";
  1393. soap_begin(soap);
  1394. soap->encodingStyle = NULL;
  1395. soap_tmp___tptz__OperatePresetTour.tptz__OperatePresetTour = tptz__OperatePresetTour;
  1396. soap_set_version(soap, 2); /* SOAP1.2 */
  1397. soap_serializeheader(soap);
  1398. soap_serialize___tptz__OperatePresetTour(soap, &soap_tmp___tptz__OperatePresetTour);
  1399. if (soap_begin_count(soap))
  1400. return soap->error;
  1401. if (soap->mode & SOAP_IO_LENGTH)
  1402. { if (soap_envelope_begin_out(soap)
  1403. || soap_putheader(soap)
  1404. || soap_body_begin_out(soap)
  1405. || soap_put___tptz__OperatePresetTour(soap, &soap_tmp___tptz__OperatePresetTour, "-tptz:OperatePresetTour", NULL)
  1406. || soap_body_end_out(soap)
  1407. || soap_envelope_end_out(soap))
  1408. return soap->error;
  1409. }
  1410. if (soap_end_count(soap))
  1411. return soap->error;
  1412. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  1413. || soap_envelope_begin_out(soap)
  1414. || soap_putheader(soap)
  1415. || soap_body_begin_out(soap)
  1416. || soap_put___tptz__OperatePresetTour(soap, &soap_tmp___tptz__OperatePresetTour, "-tptz:OperatePresetTour", NULL)
  1417. || soap_body_end_out(soap)
  1418. || soap_envelope_end_out(soap)
  1419. || soap_end_send(soap))
  1420. return soap_closesock(soap);
  1421. if (!tptz__OperatePresetTourResponse)
  1422. return soap_closesock(soap);
  1423. tptz__OperatePresetTourResponse->soap_default(soap);
  1424. if (soap_begin_recv(soap)
  1425. || soap_envelope_begin_in(soap)
  1426. || soap_recv_header(soap)
  1427. || soap_body_begin_in(soap))
  1428. return soap_closesock(soap);
  1429. tptz__OperatePresetTourResponse->soap_get(soap, "tptz:OperatePresetTourResponse", "");
  1430. if (soap->error)
  1431. return soap_recv_fault(soap, 0);
  1432. if (soap_body_end_in(soap)
  1433. || soap_envelope_end_in(soap)
  1434. || soap_end_recv(soap))
  1435. return soap_closesock(soap);
  1436. return soap_closesock(soap);
  1437. }
  1438. int PTZBindingProxy::RemovePresetTour(const char *endpoint, const char *soap_action, _tptz__RemovePresetTour *tptz__RemovePresetTour, _tptz__RemovePresetTourResponse *tptz__RemovePresetTourResponse)
  1439. { struct soap *soap = this;
  1440. struct __tptz__RemovePresetTour soap_tmp___tptz__RemovePresetTour;
  1441. if (endpoint)
  1442. soap_endpoint = endpoint;
  1443. if (soap_action == NULL)
  1444. soap_action = "http://www.onvif.org/ver20/ptz/wsdl/RemovePresetTour";
  1445. soap_begin(soap);
  1446. soap->encodingStyle = NULL;
  1447. soap_tmp___tptz__RemovePresetTour.tptz__RemovePresetTour = tptz__RemovePresetTour;
  1448. soap_set_version(soap, 2); /* SOAP1.2 */
  1449. soap_serializeheader(soap);
  1450. soap_serialize___tptz__RemovePresetTour(soap, &soap_tmp___tptz__RemovePresetTour);
  1451. if (soap_begin_count(soap))
  1452. return soap->error;
  1453. if (soap->mode & SOAP_IO_LENGTH)
  1454. { if (soap_envelope_begin_out(soap)
  1455. || soap_putheader(soap)
  1456. || soap_body_begin_out(soap)
  1457. || soap_put___tptz__RemovePresetTour(soap, &soap_tmp___tptz__RemovePresetTour, "-tptz:RemovePresetTour", NULL)
  1458. || soap_body_end_out(soap)
  1459. || soap_envelope_end_out(soap))
  1460. return soap->error;
  1461. }
  1462. if (soap_end_count(soap))
  1463. return soap->error;
  1464. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  1465. || soap_envelope_begin_out(soap)
  1466. || soap_putheader(soap)
  1467. || soap_body_begin_out(soap)
  1468. || soap_put___tptz__RemovePresetTour(soap, &soap_tmp___tptz__RemovePresetTour, "-tptz:RemovePresetTour", NULL)
  1469. || soap_body_end_out(soap)
  1470. || soap_envelope_end_out(soap)
  1471. || soap_end_send(soap))
  1472. return soap_closesock(soap);
  1473. if (!tptz__RemovePresetTourResponse)
  1474. return soap_closesock(soap);
  1475. tptz__RemovePresetTourResponse->soap_default(soap);
  1476. if (soap_begin_recv(soap)
  1477. || soap_envelope_begin_in(soap)
  1478. || soap_recv_header(soap)
  1479. || soap_body_begin_in(soap))
  1480. return soap_closesock(soap);
  1481. tptz__RemovePresetTourResponse->soap_get(soap, "tptz:RemovePresetTourResponse", "");
  1482. if (soap->error)
  1483. return soap_recv_fault(soap, 0);
  1484. if (soap_body_end_in(soap)
  1485. || soap_envelope_end_in(soap)
  1486. || soap_end_recv(soap))
  1487. return soap_closesock(soap);
  1488. return soap_closesock(soap);
  1489. }
  1490. int PTZBindingProxy::GetCompatibleConfigurations(const char *endpoint, const char *soap_action, _tptz__GetCompatibleConfigurations *tptz__GetCompatibleConfigurations, _tptz__GetCompatibleConfigurationsResponse *tptz__GetCompatibleConfigurationsResponse)
  1491. { struct soap *soap = this;
  1492. struct __tptz__GetCompatibleConfigurations soap_tmp___tptz__GetCompatibleConfigurations;
  1493. if (endpoint)
  1494. soap_endpoint = endpoint;
  1495. if (soap_action == NULL)
  1496. soap_action = "http://www.onvif.org/ver20/ptz/wsdl/GetCompatibleConfigurations";
  1497. soap_begin(soap);
  1498. soap->encodingStyle = NULL;
  1499. soap_tmp___tptz__GetCompatibleConfigurations.tptz__GetCompatibleConfigurations = tptz__GetCompatibleConfigurations;
  1500. soap_set_version(soap, 2); /* SOAP1.2 */
  1501. soap_serializeheader(soap);
  1502. soap_serialize___tptz__GetCompatibleConfigurations(soap, &soap_tmp___tptz__GetCompatibleConfigurations);
  1503. if (soap_begin_count(soap))
  1504. return soap->error;
  1505. if (soap->mode & SOAP_IO_LENGTH)
  1506. { if (soap_envelope_begin_out(soap)
  1507. || soap_putheader(soap)
  1508. || soap_body_begin_out(soap)
  1509. || soap_put___tptz__GetCompatibleConfigurations(soap, &soap_tmp___tptz__GetCompatibleConfigurations, "-tptz:GetCompatibleConfigurations", NULL)
  1510. || soap_body_end_out(soap)
  1511. || soap_envelope_end_out(soap))
  1512. return soap->error;
  1513. }
  1514. if (soap_end_count(soap))
  1515. return soap->error;
  1516. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  1517. || soap_envelope_begin_out(soap)
  1518. || soap_putheader(soap)
  1519. || soap_body_begin_out(soap)
  1520. || soap_put___tptz__GetCompatibleConfigurations(soap, &soap_tmp___tptz__GetCompatibleConfigurations, "-tptz:GetCompatibleConfigurations", NULL)
  1521. || soap_body_end_out(soap)
  1522. || soap_envelope_end_out(soap)
  1523. || soap_end_send(soap))
  1524. return soap_closesock(soap);
  1525. if (!tptz__GetCompatibleConfigurationsResponse)
  1526. return soap_closesock(soap);
  1527. tptz__GetCompatibleConfigurationsResponse->soap_default(soap);
  1528. if (soap_begin_recv(soap)
  1529. || soap_envelope_begin_in(soap)
  1530. || soap_recv_header(soap)
  1531. || soap_body_begin_in(soap))
  1532. return soap_closesock(soap);
  1533. tptz__GetCompatibleConfigurationsResponse->soap_get(soap, "tptz:GetCompatibleConfigurationsResponse", "");
  1534. if (soap->error)
  1535. return soap_recv_fault(soap, 0);
  1536. if (soap_body_end_in(soap)
  1537. || soap_envelope_end_in(soap)
  1538. || soap_end_recv(soap))
  1539. return soap_closesock(soap);
  1540. return soap_closesock(soap);
  1541. }
  1542. /* End of client proxy code */