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.

1115 lines
45 KiB

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /* soapRecordingBindingProxy.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 "soapRecordingBindingProxy.h"
  10. RecordingBindingProxy::RecordingBindingProxy()
  11. { RecordingBindingProxy_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
  12. }
  13. RecordingBindingProxy::RecordingBindingProxy(const struct soap &_soap) : soap(_soap)
  14. { }
  15. RecordingBindingProxy::RecordingBindingProxy(const char *url)
  16. { RecordingBindingProxy_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
  17. soap_endpoint = url;
  18. }
  19. RecordingBindingProxy::RecordingBindingProxy(soap_mode iomode)
  20. { RecordingBindingProxy_init(iomode, iomode);
  21. }
  22. RecordingBindingProxy::RecordingBindingProxy(const char *url, soap_mode iomode)
  23. { RecordingBindingProxy_init(iomode, iomode);
  24. soap_endpoint = url;
  25. }
  26. RecordingBindingProxy::RecordingBindingProxy(soap_mode imode, soap_mode omode)
  27. { RecordingBindingProxy_init(imode, omode);
  28. }
  29. RecordingBindingProxy::~RecordingBindingProxy()
  30. { }
  31. void RecordingBindingProxy::RecordingBindingProxy_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 RecordingBindingProxy::destroy()
  75. { soap_destroy(this);
  76. soap_end(this);
  77. }
  78. void RecordingBindingProxy::reset()
  79. { destroy();
  80. soap_done(this);
  81. soap_initialize(this);
  82. RecordingBindingProxy_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
  83. }
  84. void RecordingBindingProxy::soap_noheader()
  85. { this->header = NULL;
  86. }
  87. void RecordingBindingProxy::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 *RecordingBindingProxy::soap_header()
  108. { return this->header;
  109. }
  110. const SOAP_ENV__Fault *RecordingBindingProxy::soap_fault()
  111. { return this->fault;
  112. }
  113. const char *RecordingBindingProxy::soap_fault_string()
  114. { return *soap_faultstring(this);
  115. }
  116. const char *RecordingBindingProxy::soap_fault_detail()
  117. { return *soap_faultdetail(this);
  118. }
  119. int RecordingBindingProxy::soap_close_socket()
  120. { return soap_closesock(this);
  121. }
  122. int RecordingBindingProxy::soap_force_close_socket()
  123. { return soap_force_closesock(this);
  124. }
  125. void RecordingBindingProxy::soap_print_fault(FILE *fd)
  126. { ::soap_print_fault(this, fd);
  127. }
  128. #ifndef WITH_LEAN
  129. #ifndef WITH_COMPAT
  130. void RecordingBindingProxy::soap_stream_fault(std::ostream& os)
  131. { ::soap_stream_fault(this, os);
  132. }
  133. #endif
  134. char *RecordingBindingProxy::soap_sprint_fault(char *buf, size_t len)
  135. { return ::soap_sprint_fault(this, buf, len);
  136. }
  137. #endif
  138. int RecordingBindingProxy::GetServiceCapabilities(const char *endpoint, const char *soap_action, _trc__GetServiceCapabilities *trc__GetServiceCapabilities, _trc__GetServiceCapabilitiesResponse *trc__GetServiceCapabilitiesResponse)
  139. { struct soap *soap = this;
  140. struct __trc__GetServiceCapabilities soap_tmp___trc__GetServiceCapabilities;
  141. if (endpoint)
  142. soap_endpoint = endpoint;
  143. if (soap_action == NULL)
  144. soap_action = "http://www.onvif.org/ver10/recording/wsdl/GetServiceCapabilities";
  145. soap_begin(soap);
  146. soap->encodingStyle = NULL;
  147. soap_tmp___trc__GetServiceCapabilities.trc__GetServiceCapabilities = trc__GetServiceCapabilities;
  148. soap_set_version(soap, 2); /* SOAP1.2 */
  149. soap_serializeheader(soap);
  150. soap_serialize___trc__GetServiceCapabilities(soap, &soap_tmp___trc__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___trc__GetServiceCapabilities(soap, &soap_tmp___trc__GetServiceCapabilities, "-trc: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___trc__GetServiceCapabilities(soap, &soap_tmp___trc__GetServiceCapabilities, "-trc: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 (!trc__GetServiceCapabilitiesResponse)
  174. return soap_closesock(soap);
  175. trc__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. trc__GetServiceCapabilitiesResponse->soap_get(soap, "trc: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 RecordingBindingProxy::CreateRecording(const char *endpoint, const char *soap_action, _trc__CreateRecording *trc__CreateRecording, _trc__CreateRecordingResponse *trc__CreateRecordingResponse)
  191. { struct soap *soap = this;
  192. struct __trc__CreateRecording soap_tmp___trc__CreateRecording;
  193. if (endpoint)
  194. soap_endpoint = endpoint;
  195. if (soap_action == NULL)
  196. soap_action = "http://www.onvif.org/ver10/recording/wsdl/CreateRecording";
  197. soap_begin(soap);
  198. soap->encodingStyle = NULL;
  199. soap_tmp___trc__CreateRecording.trc__CreateRecording = trc__CreateRecording;
  200. soap_set_version(soap, 2); /* SOAP1.2 */
  201. soap_serializeheader(soap);
  202. soap_serialize___trc__CreateRecording(soap, &soap_tmp___trc__CreateRecording);
  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___trc__CreateRecording(soap, &soap_tmp___trc__CreateRecording, "-trc:CreateRecording", 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___trc__CreateRecording(soap, &soap_tmp___trc__CreateRecording, "-trc:CreateRecording", 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 (!trc__CreateRecordingResponse)
  226. return soap_closesock(soap);
  227. trc__CreateRecordingResponse->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. trc__CreateRecordingResponse->soap_get(soap, "trc:CreateRecordingResponse", "");
  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 RecordingBindingProxy::DeleteRecording(const char *endpoint, const char *soap_action, _trc__DeleteRecording *trc__DeleteRecording, _trc__DeleteRecordingResponse *trc__DeleteRecordingResponse)
  243. { struct soap *soap = this;
  244. struct __trc__DeleteRecording soap_tmp___trc__DeleteRecording;
  245. if (endpoint)
  246. soap_endpoint = endpoint;
  247. if (soap_action == NULL)
  248. soap_action = "http://www.onvif.org/ver10/recording/wsdl/DeleteRecording";
  249. soap_begin(soap);
  250. soap->encodingStyle = NULL;
  251. soap_tmp___trc__DeleteRecording.trc__DeleteRecording = trc__DeleteRecording;
  252. soap_set_version(soap, 2); /* SOAP1.2 */
  253. soap_serializeheader(soap);
  254. soap_serialize___trc__DeleteRecording(soap, &soap_tmp___trc__DeleteRecording);
  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___trc__DeleteRecording(soap, &soap_tmp___trc__DeleteRecording, "-trc:DeleteRecording", 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___trc__DeleteRecording(soap, &soap_tmp___trc__DeleteRecording, "-trc:DeleteRecording", 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 (!trc__DeleteRecordingResponse)
  278. return soap_closesock(soap);
  279. trc__DeleteRecordingResponse->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. trc__DeleteRecordingResponse->soap_get(soap, "trc:DeleteRecordingResponse", "");
  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 RecordingBindingProxy::GetRecordings(const char *endpoint, const char *soap_action, _trc__GetRecordings *trc__GetRecordings, _trc__GetRecordingsResponse *trc__GetRecordingsResponse)
  295. { struct soap *soap = this;
  296. struct __trc__GetRecordings soap_tmp___trc__GetRecordings;
  297. if (endpoint)
  298. soap_endpoint = endpoint;
  299. if (soap_action == NULL)
  300. soap_action = "http://www.onvif.org/ver10/recording/wsdl/GetRecordings";
  301. soap_begin(soap);
  302. soap->encodingStyle = NULL;
  303. soap_tmp___trc__GetRecordings.trc__GetRecordings = trc__GetRecordings;
  304. soap_set_version(soap, 2); /* SOAP1.2 */
  305. soap_serializeheader(soap);
  306. soap_serialize___trc__GetRecordings(soap, &soap_tmp___trc__GetRecordings);
  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___trc__GetRecordings(soap, &soap_tmp___trc__GetRecordings, "-trc:GetRecordings", 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___trc__GetRecordings(soap, &soap_tmp___trc__GetRecordings, "-trc:GetRecordings", 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 (!trc__GetRecordingsResponse)
  330. return soap_closesock(soap);
  331. trc__GetRecordingsResponse->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. trc__GetRecordingsResponse->soap_get(soap, "trc:GetRecordingsResponse", "");
  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 RecordingBindingProxy::SetRecordingConfiguration(const char *endpoint, const char *soap_action, _trc__SetRecordingConfiguration *trc__SetRecordingConfiguration, _trc__SetRecordingConfigurationResponse *trc__SetRecordingConfigurationResponse)
  347. { struct soap *soap = this;
  348. struct __trc__SetRecordingConfiguration soap_tmp___trc__SetRecordingConfiguration;
  349. if (endpoint)
  350. soap_endpoint = endpoint;
  351. if (soap_action == NULL)
  352. soap_action = "http://www.onvif.org/ver10/recording/wsdl/SetRecordingConfiguration";
  353. soap_begin(soap);
  354. soap->encodingStyle = NULL;
  355. soap_tmp___trc__SetRecordingConfiguration.trc__SetRecordingConfiguration = trc__SetRecordingConfiguration;
  356. soap_set_version(soap, 2); /* SOAP1.2 */
  357. soap_serializeheader(soap);
  358. soap_serialize___trc__SetRecordingConfiguration(soap, &soap_tmp___trc__SetRecordingConfiguration);
  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___trc__SetRecordingConfiguration(soap, &soap_tmp___trc__SetRecordingConfiguration, "-trc:SetRecordingConfiguration", 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___trc__SetRecordingConfiguration(soap, &soap_tmp___trc__SetRecordingConfiguration, "-trc:SetRecordingConfiguration", 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 (!trc__SetRecordingConfigurationResponse)
  382. return soap_closesock(soap);
  383. trc__SetRecordingConfigurationResponse->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. trc__SetRecordingConfigurationResponse->soap_get(soap, "trc:SetRecordingConfigurationResponse", "");
  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 RecordingBindingProxy::GetRecordingConfiguration(const char *endpoint, const char *soap_action, _trc__GetRecordingConfiguration *trc__GetRecordingConfiguration, _trc__GetRecordingConfigurationResponse *trc__GetRecordingConfigurationResponse)
  399. { struct soap *soap = this;
  400. struct __trc__GetRecordingConfiguration soap_tmp___trc__GetRecordingConfiguration;
  401. if (endpoint)
  402. soap_endpoint = endpoint;
  403. if (soap_action == NULL)
  404. soap_action = "http://www.onvif.org/ver10/recording/wsdl/GetRecordingConfiguration";
  405. soap_begin(soap);
  406. soap->encodingStyle = NULL;
  407. soap_tmp___trc__GetRecordingConfiguration.trc__GetRecordingConfiguration = trc__GetRecordingConfiguration;
  408. soap_set_version(soap, 2); /* SOAP1.2 */
  409. soap_serializeheader(soap);
  410. soap_serialize___trc__GetRecordingConfiguration(soap, &soap_tmp___trc__GetRecordingConfiguration);
  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___trc__GetRecordingConfiguration(soap, &soap_tmp___trc__GetRecordingConfiguration, "-trc:GetRecordingConfiguration", 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___trc__GetRecordingConfiguration(soap, &soap_tmp___trc__GetRecordingConfiguration, "-trc:GetRecordingConfiguration", 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 (!trc__GetRecordingConfigurationResponse)
  434. return soap_closesock(soap);
  435. trc__GetRecordingConfigurationResponse->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. trc__GetRecordingConfigurationResponse->soap_get(soap, "trc:GetRecordingConfigurationResponse", "");
  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 RecordingBindingProxy::GetRecordingOptions(const char *endpoint, const char *soap_action, _trc__GetRecordingOptions *trc__GetRecordingOptions, _trc__GetRecordingOptionsResponse *trc__GetRecordingOptionsResponse)
  451. { struct soap *soap = this;
  452. struct __trc__GetRecordingOptions soap_tmp___trc__GetRecordingOptions;
  453. if (endpoint)
  454. soap_endpoint = endpoint;
  455. if (soap_action == NULL)
  456. soap_action = "http://www.onvif.org/ver10/recording/wsdl/GetRecordingOptions";
  457. soap_begin(soap);
  458. soap->encodingStyle = NULL;
  459. soap_tmp___trc__GetRecordingOptions.trc__GetRecordingOptions = trc__GetRecordingOptions;
  460. soap_set_version(soap, 2); /* SOAP1.2 */
  461. soap_serializeheader(soap);
  462. soap_serialize___trc__GetRecordingOptions(soap, &soap_tmp___trc__GetRecordingOptions);
  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___trc__GetRecordingOptions(soap, &soap_tmp___trc__GetRecordingOptions, "-trc:GetRecordingOptions", 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___trc__GetRecordingOptions(soap, &soap_tmp___trc__GetRecordingOptions, "-trc:GetRecordingOptions", 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 (!trc__GetRecordingOptionsResponse)
  486. return soap_closesock(soap);
  487. trc__GetRecordingOptionsResponse->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. trc__GetRecordingOptionsResponse->soap_get(soap, "trc:GetRecordingOptionsResponse", "");
  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 RecordingBindingProxy::CreateTrack(const char *endpoint, const char *soap_action, _trc__CreateTrack *trc__CreateTrack, _trc__CreateTrackResponse *trc__CreateTrackResponse)
  503. { struct soap *soap = this;
  504. struct __trc__CreateTrack soap_tmp___trc__CreateTrack;
  505. if (endpoint)
  506. soap_endpoint = endpoint;
  507. if (soap_action == NULL)
  508. soap_action = "http://www.onvif.org/ver10/recording/wsdl/CreateTrack";
  509. soap_begin(soap);
  510. soap->encodingStyle = NULL;
  511. soap_tmp___trc__CreateTrack.trc__CreateTrack = trc__CreateTrack;
  512. soap_set_version(soap, 2); /* SOAP1.2 */
  513. soap_serializeheader(soap);
  514. soap_serialize___trc__CreateTrack(soap, &soap_tmp___trc__CreateTrack);
  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___trc__CreateTrack(soap, &soap_tmp___trc__CreateTrack, "-trc:CreateTrack", 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___trc__CreateTrack(soap, &soap_tmp___trc__CreateTrack, "-trc:CreateTrack", 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 (!trc__CreateTrackResponse)
  538. return soap_closesock(soap);
  539. trc__CreateTrackResponse->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. trc__CreateTrackResponse->soap_get(soap, "trc:CreateTrackResponse", "");
  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 RecordingBindingProxy::DeleteTrack(const char *endpoint, const char *soap_action, _trc__DeleteTrack *trc__DeleteTrack, _trc__DeleteTrackResponse *trc__DeleteTrackResponse)
  555. { struct soap *soap = this;
  556. struct __trc__DeleteTrack soap_tmp___trc__DeleteTrack;
  557. if (endpoint)
  558. soap_endpoint = endpoint;
  559. if (soap_action == NULL)
  560. soap_action = "http://www.onvif.org/ver10/recording/wsdl/DeleteTrack";
  561. soap_begin(soap);
  562. soap->encodingStyle = NULL;
  563. soap_tmp___trc__DeleteTrack.trc__DeleteTrack = trc__DeleteTrack;
  564. soap_set_version(soap, 2); /* SOAP1.2 */
  565. soap_serializeheader(soap);
  566. soap_serialize___trc__DeleteTrack(soap, &soap_tmp___trc__DeleteTrack);
  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___trc__DeleteTrack(soap, &soap_tmp___trc__DeleteTrack, "-trc:DeleteTrack", 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___trc__DeleteTrack(soap, &soap_tmp___trc__DeleteTrack, "-trc:DeleteTrack", 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 (!trc__DeleteTrackResponse)
  590. return soap_closesock(soap);
  591. trc__DeleteTrackResponse->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. trc__DeleteTrackResponse->soap_get(soap, "trc:DeleteTrackResponse", "");
  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 RecordingBindingProxy::GetTrackConfiguration(const char *endpoint, const char *soap_action, _trc__GetTrackConfiguration *trc__GetTrackConfiguration, _trc__GetTrackConfigurationResponse *trc__GetTrackConfigurationResponse)
  607. { struct soap *soap = this;
  608. struct __trc__GetTrackConfiguration soap_tmp___trc__GetTrackConfiguration;
  609. if (endpoint)
  610. soap_endpoint = endpoint;
  611. if (soap_action == NULL)
  612. soap_action = "http://www.onvif.org/ver10/recording/wsdl/GetTrackConfiguration";
  613. soap_begin(soap);
  614. soap->encodingStyle = NULL;
  615. soap_tmp___trc__GetTrackConfiguration.trc__GetTrackConfiguration = trc__GetTrackConfiguration;
  616. soap_set_version(soap, 2); /* SOAP1.2 */
  617. soap_serializeheader(soap);
  618. soap_serialize___trc__GetTrackConfiguration(soap, &soap_tmp___trc__GetTrackConfiguration);
  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___trc__GetTrackConfiguration(soap, &soap_tmp___trc__GetTrackConfiguration, "-trc:GetTrackConfiguration", 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___trc__GetTrackConfiguration(soap, &soap_tmp___trc__GetTrackConfiguration, "-trc:GetTrackConfiguration", 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 (!trc__GetTrackConfigurationResponse)
  642. return soap_closesock(soap);
  643. trc__GetTrackConfigurationResponse->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. trc__GetTrackConfigurationResponse->soap_get(soap, "trc:GetTrackConfigurationResponse", "");
  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 RecordingBindingProxy::SetTrackConfiguration(const char *endpoint, const char *soap_action, _trc__SetTrackConfiguration *trc__SetTrackConfiguration, _trc__SetTrackConfigurationResponse *trc__SetTrackConfigurationResponse)
  659. { struct soap *soap = this;
  660. struct __trc__SetTrackConfiguration soap_tmp___trc__SetTrackConfiguration;
  661. if (endpoint)
  662. soap_endpoint = endpoint;
  663. if (soap_action == NULL)
  664. soap_action = "http://www.onvif.org/ver10/recording/wsdl/SetTrackConfiguration";
  665. soap_begin(soap);
  666. soap->encodingStyle = NULL;
  667. soap_tmp___trc__SetTrackConfiguration.trc__SetTrackConfiguration = trc__SetTrackConfiguration;
  668. soap_set_version(soap, 2); /* SOAP1.2 */
  669. soap_serializeheader(soap);
  670. soap_serialize___trc__SetTrackConfiguration(soap, &soap_tmp___trc__SetTrackConfiguration);
  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___trc__SetTrackConfiguration(soap, &soap_tmp___trc__SetTrackConfiguration, "-trc:SetTrackConfiguration", 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___trc__SetTrackConfiguration(soap, &soap_tmp___trc__SetTrackConfiguration, "-trc:SetTrackConfiguration", 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 (!trc__SetTrackConfigurationResponse)
  694. return soap_closesock(soap);
  695. trc__SetTrackConfigurationResponse->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. trc__SetTrackConfigurationResponse->soap_get(soap, "trc:SetTrackConfigurationResponse", "");
  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 RecordingBindingProxy::CreateRecordingJob(const char *endpoint, const char *soap_action, _trc__CreateRecordingJob *trc__CreateRecordingJob, _trc__CreateRecordingJobResponse *trc__CreateRecordingJobResponse)
  711. { struct soap *soap = this;
  712. struct __trc__CreateRecordingJob soap_tmp___trc__CreateRecordingJob;
  713. if (endpoint)
  714. soap_endpoint = endpoint;
  715. if (soap_action == NULL)
  716. soap_action = "http://www.onvif.org/ver10/recording/wsdl/CreateRecordingJob";
  717. soap_begin(soap);
  718. soap->encodingStyle = NULL;
  719. soap_tmp___trc__CreateRecordingJob.trc__CreateRecordingJob = trc__CreateRecordingJob;
  720. soap_set_version(soap, 2); /* SOAP1.2 */
  721. soap_serializeheader(soap);
  722. soap_serialize___trc__CreateRecordingJob(soap, &soap_tmp___trc__CreateRecordingJob);
  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___trc__CreateRecordingJob(soap, &soap_tmp___trc__CreateRecordingJob, "-trc:CreateRecordingJob", 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___trc__CreateRecordingJob(soap, &soap_tmp___trc__CreateRecordingJob, "-trc:CreateRecordingJob", 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 (!trc__CreateRecordingJobResponse)
  746. return soap_closesock(soap);
  747. trc__CreateRecordingJobResponse->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. trc__CreateRecordingJobResponse->soap_get(soap, "trc:CreateRecordingJobResponse", "");
  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 RecordingBindingProxy::DeleteRecordingJob(const char *endpoint, const char *soap_action, _trc__DeleteRecordingJob *trc__DeleteRecordingJob, _trc__DeleteRecordingJobResponse *trc__DeleteRecordingJobResponse)
  763. { struct soap *soap = this;
  764. struct __trc__DeleteRecordingJob soap_tmp___trc__DeleteRecordingJob;
  765. if (endpoint)
  766. soap_endpoint = endpoint;
  767. if (soap_action == NULL)
  768. soap_action = "http://www.onvif.org/ver10/recording/wsdl/DeleteRecordingJob";
  769. soap_begin(soap);
  770. soap->encodingStyle = NULL;
  771. soap_tmp___trc__DeleteRecordingJob.trc__DeleteRecordingJob = trc__DeleteRecordingJob;
  772. soap_set_version(soap, 2); /* SOAP1.2 */
  773. soap_serializeheader(soap);
  774. soap_serialize___trc__DeleteRecordingJob(soap, &soap_tmp___trc__DeleteRecordingJob);
  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___trc__DeleteRecordingJob(soap, &soap_tmp___trc__DeleteRecordingJob, "-trc:DeleteRecordingJob", 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___trc__DeleteRecordingJob(soap, &soap_tmp___trc__DeleteRecordingJob, "-trc:DeleteRecordingJob", 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 (!trc__DeleteRecordingJobResponse)
  798. return soap_closesock(soap);
  799. trc__DeleteRecordingJobResponse->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. trc__DeleteRecordingJobResponse->soap_get(soap, "trc:DeleteRecordingJobResponse", "");
  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 RecordingBindingProxy::GetRecordingJobs(const char *endpoint, const char *soap_action, _trc__GetRecordingJobs *trc__GetRecordingJobs, _trc__GetRecordingJobsResponse *trc__GetRecordingJobsResponse)
  815. { struct soap *soap = this;
  816. struct __trc__GetRecordingJobs soap_tmp___trc__GetRecordingJobs;
  817. if (endpoint)
  818. soap_endpoint = endpoint;
  819. if (soap_action == NULL)
  820. soap_action = "http://www.onvif.org/ver10/recording/wsdl/GetRecordingJobs";
  821. soap_begin(soap);
  822. soap->encodingStyle = NULL;
  823. soap_tmp___trc__GetRecordingJobs.trc__GetRecordingJobs = trc__GetRecordingJobs;
  824. soap_set_version(soap, 2); /* SOAP1.2 */
  825. soap_serializeheader(soap);
  826. soap_serialize___trc__GetRecordingJobs(soap, &soap_tmp___trc__GetRecordingJobs);
  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___trc__GetRecordingJobs(soap, &soap_tmp___trc__GetRecordingJobs, "-trc:GetRecordingJobs", 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___trc__GetRecordingJobs(soap, &soap_tmp___trc__GetRecordingJobs, "-trc:GetRecordingJobs", 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 (!trc__GetRecordingJobsResponse)
  850. return soap_closesock(soap);
  851. trc__GetRecordingJobsResponse->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. trc__GetRecordingJobsResponse->soap_get(soap, "trc:GetRecordingJobsResponse", "");
  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 RecordingBindingProxy::SetRecordingJobConfiguration(const char *endpoint, const char *soap_action, _trc__SetRecordingJobConfiguration *trc__SetRecordingJobConfiguration, _trc__SetRecordingJobConfigurationResponse *trc__SetRecordingJobConfigurationResponse)
  867. { struct soap *soap = this;
  868. struct __trc__SetRecordingJobConfiguration soap_tmp___trc__SetRecordingJobConfiguration;
  869. if (endpoint)
  870. soap_endpoint = endpoint;
  871. if (soap_action == NULL)
  872. soap_action = "http://www.onvif.org/ver10/recording/wsdl/SetRecordingJobConfiguration";
  873. soap_begin(soap);
  874. soap->encodingStyle = NULL;
  875. soap_tmp___trc__SetRecordingJobConfiguration.trc__SetRecordingJobConfiguration = trc__SetRecordingJobConfiguration;
  876. soap_set_version(soap, 2); /* SOAP1.2 */
  877. soap_serializeheader(soap);
  878. soap_serialize___trc__SetRecordingJobConfiguration(soap, &soap_tmp___trc__SetRecordingJobConfiguration);
  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___trc__SetRecordingJobConfiguration(soap, &soap_tmp___trc__SetRecordingJobConfiguration, "-trc:SetRecordingJobConfiguration", 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___trc__SetRecordingJobConfiguration(soap, &soap_tmp___trc__SetRecordingJobConfiguration, "-trc:SetRecordingJobConfiguration", 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 (!trc__SetRecordingJobConfigurationResponse)
  902. return soap_closesock(soap);
  903. trc__SetRecordingJobConfigurationResponse->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. trc__SetRecordingJobConfigurationResponse->soap_get(soap, "trc:SetRecordingJobConfigurationResponse", "");
  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 RecordingBindingProxy::GetRecordingJobConfiguration(const char *endpoint, const char *soap_action, _trc__GetRecordingJobConfiguration *trc__GetRecordingJobConfiguration, _trc__GetRecordingJobConfigurationResponse *trc__GetRecordingJobConfigurationResponse)
  919. { struct soap *soap = this;
  920. struct __trc__GetRecordingJobConfiguration soap_tmp___trc__GetRecordingJobConfiguration;
  921. if (endpoint)
  922. soap_endpoint = endpoint;
  923. if (soap_action == NULL)
  924. soap_action = "http://www.onvif.org/ver10/recording/wsdl/GetRecordingJobConfiguration";
  925. soap_begin(soap);
  926. soap->encodingStyle = NULL;
  927. soap_tmp___trc__GetRecordingJobConfiguration.trc__GetRecordingJobConfiguration = trc__GetRecordingJobConfiguration;
  928. soap_set_version(soap, 2); /* SOAP1.2 */
  929. soap_serializeheader(soap);
  930. soap_serialize___trc__GetRecordingJobConfiguration(soap, &soap_tmp___trc__GetRecordingJobConfiguration);
  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___trc__GetRecordingJobConfiguration(soap, &soap_tmp___trc__GetRecordingJobConfiguration, "-trc:GetRecordingJobConfiguration", 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___trc__GetRecordingJobConfiguration(soap, &soap_tmp___trc__GetRecordingJobConfiguration, "-trc:GetRecordingJobConfiguration", 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 (!trc__GetRecordingJobConfigurationResponse)
  954. return soap_closesock(soap);
  955. trc__GetRecordingJobConfigurationResponse->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. trc__GetRecordingJobConfigurationResponse->soap_get(soap, "trc:GetRecordingJobConfigurationResponse", "");
  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 RecordingBindingProxy::SetRecordingJobMode(const char *endpoint, const char *soap_action, _trc__SetRecordingJobMode *trc__SetRecordingJobMode, _trc__SetRecordingJobModeResponse *trc__SetRecordingJobModeResponse)
  971. { struct soap *soap = this;
  972. struct __trc__SetRecordingJobMode soap_tmp___trc__SetRecordingJobMode;
  973. if (endpoint)
  974. soap_endpoint = endpoint;
  975. if (soap_action == NULL)
  976. soap_action = "http://www.onvif.org/ver10/recording/wsdl/SetRecordingJobMode";
  977. soap_begin(soap);
  978. soap->encodingStyle = NULL;
  979. soap_tmp___trc__SetRecordingJobMode.trc__SetRecordingJobMode = trc__SetRecordingJobMode;
  980. soap_set_version(soap, 2); /* SOAP1.2 */
  981. soap_serializeheader(soap);
  982. soap_serialize___trc__SetRecordingJobMode(soap, &soap_tmp___trc__SetRecordingJobMode);
  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___trc__SetRecordingJobMode(soap, &soap_tmp___trc__SetRecordingJobMode, "-trc:SetRecordingJobMode", 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___trc__SetRecordingJobMode(soap, &soap_tmp___trc__SetRecordingJobMode, "-trc:SetRecordingJobMode", 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 (!trc__SetRecordingJobModeResponse)
  1006. return soap_closesock(soap);
  1007. trc__SetRecordingJobModeResponse->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. trc__SetRecordingJobModeResponse->soap_get(soap, "trc:SetRecordingJobModeResponse", "");
  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 RecordingBindingProxy::GetRecordingJobState(const char *endpoint, const char *soap_action, _trc__GetRecordingJobState *trc__GetRecordingJobState, _trc__GetRecordingJobStateResponse *trc__GetRecordingJobStateResponse)
  1023. { struct soap *soap = this;
  1024. struct __trc__GetRecordingJobState soap_tmp___trc__GetRecordingJobState;
  1025. if (endpoint)
  1026. soap_endpoint = endpoint;
  1027. if (soap_action == NULL)
  1028. soap_action = "http://www.onvif.org/ver10/recording/wsdl/GetRecordingJobState";
  1029. soap_begin(soap);
  1030. soap->encodingStyle = NULL;
  1031. soap_tmp___trc__GetRecordingJobState.trc__GetRecordingJobState = trc__GetRecordingJobState;
  1032. soap_set_version(soap, 2); /* SOAP1.2 */
  1033. soap_serializeheader(soap);
  1034. soap_serialize___trc__GetRecordingJobState(soap, &soap_tmp___trc__GetRecordingJobState);
  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___trc__GetRecordingJobState(soap, &soap_tmp___trc__GetRecordingJobState, "-trc:GetRecordingJobState", 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___trc__GetRecordingJobState(soap, &soap_tmp___trc__GetRecordingJobState, "-trc:GetRecordingJobState", 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 (!trc__GetRecordingJobStateResponse)
  1058. return soap_closesock(soap);
  1059. trc__GetRecordingJobStateResponse->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. trc__GetRecordingJobStateResponse->soap_get(soap, "trc:GetRecordingJobStateResponse", "");
  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. /* End of client proxy code */