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.

848 lines
33 KiB

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /* soapSearchBindingService.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 "soapSearchBindingService.h"
  10. SearchBindingService::SearchBindingService()
  11. { SearchBindingService_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
  12. }
  13. SearchBindingService::SearchBindingService(const struct soap &_soap) : soap(_soap)
  14. { }
  15. SearchBindingService::SearchBindingService(soap_mode iomode)
  16. { SearchBindingService_init(iomode, iomode);
  17. }
  18. SearchBindingService::SearchBindingService(soap_mode imode, soap_mode omode)
  19. { SearchBindingService_init(imode, omode);
  20. }
  21. SearchBindingService::~SearchBindingService()
  22. { }
  23. void SearchBindingService::SearchBindingService_init(soap_mode imode, soap_mode omode)
  24. { soap_imode(this, imode);
  25. soap_omode(this, omode);
  26. static const struct Namespace namespaces[] =
  27. {
  28. {"SOAP-ENV", "http://www.w3.org/2003/05/soap-envelope", "http://schemas.xmlsoap.org/soap/envelope/", NULL},
  29. {"SOAP-ENC", "http://www.w3.org/2003/05/soap-encoding", "http://schemas.xmlsoap.org/soap/encoding/", NULL},
  30. {"xsi", "http://www.w3.org/2001/XMLSchema-instance", "http://www.w3.org/*/XMLSchema-instance", NULL},
  31. {"xsd", "http://www.w3.org/2001/XMLSchema", "http://www.w3.org/*/XMLSchema", NULL},
  32. {"c14n", "http://www.w3.org/2001/10/xml-exc-c14n#", NULL, NULL},
  33. {"wsu", "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd", NULL, NULL},
  34. {"xenc", "http://www.w3.org/2001/04/xmlenc#", NULL, NULL},
  35. {"wsc", "http://schemas.xmlsoap.org/ws/2005/02/sc", NULL, NULL},
  36. {"ds", "http://www.w3.org/2000/09/xmldsig#", NULL, NULL},
  37. {"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},
  38. {"wsa", "http://schemas.xmlsoap.org/ws/2004/08/addressing", NULL, NULL},
  39. {"wsdd", "http://schemas.xmlsoap.org/ws/2005/04/discovery", NULL, NULL},
  40. {"chan", "http://schemas.microsoft.com/ws/2005/02/duplex", NULL, NULL},
  41. {"wsa5", "http://www.w3.org/2005/08/addressing", "http://schemas.xmlsoap.org/ws/2004/08/addressing", NULL},
  42. {"xmime", "http://tempuri.org/xmime.xsd", NULL, NULL},
  43. {"xop", "http://www.w3.org/2004/08/xop/include", NULL, NULL},
  44. {"tt", "http://www.onvif.org/ver10/schema", NULL, NULL},
  45. {"wsrfbf", "http://docs.oasis-open.org/wsrf/bf-2", NULL, NULL},
  46. {"wstop", "http://docs.oasis-open.org/wsn/t-1", NULL, NULL},
  47. {"wsrfr", "http://docs.oasis-open.org/wsrf/r-2", NULL, NULL},
  48. {"tdn", "http://www.onvif.org/ver10/network/wsdl", NULL, NULL},
  49. {"tds", "http://www.onvif.org/ver10/device/wsdl", NULL, NULL},
  50. {"tev", "http://www.onvif.org/ver10/events/wsdl", NULL, NULL},
  51. {"wsnt", "http://docs.oasis-open.org/wsn/b-2", NULL, NULL},
  52. {"timg", "http://www.onvif.org/ver20/imaging/wsdl", NULL, NULL},
  53. {"tls", "http://www.onvif.org/ver10/display/wsdl", NULL, NULL},
  54. {"tmd", "http://www.onvif.org/ver10/deviceIO/wsdl", NULL, NULL},
  55. {"tptz", "http://www.onvif.org/ver20/ptz/wsdl", NULL, NULL},
  56. {"trc", "http://www.onvif.org/ver10/recording/wsdl", NULL, NULL},
  57. {"trp", "http://www.onvif.org/ver10/replay/wsdl", NULL, NULL},
  58. {"trt", "http://www.onvif.org/ver10/media/wsdl", NULL, NULL},
  59. {"trv", "http://www.onvif.org/ver10/receiver/wsdl", NULL, NULL},
  60. {"tse", "http://www.onvif.org/ver10/search/wsdl", NULL, NULL},
  61. {NULL, NULL, NULL, NULL}
  62. };
  63. soap_set_namespaces(this, namespaces);
  64. }
  65. void SearchBindingService::destroy()
  66. { soap_destroy(this);
  67. soap_end(this);
  68. }
  69. void SearchBindingService::reset()
  70. { destroy();
  71. soap_done(this);
  72. soap_initialize(this);
  73. SearchBindingService_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
  74. }
  75. #ifndef WITH_PURE_VIRTUAL
  76. SearchBindingService *SearchBindingService::copy()
  77. { SearchBindingService *dup = SOAP_NEW_COPY(SearchBindingService(*(struct soap*)this));
  78. return dup;
  79. }
  80. #endif
  81. int SearchBindingService::soap_close_socket()
  82. { return soap_closesock(this);
  83. }
  84. int SearchBindingService::soap_force_close_socket()
  85. { return soap_force_closesock(this);
  86. }
  87. int SearchBindingService::soap_senderfault(const char *string, const char *detailXML)
  88. { return ::soap_sender_fault(this, string, detailXML);
  89. }
  90. int SearchBindingService::soap_senderfault(const char *subcodeQName, const char *string, const char *detailXML)
  91. { return ::soap_sender_fault_subcode(this, subcodeQName, string, detailXML);
  92. }
  93. int SearchBindingService::soap_receiverfault(const char *string, const char *detailXML)
  94. { return ::soap_receiver_fault(this, string, detailXML);
  95. }
  96. int SearchBindingService::soap_receiverfault(const char *subcodeQName, const char *string, const char *detailXML)
  97. { return ::soap_receiver_fault_subcode(this, subcodeQName, string, detailXML);
  98. }
  99. void SearchBindingService::soap_print_fault(FILE *fd)
  100. { ::soap_print_fault(this, fd);
  101. }
  102. #ifndef WITH_LEAN
  103. #ifndef WITH_COMPAT
  104. void SearchBindingService::soap_stream_fault(std::ostream& os)
  105. { ::soap_stream_fault(this, os);
  106. }
  107. #endif
  108. char *SearchBindingService::soap_sprint_fault(char *buf, size_t len)
  109. { return ::soap_sprint_fault(this, buf, len);
  110. }
  111. #endif
  112. void SearchBindingService::soap_noheader()
  113. { this->header = NULL;
  114. }
  115. void SearchBindingService::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)
  116. { ::soap_header(this);
  117. this->header->wsse__Security = wsse__Security;
  118. this->header->wsa__MessageID = wsa__MessageID;
  119. this->header->wsa__RelatesTo = wsa__RelatesTo;
  120. this->header->wsa__From = wsa__From;
  121. this->header->wsa__ReplyTo = wsa__ReplyTo;
  122. this->header->wsa__FaultTo = wsa__FaultTo;
  123. this->header->wsa__To = wsa__To;
  124. this->header->wsa__Action = wsa__Action;
  125. this->header->wsdd__AppSequence = wsdd__AppSequence;
  126. this->header->wsa5__MessageID = wsa5__MessageID;
  127. this->header->wsa5__RelatesTo = wsa5__RelatesTo;
  128. this->header->wsa5__From = wsa5__From;
  129. this->header->wsa5__ReplyTo = wsa5__ReplyTo;
  130. this->header->wsa5__FaultTo = wsa5__FaultTo;
  131. this->header->wsa5__To = wsa5__To;
  132. this->header->wsa5__Action = wsa5__Action;
  133. this->header->chan__ChannelInstance = chan__ChannelInstance;
  134. }
  135. const SOAP_ENV__Header *SearchBindingService::soap_header()
  136. { return this->header;
  137. }
  138. int SearchBindingService::run(int port)
  139. { if (soap_valid_socket(this->master) || soap_valid_socket(bind(NULL, port, 100)))
  140. { for (;;)
  141. { if (!soap_valid_socket(accept()) || serve())
  142. return this->error;
  143. soap_destroy(this);
  144. soap_end(this);
  145. }
  146. }
  147. else
  148. return this->error;
  149. return SOAP_OK;
  150. }
  151. SOAP_SOCKET SearchBindingService::bind(const char *host, int port, int backlog)
  152. { return soap_bind(this, host, port, backlog);
  153. }
  154. SOAP_SOCKET SearchBindingService::accept()
  155. { return soap_accept(this);
  156. }
  157. #if defined(WITH_OPENSSL) || defined(WITH_GNUTLS)
  158. int SearchBindingService::ssl_accept()
  159. { return soap_ssl_accept(this);
  160. }
  161. #endif
  162. int SearchBindingService::serve()
  163. {
  164. #ifndef WITH_FASTCGI
  165. unsigned int k = this->max_keep_alive;
  166. #endif
  167. do
  168. {
  169. #ifndef WITH_FASTCGI
  170. if (this->max_keep_alive > 0 && !--k)
  171. this->keep_alive = 0;
  172. #endif
  173. if (soap_begin_serve(this))
  174. { if (this->error >= SOAP_STOP)
  175. continue;
  176. return this->error;
  177. }
  178. if (dispatch() || (this->fserveloop && this->fserveloop(this)))
  179. {
  180. #ifdef WITH_FASTCGI
  181. soap_send_fault(this);
  182. #else
  183. return soap_send_fault(this);
  184. #endif
  185. }
  186. #ifdef WITH_FASTCGI
  187. soap_destroy(this);
  188. soap_end(this);
  189. } while (1);
  190. #else
  191. } while (this->keep_alive);
  192. #endif
  193. return SOAP_OK;
  194. }
  195. static int serve___tse__GetServiceCapabilities(SearchBindingService*);
  196. static int serve___tse__GetRecordingSummary(SearchBindingService*);
  197. static int serve___tse__GetRecordingInformation(SearchBindingService*);
  198. static int serve___tse__GetMediaAttributes(SearchBindingService*);
  199. static int serve___tse__FindRecordings(SearchBindingService*);
  200. static int serve___tse__GetRecordingSearchResults(SearchBindingService*);
  201. static int serve___tse__FindEvents(SearchBindingService*);
  202. static int serve___tse__GetEventSearchResults(SearchBindingService*);
  203. static int serve___tse__FindPTZPosition(SearchBindingService*);
  204. static int serve___tse__GetPTZPositionSearchResults(SearchBindingService*);
  205. static int serve___tse__GetSearchState(SearchBindingService*);
  206. static int serve___tse__EndSearch(SearchBindingService*);
  207. static int serve___tse__FindMetadata(SearchBindingService*);
  208. static int serve___tse__GetMetadataSearchResults(SearchBindingService*);
  209. int SearchBindingService::dispatch()
  210. { soap_peek_element(this);
  211. if (!soap_match_tag(this, this->tag, "tse:GetServiceCapabilities"))
  212. return serve___tse__GetServiceCapabilities(this);
  213. if (!soap_match_tag(this, this->tag, "tse:GetRecordingSummary"))
  214. return serve___tse__GetRecordingSummary(this);
  215. if (!soap_match_tag(this, this->tag, "tse:GetRecordingInformation"))
  216. return serve___tse__GetRecordingInformation(this);
  217. if (!soap_match_tag(this, this->tag, "tse:GetMediaAttributes"))
  218. return serve___tse__GetMediaAttributes(this);
  219. if (!soap_match_tag(this, this->tag, "tse:FindRecordings"))
  220. return serve___tse__FindRecordings(this);
  221. if (!soap_match_tag(this, this->tag, "tse:GetRecordingSearchResults"))
  222. return serve___tse__GetRecordingSearchResults(this);
  223. if (!soap_match_tag(this, this->tag, "tse:FindEvents"))
  224. return serve___tse__FindEvents(this);
  225. if (!soap_match_tag(this, this->tag, "tse:GetEventSearchResults"))
  226. return serve___tse__GetEventSearchResults(this);
  227. if (!soap_match_tag(this, this->tag, "tse:FindPTZPosition"))
  228. return serve___tse__FindPTZPosition(this);
  229. if (!soap_match_tag(this, this->tag, "tse:GetPTZPositionSearchResults"))
  230. return serve___tse__GetPTZPositionSearchResults(this);
  231. if (!soap_match_tag(this, this->tag, "tse:GetSearchState"))
  232. return serve___tse__GetSearchState(this);
  233. if (!soap_match_tag(this, this->tag, "tse:EndSearch"))
  234. return serve___tse__EndSearch(this);
  235. if (!soap_match_tag(this, this->tag, "tse:FindMetadata"))
  236. return serve___tse__FindMetadata(this);
  237. if (!soap_match_tag(this, this->tag, "tse:GetMetadataSearchResults"))
  238. return serve___tse__GetMetadataSearchResults(this);
  239. return this->error = SOAP_NO_METHOD;
  240. }
  241. static int serve___tse__GetServiceCapabilities(SearchBindingService *soap)
  242. { struct __tse__GetServiceCapabilities soap_tmp___tse__GetServiceCapabilities;
  243. _tse__GetServiceCapabilitiesResponse tse__GetServiceCapabilitiesResponse;
  244. tse__GetServiceCapabilitiesResponse.soap_default(soap);
  245. soap_default___tse__GetServiceCapabilities(soap, &soap_tmp___tse__GetServiceCapabilities);
  246. if (!soap_get___tse__GetServiceCapabilities(soap, &soap_tmp___tse__GetServiceCapabilities, "-tse:GetServiceCapabilities", NULL))
  247. return soap->error;
  248. if (soap_body_end_in(soap)
  249. || soap_envelope_end_in(soap)
  250. || soap_end_recv(soap))
  251. return soap->error;
  252. soap->error = soap->GetServiceCapabilities(soap_tmp___tse__GetServiceCapabilities.tse__GetServiceCapabilities, &tse__GetServiceCapabilitiesResponse);
  253. if (soap->error)
  254. return soap->error;
  255. soap->encodingStyle = NULL;
  256. soap_serializeheader(soap);
  257. tse__GetServiceCapabilitiesResponse.soap_serialize(soap);
  258. if (soap_begin_count(soap))
  259. return soap->error;
  260. if (soap->mode & SOAP_IO_LENGTH)
  261. { if (soap_envelope_begin_out(soap)
  262. || soap_putheader(soap)
  263. || soap_body_begin_out(soap)
  264. || tse__GetServiceCapabilitiesResponse.soap_put(soap, "tse:GetServiceCapabilitiesResponse", "")
  265. || soap_body_end_out(soap)
  266. || soap_envelope_end_out(soap))
  267. return soap->error;
  268. };
  269. if (soap_end_count(soap)
  270. || soap_response(soap, SOAP_OK)
  271. || soap_envelope_begin_out(soap)
  272. || soap_putheader(soap)
  273. || soap_body_begin_out(soap)
  274. || tse__GetServiceCapabilitiesResponse.soap_put(soap, "tse:GetServiceCapabilitiesResponse", "")
  275. || soap_body_end_out(soap)
  276. || soap_envelope_end_out(soap)
  277. || soap_end_send(soap))
  278. return soap->error;
  279. return soap_closesock(soap);
  280. }
  281. static int serve___tse__GetRecordingSummary(SearchBindingService *soap)
  282. { struct __tse__GetRecordingSummary soap_tmp___tse__GetRecordingSummary;
  283. _tse__GetRecordingSummaryResponse tse__GetRecordingSummaryResponse;
  284. tse__GetRecordingSummaryResponse.soap_default(soap);
  285. soap_default___tse__GetRecordingSummary(soap, &soap_tmp___tse__GetRecordingSummary);
  286. if (!soap_get___tse__GetRecordingSummary(soap, &soap_tmp___tse__GetRecordingSummary, "-tse:GetRecordingSummary", NULL))
  287. return soap->error;
  288. if (soap_body_end_in(soap)
  289. || soap_envelope_end_in(soap)
  290. || soap_end_recv(soap))
  291. return soap->error;
  292. soap->error = soap->GetRecordingSummary(soap_tmp___tse__GetRecordingSummary.tse__GetRecordingSummary, &tse__GetRecordingSummaryResponse);
  293. if (soap->error)
  294. return soap->error;
  295. soap->encodingStyle = NULL;
  296. soap_serializeheader(soap);
  297. tse__GetRecordingSummaryResponse.soap_serialize(soap);
  298. if (soap_begin_count(soap))
  299. return soap->error;
  300. if (soap->mode & SOAP_IO_LENGTH)
  301. { if (soap_envelope_begin_out(soap)
  302. || soap_putheader(soap)
  303. || soap_body_begin_out(soap)
  304. || tse__GetRecordingSummaryResponse.soap_put(soap, "tse:GetRecordingSummaryResponse", "")
  305. || soap_body_end_out(soap)
  306. || soap_envelope_end_out(soap))
  307. return soap->error;
  308. };
  309. if (soap_end_count(soap)
  310. || soap_response(soap, SOAP_OK)
  311. || soap_envelope_begin_out(soap)
  312. || soap_putheader(soap)
  313. || soap_body_begin_out(soap)
  314. || tse__GetRecordingSummaryResponse.soap_put(soap, "tse:GetRecordingSummaryResponse", "")
  315. || soap_body_end_out(soap)
  316. || soap_envelope_end_out(soap)
  317. || soap_end_send(soap))
  318. return soap->error;
  319. return soap_closesock(soap);
  320. }
  321. static int serve___tse__GetRecordingInformation(SearchBindingService *soap)
  322. { struct __tse__GetRecordingInformation soap_tmp___tse__GetRecordingInformation;
  323. _tse__GetRecordingInformationResponse tse__GetRecordingInformationResponse;
  324. tse__GetRecordingInformationResponse.soap_default(soap);
  325. soap_default___tse__GetRecordingInformation(soap, &soap_tmp___tse__GetRecordingInformation);
  326. if (!soap_get___tse__GetRecordingInformation(soap, &soap_tmp___tse__GetRecordingInformation, "-tse:GetRecordingInformation", NULL))
  327. return soap->error;
  328. if (soap_body_end_in(soap)
  329. || soap_envelope_end_in(soap)
  330. || soap_end_recv(soap))
  331. return soap->error;
  332. soap->error = soap->GetRecordingInformation(soap_tmp___tse__GetRecordingInformation.tse__GetRecordingInformation, &tse__GetRecordingInformationResponse);
  333. if (soap->error)
  334. return soap->error;
  335. soap->encodingStyle = NULL;
  336. soap_serializeheader(soap);
  337. tse__GetRecordingInformationResponse.soap_serialize(soap);
  338. if (soap_begin_count(soap))
  339. return soap->error;
  340. if (soap->mode & SOAP_IO_LENGTH)
  341. { if (soap_envelope_begin_out(soap)
  342. || soap_putheader(soap)
  343. || soap_body_begin_out(soap)
  344. || tse__GetRecordingInformationResponse.soap_put(soap, "tse:GetRecordingInformationResponse", "")
  345. || soap_body_end_out(soap)
  346. || soap_envelope_end_out(soap))
  347. return soap->error;
  348. };
  349. if (soap_end_count(soap)
  350. || soap_response(soap, SOAP_OK)
  351. || soap_envelope_begin_out(soap)
  352. || soap_putheader(soap)
  353. || soap_body_begin_out(soap)
  354. || tse__GetRecordingInformationResponse.soap_put(soap, "tse:GetRecordingInformationResponse", "")
  355. || soap_body_end_out(soap)
  356. || soap_envelope_end_out(soap)
  357. || soap_end_send(soap))
  358. return soap->error;
  359. return soap_closesock(soap);
  360. }
  361. static int serve___tse__GetMediaAttributes(SearchBindingService *soap)
  362. { struct __tse__GetMediaAttributes soap_tmp___tse__GetMediaAttributes;
  363. _tse__GetMediaAttributesResponse tse__GetMediaAttributesResponse;
  364. tse__GetMediaAttributesResponse.soap_default(soap);
  365. soap_default___tse__GetMediaAttributes(soap, &soap_tmp___tse__GetMediaAttributes);
  366. if (!soap_get___tse__GetMediaAttributes(soap, &soap_tmp___tse__GetMediaAttributes, "-tse:GetMediaAttributes", NULL))
  367. return soap->error;
  368. if (soap_body_end_in(soap)
  369. || soap_envelope_end_in(soap)
  370. || soap_end_recv(soap))
  371. return soap->error;
  372. soap->error = soap->GetMediaAttributes(soap_tmp___tse__GetMediaAttributes.tse__GetMediaAttributes, &tse__GetMediaAttributesResponse);
  373. if (soap->error)
  374. return soap->error;
  375. soap->encodingStyle = NULL;
  376. soap_serializeheader(soap);
  377. tse__GetMediaAttributesResponse.soap_serialize(soap);
  378. if (soap_begin_count(soap))
  379. return soap->error;
  380. if (soap->mode & SOAP_IO_LENGTH)
  381. { if (soap_envelope_begin_out(soap)
  382. || soap_putheader(soap)
  383. || soap_body_begin_out(soap)
  384. || tse__GetMediaAttributesResponse.soap_put(soap, "tse:GetMediaAttributesResponse", "")
  385. || soap_body_end_out(soap)
  386. || soap_envelope_end_out(soap))
  387. return soap->error;
  388. };
  389. if (soap_end_count(soap)
  390. || soap_response(soap, SOAP_OK)
  391. || soap_envelope_begin_out(soap)
  392. || soap_putheader(soap)
  393. || soap_body_begin_out(soap)
  394. || tse__GetMediaAttributesResponse.soap_put(soap, "tse:GetMediaAttributesResponse", "")
  395. || soap_body_end_out(soap)
  396. || soap_envelope_end_out(soap)
  397. || soap_end_send(soap))
  398. return soap->error;
  399. return soap_closesock(soap);
  400. }
  401. static int serve___tse__FindRecordings(SearchBindingService *soap)
  402. { struct __tse__FindRecordings soap_tmp___tse__FindRecordings;
  403. _tse__FindRecordingsResponse tse__FindRecordingsResponse;
  404. tse__FindRecordingsResponse.soap_default(soap);
  405. soap_default___tse__FindRecordings(soap, &soap_tmp___tse__FindRecordings);
  406. if (!soap_get___tse__FindRecordings(soap, &soap_tmp___tse__FindRecordings, "-tse:FindRecordings", NULL))
  407. return soap->error;
  408. if (soap_body_end_in(soap)
  409. || soap_envelope_end_in(soap)
  410. || soap_end_recv(soap))
  411. return soap->error;
  412. soap->error = soap->FindRecordings(soap_tmp___tse__FindRecordings.tse__FindRecordings, &tse__FindRecordingsResponse);
  413. if (soap->error)
  414. return soap->error;
  415. soap->encodingStyle = NULL;
  416. soap_serializeheader(soap);
  417. tse__FindRecordingsResponse.soap_serialize(soap);
  418. if (soap_begin_count(soap))
  419. return soap->error;
  420. if (soap->mode & SOAP_IO_LENGTH)
  421. { if (soap_envelope_begin_out(soap)
  422. || soap_putheader(soap)
  423. || soap_body_begin_out(soap)
  424. || tse__FindRecordingsResponse.soap_put(soap, "tse:FindRecordingsResponse", "")
  425. || soap_body_end_out(soap)
  426. || soap_envelope_end_out(soap))
  427. return soap->error;
  428. };
  429. if (soap_end_count(soap)
  430. || soap_response(soap, SOAP_OK)
  431. || soap_envelope_begin_out(soap)
  432. || soap_putheader(soap)
  433. || soap_body_begin_out(soap)
  434. || tse__FindRecordingsResponse.soap_put(soap, "tse:FindRecordingsResponse", "")
  435. || soap_body_end_out(soap)
  436. || soap_envelope_end_out(soap)
  437. || soap_end_send(soap))
  438. return soap->error;
  439. return soap_closesock(soap);
  440. }
  441. static int serve___tse__GetRecordingSearchResults(SearchBindingService *soap)
  442. { struct __tse__GetRecordingSearchResults soap_tmp___tse__GetRecordingSearchResults;
  443. _tse__GetRecordingSearchResultsResponse tse__GetRecordingSearchResultsResponse;
  444. tse__GetRecordingSearchResultsResponse.soap_default(soap);
  445. soap_default___tse__GetRecordingSearchResults(soap, &soap_tmp___tse__GetRecordingSearchResults);
  446. if (!soap_get___tse__GetRecordingSearchResults(soap, &soap_tmp___tse__GetRecordingSearchResults, "-tse:GetRecordingSearchResults", NULL))
  447. return soap->error;
  448. if (soap_body_end_in(soap)
  449. || soap_envelope_end_in(soap)
  450. || soap_end_recv(soap))
  451. return soap->error;
  452. soap->error = soap->GetRecordingSearchResults(soap_tmp___tse__GetRecordingSearchResults.tse__GetRecordingSearchResults, &tse__GetRecordingSearchResultsResponse);
  453. if (soap->error)
  454. return soap->error;
  455. soap->encodingStyle = NULL;
  456. soap_serializeheader(soap);
  457. tse__GetRecordingSearchResultsResponse.soap_serialize(soap);
  458. if (soap_begin_count(soap))
  459. return soap->error;
  460. if (soap->mode & SOAP_IO_LENGTH)
  461. { if (soap_envelope_begin_out(soap)
  462. || soap_putheader(soap)
  463. || soap_body_begin_out(soap)
  464. || tse__GetRecordingSearchResultsResponse.soap_put(soap, "tse:GetRecordingSearchResultsResponse", "")
  465. || soap_body_end_out(soap)
  466. || soap_envelope_end_out(soap))
  467. return soap->error;
  468. };
  469. if (soap_end_count(soap)
  470. || soap_response(soap, SOAP_OK)
  471. || soap_envelope_begin_out(soap)
  472. || soap_putheader(soap)
  473. || soap_body_begin_out(soap)
  474. || tse__GetRecordingSearchResultsResponse.soap_put(soap, "tse:GetRecordingSearchResultsResponse", "")
  475. || soap_body_end_out(soap)
  476. || soap_envelope_end_out(soap)
  477. || soap_end_send(soap))
  478. return soap->error;
  479. return soap_closesock(soap);
  480. }
  481. static int serve___tse__FindEvents(SearchBindingService *soap)
  482. { struct __tse__FindEvents soap_tmp___tse__FindEvents;
  483. _tse__FindEventsResponse tse__FindEventsResponse;
  484. tse__FindEventsResponse.soap_default(soap);
  485. soap_default___tse__FindEvents(soap, &soap_tmp___tse__FindEvents);
  486. if (!soap_get___tse__FindEvents(soap, &soap_tmp___tse__FindEvents, "-tse:FindEvents", NULL))
  487. return soap->error;
  488. if (soap_body_end_in(soap)
  489. || soap_envelope_end_in(soap)
  490. || soap_end_recv(soap))
  491. return soap->error;
  492. soap->error = soap->FindEvents(soap_tmp___tse__FindEvents.tse__FindEvents, &tse__FindEventsResponse);
  493. if (soap->error)
  494. return soap->error;
  495. soap->encodingStyle = NULL;
  496. soap_serializeheader(soap);
  497. tse__FindEventsResponse.soap_serialize(soap);
  498. if (soap_begin_count(soap))
  499. return soap->error;
  500. if (soap->mode & SOAP_IO_LENGTH)
  501. { if (soap_envelope_begin_out(soap)
  502. || soap_putheader(soap)
  503. || soap_body_begin_out(soap)
  504. || tse__FindEventsResponse.soap_put(soap, "tse:FindEventsResponse", "")
  505. || soap_body_end_out(soap)
  506. || soap_envelope_end_out(soap))
  507. return soap->error;
  508. };
  509. if (soap_end_count(soap)
  510. || soap_response(soap, SOAP_OK)
  511. || soap_envelope_begin_out(soap)
  512. || soap_putheader(soap)
  513. || soap_body_begin_out(soap)
  514. || tse__FindEventsResponse.soap_put(soap, "tse:FindEventsResponse", "")
  515. || soap_body_end_out(soap)
  516. || soap_envelope_end_out(soap)
  517. || soap_end_send(soap))
  518. return soap->error;
  519. return soap_closesock(soap);
  520. }
  521. static int serve___tse__GetEventSearchResults(SearchBindingService *soap)
  522. { struct __tse__GetEventSearchResults soap_tmp___tse__GetEventSearchResults;
  523. _tse__GetEventSearchResultsResponse tse__GetEventSearchResultsResponse;
  524. tse__GetEventSearchResultsResponse.soap_default(soap);
  525. soap_default___tse__GetEventSearchResults(soap, &soap_tmp___tse__GetEventSearchResults);
  526. if (!soap_get___tse__GetEventSearchResults(soap, &soap_tmp___tse__GetEventSearchResults, "-tse:GetEventSearchResults", NULL))
  527. return soap->error;
  528. if (soap_body_end_in(soap)
  529. || soap_envelope_end_in(soap)
  530. || soap_end_recv(soap))
  531. return soap->error;
  532. soap->error = soap->GetEventSearchResults(soap_tmp___tse__GetEventSearchResults.tse__GetEventSearchResults, &tse__GetEventSearchResultsResponse);
  533. if (soap->error)
  534. return soap->error;
  535. soap->encodingStyle = NULL;
  536. soap_serializeheader(soap);
  537. tse__GetEventSearchResultsResponse.soap_serialize(soap);
  538. if (soap_begin_count(soap))
  539. return soap->error;
  540. if (soap->mode & SOAP_IO_LENGTH)
  541. { if (soap_envelope_begin_out(soap)
  542. || soap_putheader(soap)
  543. || soap_body_begin_out(soap)
  544. || tse__GetEventSearchResultsResponse.soap_put(soap, "tse:GetEventSearchResultsResponse", "")
  545. || soap_body_end_out(soap)
  546. || soap_envelope_end_out(soap))
  547. return soap->error;
  548. };
  549. if (soap_end_count(soap)
  550. || soap_response(soap, SOAP_OK)
  551. || soap_envelope_begin_out(soap)
  552. || soap_putheader(soap)
  553. || soap_body_begin_out(soap)
  554. || tse__GetEventSearchResultsResponse.soap_put(soap, "tse:GetEventSearchResultsResponse", "")
  555. || soap_body_end_out(soap)
  556. || soap_envelope_end_out(soap)
  557. || soap_end_send(soap))
  558. return soap->error;
  559. return soap_closesock(soap);
  560. }
  561. static int serve___tse__FindPTZPosition(SearchBindingService *soap)
  562. { struct __tse__FindPTZPosition soap_tmp___tse__FindPTZPosition;
  563. _tse__FindPTZPositionResponse tse__FindPTZPositionResponse;
  564. tse__FindPTZPositionResponse.soap_default(soap);
  565. soap_default___tse__FindPTZPosition(soap, &soap_tmp___tse__FindPTZPosition);
  566. if (!soap_get___tse__FindPTZPosition(soap, &soap_tmp___tse__FindPTZPosition, "-tse:FindPTZPosition", NULL))
  567. return soap->error;
  568. if (soap_body_end_in(soap)
  569. || soap_envelope_end_in(soap)
  570. || soap_end_recv(soap))
  571. return soap->error;
  572. soap->error = soap->FindPTZPosition(soap_tmp___tse__FindPTZPosition.tse__FindPTZPosition, &tse__FindPTZPositionResponse);
  573. if (soap->error)
  574. return soap->error;
  575. soap->encodingStyle = NULL;
  576. soap_serializeheader(soap);
  577. tse__FindPTZPositionResponse.soap_serialize(soap);
  578. if (soap_begin_count(soap))
  579. return soap->error;
  580. if (soap->mode & SOAP_IO_LENGTH)
  581. { if (soap_envelope_begin_out(soap)
  582. || soap_putheader(soap)
  583. || soap_body_begin_out(soap)
  584. || tse__FindPTZPositionResponse.soap_put(soap, "tse:FindPTZPositionResponse", "")
  585. || soap_body_end_out(soap)
  586. || soap_envelope_end_out(soap))
  587. return soap->error;
  588. };
  589. if (soap_end_count(soap)
  590. || soap_response(soap, SOAP_OK)
  591. || soap_envelope_begin_out(soap)
  592. || soap_putheader(soap)
  593. || soap_body_begin_out(soap)
  594. || tse__FindPTZPositionResponse.soap_put(soap, "tse:FindPTZPositionResponse", "")
  595. || soap_body_end_out(soap)
  596. || soap_envelope_end_out(soap)
  597. || soap_end_send(soap))
  598. return soap->error;
  599. return soap_closesock(soap);
  600. }
  601. static int serve___tse__GetPTZPositionSearchResults(SearchBindingService *soap)
  602. { struct __tse__GetPTZPositionSearchResults soap_tmp___tse__GetPTZPositionSearchResults;
  603. _tse__GetPTZPositionSearchResultsResponse tse__GetPTZPositionSearchResultsResponse;
  604. tse__GetPTZPositionSearchResultsResponse.soap_default(soap);
  605. soap_default___tse__GetPTZPositionSearchResults(soap, &soap_tmp___tse__GetPTZPositionSearchResults);
  606. if (!soap_get___tse__GetPTZPositionSearchResults(soap, &soap_tmp___tse__GetPTZPositionSearchResults, "-tse:GetPTZPositionSearchResults", NULL))
  607. return soap->error;
  608. if (soap_body_end_in(soap)
  609. || soap_envelope_end_in(soap)
  610. || soap_end_recv(soap))
  611. return soap->error;
  612. soap->error = soap->GetPTZPositionSearchResults(soap_tmp___tse__GetPTZPositionSearchResults.tse__GetPTZPositionSearchResults, &tse__GetPTZPositionSearchResultsResponse);
  613. if (soap->error)
  614. return soap->error;
  615. soap->encodingStyle = NULL;
  616. soap_serializeheader(soap);
  617. tse__GetPTZPositionSearchResultsResponse.soap_serialize(soap);
  618. if (soap_begin_count(soap))
  619. return soap->error;
  620. if (soap->mode & SOAP_IO_LENGTH)
  621. { if (soap_envelope_begin_out(soap)
  622. || soap_putheader(soap)
  623. || soap_body_begin_out(soap)
  624. || tse__GetPTZPositionSearchResultsResponse.soap_put(soap, "tse:GetPTZPositionSearchResultsResponse", "")
  625. || soap_body_end_out(soap)
  626. || soap_envelope_end_out(soap))
  627. return soap->error;
  628. };
  629. if (soap_end_count(soap)
  630. || soap_response(soap, SOAP_OK)
  631. || soap_envelope_begin_out(soap)
  632. || soap_putheader(soap)
  633. || soap_body_begin_out(soap)
  634. || tse__GetPTZPositionSearchResultsResponse.soap_put(soap, "tse:GetPTZPositionSearchResultsResponse", "")
  635. || soap_body_end_out(soap)
  636. || soap_envelope_end_out(soap)
  637. || soap_end_send(soap))
  638. return soap->error;
  639. return soap_closesock(soap);
  640. }
  641. static int serve___tse__GetSearchState(SearchBindingService *soap)
  642. { struct __tse__GetSearchState soap_tmp___tse__GetSearchState;
  643. _tse__GetSearchStateResponse tse__GetSearchStateResponse;
  644. tse__GetSearchStateResponse.soap_default(soap);
  645. soap_default___tse__GetSearchState(soap, &soap_tmp___tse__GetSearchState);
  646. if (!soap_get___tse__GetSearchState(soap, &soap_tmp___tse__GetSearchState, "-tse:GetSearchState", NULL))
  647. return soap->error;
  648. if (soap_body_end_in(soap)
  649. || soap_envelope_end_in(soap)
  650. || soap_end_recv(soap))
  651. return soap->error;
  652. soap->error = soap->GetSearchState(soap_tmp___tse__GetSearchState.tse__GetSearchState, &tse__GetSearchStateResponse);
  653. if (soap->error)
  654. return soap->error;
  655. soap->encodingStyle = NULL;
  656. soap_serializeheader(soap);
  657. tse__GetSearchStateResponse.soap_serialize(soap);
  658. if (soap_begin_count(soap))
  659. return soap->error;
  660. if (soap->mode & SOAP_IO_LENGTH)
  661. { if (soap_envelope_begin_out(soap)
  662. || soap_putheader(soap)
  663. || soap_body_begin_out(soap)
  664. || tse__GetSearchStateResponse.soap_put(soap, "tse:GetSearchStateResponse", "")
  665. || soap_body_end_out(soap)
  666. || soap_envelope_end_out(soap))
  667. return soap->error;
  668. };
  669. if (soap_end_count(soap)
  670. || soap_response(soap, SOAP_OK)
  671. || soap_envelope_begin_out(soap)
  672. || soap_putheader(soap)
  673. || soap_body_begin_out(soap)
  674. || tse__GetSearchStateResponse.soap_put(soap, "tse:GetSearchStateResponse", "")
  675. || soap_body_end_out(soap)
  676. || soap_envelope_end_out(soap)
  677. || soap_end_send(soap))
  678. return soap->error;
  679. return soap_closesock(soap);
  680. }
  681. static int serve___tse__EndSearch(SearchBindingService *soap)
  682. { struct __tse__EndSearch soap_tmp___tse__EndSearch;
  683. _tse__EndSearchResponse tse__EndSearchResponse;
  684. tse__EndSearchResponse.soap_default(soap);
  685. soap_default___tse__EndSearch(soap, &soap_tmp___tse__EndSearch);
  686. if (!soap_get___tse__EndSearch(soap, &soap_tmp___tse__EndSearch, "-tse:EndSearch", NULL))
  687. return soap->error;
  688. if (soap_body_end_in(soap)
  689. || soap_envelope_end_in(soap)
  690. || soap_end_recv(soap))
  691. return soap->error;
  692. soap->error = soap->EndSearch(soap_tmp___tse__EndSearch.tse__EndSearch, &tse__EndSearchResponse);
  693. if (soap->error)
  694. return soap->error;
  695. soap->encodingStyle = NULL;
  696. soap_serializeheader(soap);
  697. tse__EndSearchResponse.soap_serialize(soap);
  698. if (soap_begin_count(soap))
  699. return soap->error;
  700. if (soap->mode & SOAP_IO_LENGTH)
  701. { if (soap_envelope_begin_out(soap)
  702. || soap_putheader(soap)
  703. || soap_body_begin_out(soap)
  704. || tse__EndSearchResponse.soap_put(soap, "tse:EndSearchResponse", "")
  705. || soap_body_end_out(soap)
  706. || soap_envelope_end_out(soap))
  707. return soap->error;
  708. };
  709. if (soap_end_count(soap)
  710. || soap_response(soap, SOAP_OK)
  711. || soap_envelope_begin_out(soap)
  712. || soap_putheader(soap)
  713. || soap_body_begin_out(soap)
  714. || tse__EndSearchResponse.soap_put(soap, "tse:EndSearchResponse", "")
  715. || soap_body_end_out(soap)
  716. || soap_envelope_end_out(soap)
  717. || soap_end_send(soap))
  718. return soap->error;
  719. return soap_closesock(soap);
  720. }
  721. static int serve___tse__FindMetadata(SearchBindingService *soap)
  722. { struct __tse__FindMetadata soap_tmp___tse__FindMetadata;
  723. _tse__FindMetadataResponse tse__FindMetadataResponse;
  724. tse__FindMetadataResponse.soap_default(soap);
  725. soap_default___tse__FindMetadata(soap, &soap_tmp___tse__FindMetadata);
  726. if (!soap_get___tse__FindMetadata(soap, &soap_tmp___tse__FindMetadata, "-tse:FindMetadata", NULL))
  727. return soap->error;
  728. if (soap_body_end_in(soap)
  729. || soap_envelope_end_in(soap)
  730. || soap_end_recv(soap))
  731. return soap->error;
  732. soap->error = soap->FindMetadata(soap_tmp___tse__FindMetadata.tse__FindMetadata, &tse__FindMetadataResponse);
  733. if (soap->error)
  734. return soap->error;
  735. soap->encodingStyle = NULL;
  736. soap_serializeheader(soap);
  737. tse__FindMetadataResponse.soap_serialize(soap);
  738. if (soap_begin_count(soap))
  739. return soap->error;
  740. if (soap->mode & SOAP_IO_LENGTH)
  741. { if (soap_envelope_begin_out(soap)
  742. || soap_putheader(soap)
  743. || soap_body_begin_out(soap)
  744. || tse__FindMetadataResponse.soap_put(soap, "tse:FindMetadataResponse", "")
  745. || soap_body_end_out(soap)
  746. || soap_envelope_end_out(soap))
  747. return soap->error;
  748. };
  749. if (soap_end_count(soap)
  750. || soap_response(soap, SOAP_OK)
  751. || soap_envelope_begin_out(soap)
  752. || soap_putheader(soap)
  753. || soap_body_begin_out(soap)
  754. || tse__FindMetadataResponse.soap_put(soap, "tse:FindMetadataResponse", "")
  755. || soap_body_end_out(soap)
  756. || soap_envelope_end_out(soap)
  757. || soap_end_send(soap))
  758. return soap->error;
  759. return soap_closesock(soap);
  760. }
  761. static int serve___tse__GetMetadataSearchResults(SearchBindingService *soap)
  762. { struct __tse__GetMetadataSearchResults soap_tmp___tse__GetMetadataSearchResults;
  763. _tse__GetMetadataSearchResultsResponse tse__GetMetadataSearchResultsResponse;
  764. tse__GetMetadataSearchResultsResponse.soap_default(soap);
  765. soap_default___tse__GetMetadataSearchResults(soap, &soap_tmp___tse__GetMetadataSearchResults);
  766. if (!soap_get___tse__GetMetadataSearchResults(soap, &soap_tmp___tse__GetMetadataSearchResults, "-tse:GetMetadataSearchResults", NULL))
  767. return soap->error;
  768. if (soap_body_end_in(soap)
  769. || soap_envelope_end_in(soap)
  770. || soap_end_recv(soap))
  771. return soap->error;
  772. soap->error = soap->GetMetadataSearchResults(soap_tmp___tse__GetMetadataSearchResults.tse__GetMetadataSearchResults, &tse__GetMetadataSearchResultsResponse);
  773. if (soap->error)
  774. return soap->error;
  775. soap->encodingStyle = NULL;
  776. soap_serializeheader(soap);
  777. tse__GetMetadataSearchResultsResponse.soap_serialize(soap);
  778. if (soap_begin_count(soap))
  779. return soap->error;
  780. if (soap->mode & SOAP_IO_LENGTH)
  781. { if (soap_envelope_begin_out(soap)
  782. || soap_putheader(soap)
  783. || soap_body_begin_out(soap)
  784. || tse__GetMetadataSearchResultsResponse.soap_put(soap, "tse:GetMetadataSearchResultsResponse", "")
  785. || soap_body_end_out(soap)
  786. || soap_envelope_end_out(soap))
  787. return soap->error;
  788. };
  789. if (soap_end_count(soap)
  790. || soap_response(soap, SOAP_OK)
  791. || soap_envelope_begin_out(soap)
  792. || soap_putheader(soap)
  793. || soap_body_begin_out(soap)
  794. || tse__GetMetadataSearchResultsResponse.soap_put(soap, "tse:GetMetadataSearchResultsResponse", "")
  795. || soap_body_end_out(soap)
  796. || soap_envelope_end_out(soap)
  797. || soap_end_send(soap))
  798. return soap->error;
  799. return soap_closesock(soap);
  800. }
  801. /* End of server object code */