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.

691 lines
28 KiB

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /* soapDisplayBindingProxy.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 "soapDisplayBindingProxy.h"
  10. DisplayBindingProxy::DisplayBindingProxy()
  11. { DisplayBindingProxy_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
  12. }
  13. DisplayBindingProxy::DisplayBindingProxy(const struct soap &_soap) : soap(_soap)
  14. { }
  15. DisplayBindingProxy::DisplayBindingProxy(const char *url)
  16. { DisplayBindingProxy_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
  17. soap_endpoint = url;
  18. }
  19. DisplayBindingProxy::DisplayBindingProxy(soap_mode iomode)
  20. { DisplayBindingProxy_init(iomode, iomode);
  21. }
  22. DisplayBindingProxy::DisplayBindingProxy(const char *url, soap_mode iomode)
  23. { DisplayBindingProxy_init(iomode, iomode);
  24. soap_endpoint = url;
  25. }
  26. DisplayBindingProxy::DisplayBindingProxy(soap_mode imode, soap_mode omode)
  27. { DisplayBindingProxy_init(imode, omode);
  28. }
  29. DisplayBindingProxy::~DisplayBindingProxy()
  30. { }
  31. void DisplayBindingProxy::DisplayBindingProxy_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 DisplayBindingProxy::destroy()
  75. { soap_destroy(this);
  76. soap_end(this);
  77. }
  78. void DisplayBindingProxy::reset()
  79. { destroy();
  80. soap_done(this);
  81. soap_initialize(this);
  82. DisplayBindingProxy_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
  83. }
  84. void DisplayBindingProxy::soap_noheader()
  85. { this->header = NULL;
  86. }
  87. void DisplayBindingProxy::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 *DisplayBindingProxy::soap_header()
  108. { return this->header;
  109. }
  110. const SOAP_ENV__Fault *DisplayBindingProxy::soap_fault()
  111. { return this->fault;
  112. }
  113. const char *DisplayBindingProxy::soap_fault_string()
  114. { return *soap_faultstring(this);
  115. }
  116. const char *DisplayBindingProxy::soap_fault_detail()
  117. { return *soap_faultdetail(this);
  118. }
  119. int DisplayBindingProxy::soap_close_socket()
  120. { return soap_closesock(this);
  121. }
  122. int DisplayBindingProxy::soap_force_close_socket()
  123. { return soap_force_closesock(this);
  124. }
  125. void DisplayBindingProxy::soap_print_fault(FILE *fd)
  126. { ::soap_print_fault(this, fd);
  127. }
  128. #ifndef WITH_LEAN
  129. #ifndef WITH_COMPAT
  130. void DisplayBindingProxy::soap_stream_fault(std::ostream& os)
  131. { ::soap_stream_fault(this, os);
  132. }
  133. #endif
  134. char *DisplayBindingProxy::soap_sprint_fault(char *buf, size_t len)
  135. { return ::soap_sprint_fault(this, buf, len);
  136. }
  137. #endif
  138. int DisplayBindingProxy::GetServiceCapabilities(const char *endpoint, const char *soap_action, _tls__GetServiceCapabilities *tls__GetServiceCapabilities, _tls__GetServiceCapabilitiesResponse *tls__GetServiceCapabilitiesResponse)
  139. { struct soap *soap = this;
  140. struct __tls__GetServiceCapabilities soap_tmp___tls__GetServiceCapabilities;
  141. if (endpoint)
  142. soap_endpoint = endpoint;
  143. if (soap_action == NULL)
  144. soap_action = "http://www.onvif.org/ver10/display/wsdl/GetServiceCapabilities";
  145. soap_begin(soap);
  146. soap->encodingStyle = NULL;
  147. soap_tmp___tls__GetServiceCapabilities.tls__GetServiceCapabilities = tls__GetServiceCapabilities;
  148. soap_set_version(soap, 2); /* SOAP1.2 */
  149. soap_serializeheader(soap);
  150. soap_serialize___tls__GetServiceCapabilities(soap, &soap_tmp___tls__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___tls__GetServiceCapabilities(soap, &soap_tmp___tls__GetServiceCapabilities, "-tls: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___tls__GetServiceCapabilities(soap, &soap_tmp___tls__GetServiceCapabilities, "-tls: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 (!tls__GetServiceCapabilitiesResponse)
  174. return soap_closesock(soap);
  175. tls__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. tls__GetServiceCapabilitiesResponse->soap_get(soap, "tls: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 DisplayBindingProxy::GetLayout(const char *endpoint, const char *soap_action, _tls__GetLayout *tls__GetLayout, _tls__GetLayoutResponse *tls__GetLayoutResponse)
  191. { struct soap *soap = this;
  192. struct __tls__GetLayout soap_tmp___tls__GetLayout;
  193. if (endpoint)
  194. soap_endpoint = endpoint;
  195. if (soap_action == NULL)
  196. soap_action = "http://www.onvif.org/ver10/display/wsdl/GetLayout";
  197. soap_begin(soap);
  198. soap->encodingStyle = NULL;
  199. soap_tmp___tls__GetLayout.tls__GetLayout = tls__GetLayout;
  200. soap_set_version(soap, 2); /* SOAP1.2 */
  201. soap_serializeheader(soap);
  202. soap_serialize___tls__GetLayout(soap, &soap_tmp___tls__GetLayout);
  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___tls__GetLayout(soap, &soap_tmp___tls__GetLayout, "-tls:GetLayout", 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___tls__GetLayout(soap, &soap_tmp___tls__GetLayout, "-tls:GetLayout", 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 (!tls__GetLayoutResponse)
  226. return soap_closesock(soap);
  227. tls__GetLayoutResponse->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. tls__GetLayoutResponse->soap_get(soap, "tls:GetLayoutResponse", "");
  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 DisplayBindingProxy::SetLayout(const char *endpoint, const char *soap_action, _tls__SetLayout *tls__SetLayout, _tls__SetLayoutResponse *tls__SetLayoutResponse)
  243. { struct soap *soap = this;
  244. struct __tls__SetLayout soap_tmp___tls__SetLayout;
  245. if (endpoint)
  246. soap_endpoint = endpoint;
  247. if (soap_action == NULL)
  248. soap_action = "http://www.onvif.org/ver10/display/wsdl/SetLayout";
  249. soap_begin(soap);
  250. soap->encodingStyle = NULL;
  251. soap_tmp___tls__SetLayout.tls__SetLayout = tls__SetLayout;
  252. soap_set_version(soap, 2); /* SOAP1.2 */
  253. soap_serializeheader(soap);
  254. soap_serialize___tls__SetLayout(soap, &soap_tmp___tls__SetLayout);
  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___tls__SetLayout(soap, &soap_tmp___tls__SetLayout, "-tls:SetLayout", 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___tls__SetLayout(soap, &soap_tmp___tls__SetLayout, "-tls:SetLayout", 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 (!tls__SetLayoutResponse)
  278. return soap_closesock(soap);
  279. tls__SetLayoutResponse->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. tls__SetLayoutResponse->soap_get(soap, "tls:SetLayoutResponse", "");
  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 DisplayBindingProxy::GetDisplayOptions(const char *endpoint, const char *soap_action, _tls__GetDisplayOptions *tls__GetDisplayOptions, _tls__GetDisplayOptionsResponse *tls__GetDisplayOptionsResponse)
  295. { struct soap *soap = this;
  296. struct __tls__GetDisplayOptions soap_tmp___tls__GetDisplayOptions;
  297. if (endpoint)
  298. soap_endpoint = endpoint;
  299. if (soap_action == NULL)
  300. soap_action = "http://www.onvif.org/ver10/display/wsdl/GetDisplayOptions";
  301. soap_begin(soap);
  302. soap->encodingStyle = NULL;
  303. soap_tmp___tls__GetDisplayOptions.tls__GetDisplayOptions = tls__GetDisplayOptions;
  304. soap_set_version(soap, 2); /* SOAP1.2 */
  305. soap_serializeheader(soap);
  306. soap_serialize___tls__GetDisplayOptions(soap, &soap_tmp___tls__GetDisplayOptions);
  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___tls__GetDisplayOptions(soap, &soap_tmp___tls__GetDisplayOptions, "-tls:GetDisplayOptions", 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___tls__GetDisplayOptions(soap, &soap_tmp___tls__GetDisplayOptions, "-tls:GetDisplayOptions", 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 (!tls__GetDisplayOptionsResponse)
  330. return soap_closesock(soap);
  331. tls__GetDisplayOptionsResponse->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. tls__GetDisplayOptionsResponse->soap_get(soap, "tls:GetDisplayOptionsResponse", "");
  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 DisplayBindingProxy::GetPaneConfigurations(const char *endpoint, const char *soap_action, _tls__GetPaneConfigurations *tls__GetPaneConfigurations, _tls__GetPaneConfigurationsResponse *tls__GetPaneConfigurationsResponse)
  347. { struct soap *soap = this;
  348. struct __tls__GetPaneConfigurations soap_tmp___tls__GetPaneConfigurations;
  349. if (endpoint)
  350. soap_endpoint = endpoint;
  351. if (soap_action == NULL)
  352. soap_action = "http://www.onvif.org/ver10/display/wsdl/GetPaneConfigurations";
  353. soap_begin(soap);
  354. soap->encodingStyle = NULL;
  355. soap_tmp___tls__GetPaneConfigurations.tls__GetPaneConfigurations = tls__GetPaneConfigurations;
  356. soap_set_version(soap, 2); /* SOAP1.2 */
  357. soap_serializeheader(soap);
  358. soap_serialize___tls__GetPaneConfigurations(soap, &soap_tmp___tls__GetPaneConfigurations);
  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___tls__GetPaneConfigurations(soap, &soap_tmp___tls__GetPaneConfigurations, "-tls:GetPaneConfigurations", 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___tls__GetPaneConfigurations(soap, &soap_tmp___tls__GetPaneConfigurations, "-tls:GetPaneConfigurations", 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 (!tls__GetPaneConfigurationsResponse)
  382. return soap_closesock(soap);
  383. tls__GetPaneConfigurationsResponse->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. tls__GetPaneConfigurationsResponse->soap_get(soap, "tls:GetPaneConfigurationsResponse", "");
  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 DisplayBindingProxy::GetPaneConfiguration(const char *endpoint, const char *soap_action, _tls__GetPaneConfiguration *tls__GetPaneConfiguration, _tls__GetPaneConfigurationResponse *tls__GetPaneConfigurationResponse)
  399. { struct soap *soap = this;
  400. struct __tls__GetPaneConfiguration soap_tmp___tls__GetPaneConfiguration;
  401. if (endpoint)
  402. soap_endpoint = endpoint;
  403. if (soap_action == NULL)
  404. soap_action = "http://www.onvif.org/ver10/display/wsdl/GetPaneConfiguration";
  405. soap_begin(soap);
  406. soap->encodingStyle = NULL;
  407. soap_tmp___tls__GetPaneConfiguration.tls__GetPaneConfiguration = tls__GetPaneConfiguration;
  408. soap_set_version(soap, 2); /* SOAP1.2 */
  409. soap_serializeheader(soap);
  410. soap_serialize___tls__GetPaneConfiguration(soap, &soap_tmp___tls__GetPaneConfiguration);
  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___tls__GetPaneConfiguration(soap, &soap_tmp___tls__GetPaneConfiguration, "-tls:GetPaneConfiguration", 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___tls__GetPaneConfiguration(soap, &soap_tmp___tls__GetPaneConfiguration, "-tls:GetPaneConfiguration", 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 (!tls__GetPaneConfigurationResponse)
  434. return soap_closesock(soap);
  435. tls__GetPaneConfigurationResponse->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. tls__GetPaneConfigurationResponse->soap_get(soap, "tls:GetPaneConfigurationResponse", "");
  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 DisplayBindingProxy::SetPaneConfigurations(const char *endpoint, const char *soap_action, _tls__SetPaneConfigurations *tls__SetPaneConfigurations, _tls__SetPaneConfigurationsResponse *tls__SetPaneConfigurationsResponse)
  451. { struct soap *soap = this;
  452. struct __tls__SetPaneConfigurations soap_tmp___tls__SetPaneConfigurations;
  453. if (endpoint)
  454. soap_endpoint = endpoint;
  455. if (soap_action == NULL)
  456. soap_action = "http://www.onvif.org/ver10/display/wsdl/SetPaneConfigurations";
  457. soap_begin(soap);
  458. soap->encodingStyle = NULL;
  459. soap_tmp___tls__SetPaneConfigurations.tls__SetPaneConfigurations = tls__SetPaneConfigurations;
  460. soap_set_version(soap, 2); /* SOAP1.2 */
  461. soap_serializeheader(soap);
  462. soap_serialize___tls__SetPaneConfigurations(soap, &soap_tmp___tls__SetPaneConfigurations);
  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___tls__SetPaneConfigurations(soap, &soap_tmp___tls__SetPaneConfigurations, "-tls:SetPaneConfigurations", 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___tls__SetPaneConfigurations(soap, &soap_tmp___tls__SetPaneConfigurations, "-tls:SetPaneConfigurations", 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 (!tls__SetPaneConfigurationsResponse)
  486. return soap_closesock(soap);
  487. tls__SetPaneConfigurationsResponse->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. tls__SetPaneConfigurationsResponse->soap_get(soap, "tls:SetPaneConfigurationsResponse", "");
  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 DisplayBindingProxy::SetPaneConfiguration(const char *endpoint, const char *soap_action, _tls__SetPaneConfiguration *tls__SetPaneConfiguration, _tls__SetPaneConfigurationResponse *tls__SetPaneConfigurationResponse)
  503. { struct soap *soap = this;
  504. struct __tls__SetPaneConfiguration soap_tmp___tls__SetPaneConfiguration;
  505. if (endpoint)
  506. soap_endpoint = endpoint;
  507. if (soap_action == NULL)
  508. soap_action = "http://www.onvif.org/ver10/display/wsdl/SetPaneConfiguration";
  509. soap_begin(soap);
  510. soap->encodingStyle = NULL;
  511. soap_tmp___tls__SetPaneConfiguration.tls__SetPaneConfiguration = tls__SetPaneConfiguration;
  512. soap_set_version(soap, 2); /* SOAP1.2 */
  513. soap_serializeheader(soap);
  514. soap_serialize___tls__SetPaneConfiguration(soap, &soap_tmp___tls__SetPaneConfiguration);
  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___tls__SetPaneConfiguration(soap, &soap_tmp___tls__SetPaneConfiguration, "-tls:SetPaneConfiguration", 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___tls__SetPaneConfiguration(soap, &soap_tmp___tls__SetPaneConfiguration, "-tls:SetPaneConfiguration", 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 (!tls__SetPaneConfigurationResponse)
  538. return soap_closesock(soap);
  539. tls__SetPaneConfigurationResponse->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. tls__SetPaneConfigurationResponse->soap_get(soap, "tls:SetPaneConfigurationResponse", "");
  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 DisplayBindingProxy::CreatePaneConfiguration(const char *endpoint, const char *soap_action, _tls__CreatePaneConfiguration *tls__CreatePaneConfiguration, _tls__CreatePaneConfigurationResponse *tls__CreatePaneConfigurationResponse)
  555. { struct soap *soap = this;
  556. struct __tls__CreatePaneConfiguration soap_tmp___tls__CreatePaneConfiguration;
  557. if (endpoint)
  558. soap_endpoint = endpoint;
  559. if (soap_action == NULL)
  560. soap_action = "http://www.onvif.org/ver10/display/wsdl/CreatePaneConfiguration";
  561. soap_begin(soap);
  562. soap->encodingStyle = NULL;
  563. soap_tmp___tls__CreatePaneConfiguration.tls__CreatePaneConfiguration = tls__CreatePaneConfiguration;
  564. soap_set_version(soap, 2); /* SOAP1.2 */
  565. soap_serializeheader(soap);
  566. soap_serialize___tls__CreatePaneConfiguration(soap, &soap_tmp___tls__CreatePaneConfiguration);
  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___tls__CreatePaneConfiguration(soap, &soap_tmp___tls__CreatePaneConfiguration, "-tls:CreatePaneConfiguration", 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___tls__CreatePaneConfiguration(soap, &soap_tmp___tls__CreatePaneConfiguration, "-tls:CreatePaneConfiguration", 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 (!tls__CreatePaneConfigurationResponse)
  590. return soap_closesock(soap);
  591. tls__CreatePaneConfigurationResponse->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. tls__CreatePaneConfigurationResponse->soap_get(soap, "tls:CreatePaneConfigurationResponse", "");
  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 DisplayBindingProxy::DeletePaneConfiguration(const char *endpoint, const char *soap_action, _tls__DeletePaneConfiguration *tls__DeletePaneConfiguration, _tls__DeletePaneConfigurationResponse *tls__DeletePaneConfigurationResponse)
  607. { struct soap *soap = this;
  608. struct __tls__DeletePaneConfiguration soap_tmp___tls__DeletePaneConfiguration;
  609. if (endpoint)
  610. soap_endpoint = endpoint;
  611. if (soap_action == NULL)
  612. soap_action = "http://www.onvif.org/ver10/display/wsdl/DeletePaneConfiguration";
  613. soap_begin(soap);
  614. soap->encodingStyle = NULL;
  615. soap_tmp___tls__DeletePaneConfiguration.tls__DeletePaneConfiguration = tls__DeletePaneConfiguration;
  616. soap_set_version(soap, 2); /* SOAP1.2 */
  617. soap_serializeheader(soap);
  618. soap_serialize___tls__DeletePaneConfiguration(soap, &soap_tmp___tls__DeletePaneConfiguration);
  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___tls__DeletePaneConfiguration(soap, &soap_tmp___tls__DeletePaneConfiguration, "-tls:DeletePaneConfiguration", 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___tls__DeletePaneConfiguration(soap, &soap_tmp___tls__DeletePaneConfiguration, "-tls:DeletePaneConfiguration", 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 (!tls__DeletePaneConfigurationResponse)
  642. return soap_closesock(soap);
  643. tls__DeletePaneConfigurationResponse->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. tls__DeletePaneConfigurationResponse->soap_get(soap, "tls:DeletePaneConfigurationResponse", "");
  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. /* End of client proxy code */