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.

672 lines
26 KiB

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /* soapDisplayBindingService.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 "soapDisplayBindingService.h"
  10. DisplayBindingService::DisplayBindingService()
  11. { DisplayBindingService_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
  12. }
  13. DisplayBindingService::DisplayBindingService(const struct soap &_soap) : soap(_soap)
  14. { }
  15. DisplayBindingService::DisplayBindingService(soap_mode iomode)
  16. { DisplayBindingService_init(iomode, iomode);
  17. }
  18. DisplayBindingService::DisplayBindingService(soap_mode imode, soap_mode omode)
  19. { DisplayBindingService_init(imode, omode);
  20. }
  21. DisplayBindingService::~DisplayBindingService()
  22. { }
  23. void DisplayBindingService::DisplayBindingService_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 DisplayBindingService::destroy()
  66. { soap_destroy(this);
  67. soap_end(this);
  68. }
  69. void DisplayBindingService::reset()
  70. { destroy();
  71. soap_done(this);
  72. soap_initialize(this);
  73. DisplayBindingService_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
  74. }
  75. #ifndef WITH_PURE_VIRTUAL
  76. DisplayBindingService *DisplayBindingService::copy()
  77. { DisplayBindingService *dup = SOAP_NEW_COPY(DisplayBindingService(*(struct soap*)this));
  78. return dup;
  79. }
  80. #endif
  81. int DisplayBindingService::soap_close_socket()
  82. { return soap_closesock(this);
  83. }
  84. int DisplayBindingService::soap_force_close_socket()
  85. { return soap_force_closesock(this);
  86. }
  87. int DisplayBindingService::soap_senderfault(const char *string, const char *detailXML)
  88. { return ::soap_sender_fault(this, string, detailXML);
  89. }
  90. int DisplayBindingService::soap_senderfault(const char *subcodeQName, const char *string, const char *detailXML)
  91. { return ::soap_sender_fault_subcode(this, subcodeQName, string, detailXML);
  92. }
  93. int DisplayBindingService::soap_receiverfault(const char *string, const char *detailXML)
  94. { return ::soap_receiver_fault(this, string, detailXML);
  95. }
  96. int DisplayBindingService::soap_receiverfault(const char *subcodeQName, const char *string, const char *detailXML)
  97. { return ::soap_receiver_fault_subcode(this, subcodeQName, string, detailXML);
  98. }
  99. void DisplayBindingService::soap_print_fault(FILE *fd)
  100. { ::soap_print_fault(this, fd);
  101. }
  102. #ifndef WITH_LEAN
  103. #ifndef WITH_COMPAT
  104. void DisplayBindingService::soap_stream_fault(std::ostream& os)
  105. { ::soap_stream_fault(this, os);
  106. }
  107. #endif
  108. char *DisplayBindingService::soap_sprint_fault(char *buf, size_t len)
  109. { return ::soap_sprint_fault(this, buf, len);
  110. }
  111. #endif
  112. void DisplayBindingService::soap_noheader()
  113. { this->header = NULL;
  114. }
  115. void DisplayBindingService::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 *DisplayBindingService::soap_header()
  136. { return this->header;
  137. }
  138. int DisplayBindingService::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 DisplayBindingService::bind(const char *host, int port, int backlog)
  152. { return soap_bind(this, host, port, backlog);
  153. }
  154. SOAP_SOCKET DisplayBindingService::accept()
  155. { return soap_accept(this);
  156. }
  157. #if defined(WITH_OPENSSL) || defined(WITH_GNUTLS)
  158. int DisplayBindingService::ssl_accept()
  159. { return soap_ssl_accept(this);
  160. }
  161. #endif
  162. int DisplayBindingService::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___tls__GetServiceCapabilities(DisplayBindingService*);
  196. static int serve___tls__GetLayout(DisplayBindingService*);
  197. static int serve___tls__SetLayout(DisplayBindingService*);
  198. static int serve___tls__GetDisplayOptions(DisplayBindingService*);
  199. static int serve___tls__GetPaneConfigurations(DisplayBindingService*);
  200. static int serve___tls__GetPaneConfiguration(DisplayBindingService*);
  201. static int serve___tls__SetPaneConfigurations(DisplayBindingService*);
  202. static int serve___tls__SetPaneConfiguration(DisplayBindingService*);
  203. static int serve___tls__CreatePaneConfiguration(DisplayBindingService*);
  204. static int serve___tls__DeletePaneConfiguration(DisplayBindingService*);
  205. int DisplayBindingService::dispatch()
  206. { soap_peek_element(this);
  207. if (!soap_match_tag(this, this->tag, "tls:GetServiceCapabilities"))
  208. return serve___tls__GetServiceCapabilities(this);
  209. if (!soap_match_tag(this, this->tag, "tls:GetLayout"))
  210. return serve___tls__GetLayout(this);
  211. if (!soap_match_tag(this, this->tag, "tls:SetLayout"))
  212. return serve___tls__SetLayout(this);
  213. if (!soap_match_tag(this, this->tag, "tls:GetDisplayOptions"))
  214. return serve___tls__GetDisplayOptions(this);
  215. if (!soap_match_tag(this, this->tag, "tls:GetPaneConfigurations"))
  216. return serve___tls__GetPaneConfigurations(this);
  217. if (!soap_match_tag(this, this->tag, "tls:GetPaneConfiguration"))
  218. return serve___tls__GetPaneConfiguration(this);
  219. if (!soap_match_tag(this, this->tag, "tls:SetPaneConfigurations"))
  220. return serve___tls__SetPaneConfigurations(this);
  221. if (!soap_match_tag(this, this->tag, "tls:SetPaneConfiguration"))
  222. return serve___tls__SetPaneConfiguration(this);
  223. if (!soap_match_tag(this, this->tag, "tls:CreatePaneConfiguration"))
  224. return serve___tls__CreatePaneConfiguration(this);
  225. if (!soap_match_tag(this, this->tag, "tls:DeletePaneConfiguration"))
  226. return serve___tls__DeletePaneConfiguration(this);
  227. return this->error = SOAP_NO_METHOD;
  228. }
  229. static int serve___tls__GetServiceCapabilities(DisplayBindingService *soap)
  230. { struct __tls__GetServiceCapabilities soap_tmp___tls__GetServiceCapabilities;
  231. _tls__GetServiceCapabilitiesResponse tls__GetServiceCapabilitiesResponse;
  232. tls__GetServiceCapabilitiesResponse.soap_default(soap);
  233. soap_default___tls__GetServiceCapabilities(soap, &soap_tmp___tls__GetServiceCapabilities);
  234. if (!soap_get___tls__GetServiceCapabilities(soap, &soap_tmp___tls__GetServiceCapabilities, "-tls:GetServiceCapabilities", NULL))
  235. return soap->error;
  236. if (soap_body_end_in(soap)
  237. || soap_envelope_end_in(soap)
  238. || soap_end_recv(soap))
  239. return soap->error;
  240. soap->error = soap->GetServiceCapabilities(soap_tmp___tls__GetServiceCapabilities.tls__GetServiceCapabilities, &tls__GetServiceCapabilitiesResponse);
  241. if (soap->error)
  242. return soap->error;
  243. soap->encodingStyle = NULL;
  244. soap_serializeheader(soap);
  245. tls__GetServiceCapabilitiesResponse.soap_serialize(soap);
  246. if (soap_begin_count(soap))
  247. return soap->error;
  248. if (soap->mode & SOAP_IO_LENGTH)
  249. { if (soap_envelope_begin_out(soap)
  250. || soap_putheader(soap)
  251. || soap_body_begin_out(soap)
  252. || tls__GetServiceCapabilitiesResponse.soap_put(soap, "tls:GetServiceCapabilitiesResponse", "")
  253. || soap_body_end_out(soap)
  254. || soap_envelope_end_out(soap))
  255. return soap->error;
  256. };
  257. if (soap_end_count(soap)
  258. || soap_response(soap, SOAP_OK)
  259. || soap_envelope_begin_out(soap)
  260. || soap_putheader(soap)
  261. || soap_body_begin_out(soap)
  262. || tls__GetServiceCapabilitiesResponse.soap_put(soap, "tls:GetServiceCapabilitiesResponse", "")
  263. || soap_body_end_out(soap)
  264. || soap_envelope_end_out(soap)
  265. || soap_end_send(soap))
  266. return soap->error;
  267. return soap_closesock(soap);
  268. }
  269. static int serve___tls__GetLayout(DisplayBindingService *soap)
  270. { struct __tls__GetLayout soap_tmp___tls__GetLayout;
  271. _tls__GetLayoutResponse tls__GetLayoutResponse;
  272. tls__GetLayoutResponse.soap_default(soap);
  273. soap_default___tls__GetLayout(soap, &soap_tmp___tls__GetLayout);
  274. if (!soap_get___tls__GetLayout(soap, &soap_tmp___tls__GetLayout, "-tls:GetLayout", NULL))
  275. return soap->error;
  276. if (soap_body_end_in(soap)
  277. || soap_envelope_end_in(soap)
  278. || soap_end_recv(soap))
  279. return soap->error;
  280. soap->error = soap->GetLayout(soap_tmp___tls__GetLayout.tls__GetLayout, &tls__GetLayoutResponse);
  281. if (soap->error)
  282. return soap->error;
  283. soap->encodingStyle = NULL;
  284. soap_serializeheader(soap);
  285. tls__GetLayoutResponse.soap_serialize(soap);
  286. if (soap_begin_count(soap))
  287. return soap->error;
  288. if (soap->mode & SOAP_IO_LENGTH)
  289. { if (soap_envelope_begin_out(soap)
  290. || soap_putheader(soap)
  291. || soap_body_begin_out(soap)
  292. || tls__GetLayoutResponse.soap_put(soap, "tls:GetLayoutResponse", "")
  293. || soap_body_end_out(soap)
  294. || soap_envelope_end_out(soap))
  295. return soap->error;
  296. };
  297. if (soap_end_count(soap)
  298. || soap_response(soap, SOAP_OK)
  299. || soap_envelope_begin_out(soap)
  300. || soap_putheader(soap)
  301. || soap_body_begin_out(soap)
  302. || tls__GetLayoutResponse.soap_put(soap, "tls:GetLayoutResponse", "")
  303. || soap_body_end_out(soap)
  304. || soap_envelope_end_out(soap)
  305. || soap_end_send(soap))
  306. return soap->error;
  307. return soap_closesock(soap);
  308. }
  309. static int serve___tls__SetLayout(DisplayBindingService *soap)
  310. { struct __tls__SetLayout soap_tmp___tls__SetLayout;
  311. _tls__SetLayoutResponse tls__SetLayoutResponse;
  312. tls__SetLayoutResponse.soap_default(soap);
  313. soap_default___tls__SetLayout(soap, &soap_tmp___tls__SetLayout);
  314. if (!soap_get___tls__SetLayout(soap, &soap_tmp___tls__SetLayout, "-tls:SetLayout", NULL))
  315. return soap->error;
  316. if (soap_body_end_in(soap)
  317. || soap_envelope_end_in(soap)
  318. || soap_end_recv(soap))
  319. return soap->error;
  320. soap->error = soap->SetLayout(soap_tmp___tls__SetLayout.tls__SetLayout, &tls__SetLayoutResponse);
  321. if (soap->error)
  322. return soap->error;
  323. soap->encodingStyle = NULL;
  324. soap_serializeheader(soap);
  325. tls__SetLayoutResponse.soap_serialize(soap);
  326. if (soap_begin_count(soap))
  327. return soap->error;
  328. if (soap->mode & SOAP_IO_LENGTH)
  329. { if (soap_envelope_begin_out(soap)
  330. || soap_putheader(soap)
  331. || soap_body_begin_out(soap)
  332. || tls__SetLayoutResponse.soap_put(soap, "tls:SetLayoutResponse", "")
  333. || soap_body_end_out(soap)
  334. || soap_envelope_end_out(soap))
  335. return soap->error;
  336. };
  337. if (soap_end_count(soap)
  338. || soap_response(soap, SOAP_OK)
  339. || soap_envelope_begin_out(soap)
  340. || soap_putheader(soap)
  341. || soap_body_begin_out(soap)
  342. || tls__SetLayoutResponse.soap_put(soap, "tls:SetLayoutResponse", "")
  343. || soap_body_end_out(soap)
  344. || soap_envelope_end_out(soap)
  345. || soap_end_send(soap))
  346. return soap->error;
  347. return soap_closesock(soap);
  348. }
  349. static int serve___tls__GetDisplayOptions(DisplayBindingService *soap)
  350. { struct __tls__GetDisplayOptions soap_tmp___tls__GetDisplayOptions;
  351. _tls__GetDisplayOptionsResponse tls__GetDisplayOptionsResponse;
  352. tls__GetDisplayOptionsResponse.soap_default(soap);
  353. soap_default___tls__GetDisplayOptions(soap, &soap_tmp___tls__GetDisplayOptions);
  354. if (!soap_get___tls__GetDisplayOptions(soap, &soap_tmp___tls__GetDisplayOptions, "-tls:GetDisplayOptions", NULL))
  355. return soap->error;
  356. if (soap_body_end_in(soap)
  357. || soap_envelope_end_in(soap)
  358. || soap_end_recv(soap))
  359. return soap->error;
  360. soap->error = soap->GetDisplayOptions(soap_tmp___tls__GetDisplayOptions.tls__GetDisplayOptions, &tls__GetDisplayOptionsResponse);
  361. if (soap->error)
  362. return soap->error;
  363. soap->encodingStyle = NULL;
  364. soap_serializeheader(soap);
  365. tls__GetDisplayOptionsResponse.soap_serialize(soap);
  366. if (soap_begin_count(soap))
  367. return soap->error;
  368. if (soap->mode & SOAP_IO_LENGTH)
  369. { if (soap_envelope_begin_out(soap)
  370. || soap_putheader(soap)
  371. || soap_body_begin_out(soap)
  372. || tls__GetDisplayOptionsResponse.soap_put(soap, "tls:GetDisplayOptionsResponse", "")
  373. || soap_body_end_out(soap)
  374. || soap_envelope_end_out(soap))
  375. return soap->error;
  376. };
  377. if (soap_end_count(soap)
  378. || soap_response(soap, SOAP_OK)
  379. || soap_envelope_begin_out(soap)
  380. || soap_putheader(soap)
  381. || soap_body_begin_out(soap)
  382. || tls__GetDisplayOptionsResponse.soap_put(soap, "tls:GetDisplayOptionsResponse", "")
  383. || soap_body_end_out(soap)
  384. || soap_envelope_end_out(soap)
  385. || soap_end_send(soap))
  386. return soap->error;
  387. return soap_closesock(soap);
  388. }
  389. static int serve___tls__GetPaneConfigurations(DisplayBindingService *soap)
  390. { struct __tls__GetPaneConfigurations soap_tmp___tls__GetPaneConfigurations;
  391. _tls__GetPaneConfigurationsResponse tls__GetPaneConfigurationsResponse;
  392. tls__GetPaneConfigurationsResponse.soap_default(soap);
  393. soap_default___tls__GetPaneConfigurations(soap, &soap_tmp___tls__GetPaneConfigurations);
  394. if (!soap_get___tls__GetPaneConfigurations(soap, &soap_tmp___tls__GetPaneConfigurations, "-tls:GetPaneConfigurations", NULL))
  395. return soap->error;
  396. if (soap_body_end_in(soap)
  397. || soap_envelope_end_in(soap)
  398. || soap_end_recv(soap))
  399. return soap->error;
  400. soap->error = soap->GetPaneConfigurations(soap_tmp___tls__GetPaneConfigurations.tls__GetPaneConfigurations, &tls__GetPaneConfigurationsResponse);
  401. if (soap->error)
  402. return soap->error;
  403. soap->encodingStyle = NULL;
  404. soap_serializeheader(soap);
  405. tls__GetPaneConfigurationsResponse.soap_serialize(soap);
  406. if (soap_begin_count(soap))
  407. return soap->error;
  408. if (soap->mode & SOAP_IO_LENGTH)
  409. { if (soap_envelope_begin_out(soap)
  410. || soap_putheader(soap)
  411. || soap_body_begin_out(soap)
  412. || tls__GetPaneConfigurationsResponse.soap_put(soap, "tls:GetPaneConfigurationsResponse", "")
  413. || soap_body_end_out(soap)
  414. || soap_envelope_end_out(soap))
  415. return soap->error;
  416. };
  417. if (soap_end_count(soap)
  418. || soap_response(soap, SOAP_OK)
  419. || soap_envelope_begin_out(soap)
  420. || soap_putheader(soap)
  421. || soap_body_begin_out(soap)
  422. || tls__GetPaneConfigurationsResponse.soap_put(soap, "tls:GetPaneConfigurationsResponse", "")
  423. || soap_body_end_out(soap)
  424. || soap_envelope_end_out(soap)
  425. || soap_end_send(soap))
  426. return soap->error;
  427. return soap_closesock(soap);
  428. }
  429. static int serve___tls__GetPaneConfiguration(DisplayBindingService *soap)
  430. { struct __tls__GetPaneConfiguration soap_tmp___tls__GetPaneConfiguration;
  431. _tls__GetPaneConfigurationResponse tls__GetPaneConfigurationResponse;
  432. tls__GetPaneConfigurationResponse.soap_default(soap);
  433. soap_default___tls__GetPaneConfiguration(soap, &soap_tmp___tls__GetPaneConfiguration);
  434. if (!soap_get___tls__GetPaneConfiguration(soap, &soap_tmp___tls__GetPaneConfiguration, "-tls:GetPaneConfiguration", NULL))
  435. return soap->error;
  436. if (soap_body_end_in(soap)
  437. || soap_envelope_end_in(soap)
  438. || soap_end_recv(soap))
  439. return soap->error;
  440. soap->error = soap->GetPaneConfiguration(soap_tmp___tls__GetPaneConfiguration.tls__GetPaneConfiguration, &tls__GetPaneConfigurationResponse);
  441. if (soap->error)
  442. return soap->error;
  443. soap->encodingStyle = NULL;
  444. soap_serializeheader(soap);
  445. tls__GetPaneConfigurationResponse.soap_serialize(soap);
  446. if (soap_begin_count(soap))
  447. return soap->error;
  448. if (soap->mode & SOAP_IO_LENGTH)
  449. { if (soap_envelope_begin_out(soap)
  450. || soap_putheader(soap)
  451. || soap_body_begin_out(soap)
  452. || tls__GetPaneConfigurationResponse.soap_put(soap, "tls:GetPaneConfigurationResponse", "")
  453. || soap_body_end_out(soap)
  454. || soap_envelope_end_out(soap))
  455. return soap->error;
  456. };
  457. if (soap_end_count(soap)
  458. || soap_response(soap, SOAP_OK)
  459. || soap_envelope_begin_out(soap)
  460. || soap_putheader(soap)
  461. || soap_body_begin_out(soap)
  462. || tls__GetPaneConfigurationResponse.soap_put(soap, "tls:GetPaneConfigurationResponse", "")
  463. || soap_body_end_out(soap)
  464. || soap_envelope_end_out(soap)
  465. || soap_end_send(soap))
  466. return soap->error;
  467. return soap_closesock(soap);
  468. }
  469. static int serve___tls__SetPaneConfigurations(DisplayBindingService *soap)
  470. { struct __tls__SetPaneConfigurations soap_tmp___tls__SetPaneConfigurations;
  471. _tls__SetPaneConfigurationsResponse tls__SetPaneConfigurationsResponse;
  472. tls__SetPaneConfigurationsResponse.soap_default(soap);
  473. soap_default___tls__SetPaneConfigurations(soap, &soap_tmp___tls__SetPaneConfigurations);
  474. if (!soap_get___tls__SetPaneConfigurations(soap, &soap_tmp___tls__SetPaneConfigurations, "-tls:SetPaneConfigurations", NULL))
  475. return soap->error;
  476. if (soap_body_end_in(soap)
  477. || soap_envelope_end_in(soap)
  478. || soap_end_recv(soap))
  479. return soap->error;
  480. soap->error = soap->SetPaneConfigurations(soap_tmp___tls__SetPaneConfigurations.tls__SetPaneConfigurations, &tls__SetPaneConfigurationsResponse);
  481. if (soap->error)
  482. return soap->error;
  483. soap->encodingStyle = NULL;
  484. soap_serializeheader(soap);
  485. tls__SetPaneConfigurationsResponse.soap_serialize(soap);
  486. if (soap_begin_count(soap))
  487. return soap->error;
  488. if (soap->mode & SOAP_IO_LENGTH)
  489. { if (soap_envelope_begin_out(soap)
  490. || soap_putheader(soap)
  491. || soap_body_begin_out(soap)
  492. || tls__SetPaneConfigurationsResponse.soap_put(soap, "tls:SetPaneConfigurationsResponse", "")
  493. || soap_body_end_out(soap)
  494. || soap_envelope_end_out(soap))
  495. return soap->error;
  496. };
  497. if (soap_end_count(soap)
  498. || soap_response(soap, SOAP_OK)
  499. || soap_envelope_begin_out(soap)
  500. || soap_putheader(soap)
  501. || soap_body_begin_out(soap)
  502. || tls__SetPaneConfigurationsResponse.soap_put(soap, "tls:SetPaneConfigurationsResponse", "")
  503. || soap_body_end_out(soap)
  504. || soap_envelope_end_out(soap)
  505. || soap_end_send(soap))
  506. return soap->error;
  507. return soap_closesock(soap);
  508. }
  509. static int serve___tls__SetPaneConfiguration(DisplayBindingService *soap)
  510. { struct __tls__SetPaneConfiguration soap_tmp___tls__SetPaneConfiguration;
  511. _tls__SetPaneConfigurationResponse tls__SetPaneConfigurationResponse;
  512. tls__SetPaneConfigurationResponse.soap_default(soap);
  513. soap_default___tls__SetPaneConfiguration(soap, &soap_tmp___tls__SetPaneConfiguration);
  514. if (!soap_get___tls__SetPaneConfiguration(soap, &soap_tmp___tls__SetPaneConfiguration, "-tls:SetPaneConfiguration", NULL))
  515. return soap->error;
  516. if (soap_body_end_in(soap)
  517. || soap_envelope_end_in(soap)
  518. || soap_end_recv(soap))
  519. return soap->error;
  520. soap->error = soap->SetPaneConfiguration(soap_tmp___tls__SetPaneConfiguration.tls__SetPaneConfiguration, &tls__SetPaneConfigurationResponse);
  521. if (soap->error)
  522. return soap->error;
  523. soap->encodingStyle = NULL;
  524. soap_serializeheader(soap);
  525. tls__SetPaneConfigurationResponse.soap_serialize(soap);
  526. if (soap_begin_count(soap))
  527. return soap->error;
  528. if (soap->mode & SOAP_IO_LENGTH)
  529. { if (soap_envelope_begin_out(soap)
  530. || soap_putheader(soap)
  531. || soap_body_begin_out(soap)
  532. || tls__SetPaneConfigurationResponse.soap_put(soap, "tls:SetPaneConfigurationResponse", "")
  533. || soap_body_end_out(soap)
  534. || soap_envelope_end_out(soap))
  535. return soap->error;
  536. };
  537. if (soap_end_count(soap)
  538. || soap_response(soap, SOAP_OK)
  539. || soap_envelope_begin_out(soap)
  540. || soap_putheader(soap)
  541. || soap_body_begin_out(soap)
  542. || tls__SetPaneConfigurationResponse.soap_put(soap, "tls:SetPaneConfigurationResponse", "")
  543. || soap_body_end_out(soap)
  544. || soap_envelope_end_out(soap)
  545. || soap_end_send(soap))
  546. return soap->error;
  547. return soap_closesock(soap);
  548. }
  549. static int serve___tls__CreatePaneConfiguration(DisplayBindingService *soap)
  550. { struct __tls__CreatePaneConfiguration soap_tmp___tls__CreatePaneConfiguration;
  551. _tls__CreatePaneConfigurationResponse tls__CreatePaneConfigurationResponse;
  552. tls__CreatePaneConfigurationResponse.soap_default(soap);
  553. soap_default___tls__CreatePaneConfiguration(soap, &soap_tmp___tls__CreatePaneConfiguration);
  554. if (!soap_get___tls__CreatePaneConfiguration(soap, &soap_tmp___tls__CreatePaneConfiguration, "-tls:CreatePaneConfiguration", NULL))
  555. return soap->error;
  556. if (soap_body_end_in(soap)
  557. || soap_envelope_end_in(soap)
  558. || soap_end_recv(soap))
  559. return soap->error;
  560. soap->error = soap->CreatePaneConfiguration(soap_tmp___tls__CreatePaneConfiguration.tls__CreatePaneConfiguration, &tls__CreatePaneConfigurationResponse);
  561. if (soap->error)
  562. return soap->error;
  563. soap->encodingStyle = NULL;
  564. soap_serializeheader(soap);
  565. tls__CreatePaneConfigurationResponse.soap_serialize(soap);
  566. if (soap_begin_count(soap))
  567. return soap->error;
  568. if (soap->mode & SOAP_IO_LENGTH)
  569. { if (soap_envelope_begin_out(soap)
  570. || soap_putheader(soap)
  571. || soap_body_begin_out(soap)
  572. || tls__CreatePaneConfigurationResponse.soap_put(soap, "tls:CreatePaneConfigurationResponse", "")
  573. || soap_body_end_out(soap)
  574. || soap_envelope_end_out(soap))
  575. return soap->error;
  576. };
  577. if (soap_end_count(soap)
  578. || soap_response(soap, SOAP_OK)
  579. || soap_envelope_begin_out(soap)
  580. || soap_putheader(soap)
  581. || soap_body_begin_out(soap)
  582. || tls__CreatePaneConfigurationResponse.soap_put(soap, "tls:CreatePaneConfigurationResponse", "")
  583. || soap_body_end_out(soap)
  584. || soap_envelope_end_out(soap)
  585. || soap_end_send(soap))
  586. return soap->error;
  587. return soap_closesock(soap);
  588. }
  589. static int serve___tls__DeletePaneConfiguration(DisplayBindingService *soap)
  590. { struct __tls__DeletePaneConfiguration soap_tmp___tls__DeletePaneConfiguration;
  591. _tls__DeletePaneConfigurationResponse tls__DeletePaneConfigurationResponse;
  592. tls__DeletePaneConfigurationResponse.soap_default(soap);
  593. soap_default___tls__DeletePaneConfiguration(soap, &soap_tmp___tls__DeletePaneConfiguration);
  594. if (!soap_get___tls__DeletePaneConfiguration(soap, &soap_tmp___tls__DeletePaneConfiguration, "-tls:DeletePaneConfiguration", NULL))
  595. return soap->error;
  596. if (soap_body_end_in(soap)
  597. || soap_envelope_end_in(soap)
  598. || soap_end_recv(soap))
  599. return soap->error;
  600. soap->error = soap->DeletePaneConfiguration(soap_tmp___tls__DeletePaneConfiguration.tls__DeletePaneConfiguration, &tls__DeletePaneConfigurationResponse);
  601. if (soap->error)
  602. return soap->error;
  603. soap->encodingStyle = NULL;
  604. soap_serializeheader(soap);
  605. tls__DeletePaneConfigurationResponse.soap_serialize(soap);
  606. if (soap_begin_count(soap))
  607. return soap->error;
  608. if (soap->mode & SOAP_IO_LENGTH)
  609. { if (soap_envelope_begin_out(soap)
  610. || soap_putheader(soap)
  611. || soap_body_begin_out(soap)
  612. || tls__DeletePaneConfigurationResponse.soap_put(soap, "tls:DeletePaneConfigurationResponse", "")
  613. || soap_body_end_out(soap)
  614. || soap_envelope_end_out(soap))
  615. return soap->error;
  616. };
  617. if (soap_end_count(soap)
  618. || soap_response(soap, SOAP_OK)
  619. || soap_envelope_begin_out(soap)
  620. || soap_putheader(soap)
  621. || soap_body_begin_out(soap)
  622. || tls__DeletePaneConfigurationResponse.soap_put(soap, "tls:DeletePaneConfigurationResponse", "")
  623. || soap_body_end_out(soap)
  624. || soap_envelope_end_out(soap)
  625. || soap_end_send(soap))
  626. return soap->error;
  627. return soap_closesock(soap);
  628. }
  629. /* End of server object code */