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.

1420 lines
54 KiB

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /* soapPTZBindingService.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 "soapPTZBindingService.h"
  10. PTZBindingService::PTZBindingService()
  11. { PTZBindingService_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
  12. }
  13. PTZBindingService::PTZBindingService(const struct soap &_soap) : soap(_soap)
  14. { }
  15. PTZBindingService::PTZBindingService(soap_mode iomode)
  16. { PTZBindingService_init(iomode, iomode);
  17. }
  18. PTZBindingService::PTZBindingService(soap_mode imode, soap_mode omode)
  19. { PTZBindingService_init(imode, omode);
  20. }
  21. PTZBindingService::~PTZBindingService()
  22. { }
  23. void PTZBindingService::PTZBindingService_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 PTZBindingService::destroy()
  66. { soap_destroy(this);
  67. soap_end(this);
  68. }
  69. void PTZBindingService::reset()
  70. { destroy();
  71. soap_done(this);
  72. soap_initialize(this);
  73. PTZBindingService_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
  74. }
  75. #ifndef WITH_PURE_VIRTUAL
  76. PTZBindingService *PTZBindingService::copy()
  77. { PTZBindingService *dup = SOAP_NEW_COPY(PTZBindingService(*(struct soap*)this));
  78. return dup;
  79. }
  80. #endif
  81. int PTZBindingService::soap_close_socket()
  82. { return soap_closesock(this);
  83. }
  84. int PTZBindingService::soap_force_close_socket()
  85. { return soap_force_closesock(this);
  86. }
  87. int PTZBindingService::soap_senderfault(const char *string, const char *detailXML)
  88. { return ::soap_sender_fault(this, string, detailXML);
  89. }
  90. int PTZBindingService::soap_senderfault(const char *subcodeQName, const char *string, const char *detailXML)
  91. { return ::soap_sender_fault_subcode(this, subcodeQName, string, detailXML);
  92. }
  93. int PTZBindingService::soap_receiverfault(const char *string, const char *detailXML)
  94. { return ::soap_receiver_fault(this, string, detailXML);
  95. }
  96. int PTZBindingService::soap_receiverfault(const char *subcodeQName, const char *string, const char *detailXML)
  97. { return ::soap_receiver_fault_subcode(this, subcodeQName, string, detailXML);
  98. }
  99. void PTZBindingService::soap_print_fault(FILE *fd)
  100. { ::soap_print_fault(this, fd);
  101. }
  102. #ifndef WITH_LEAN
  103. #ifndef WITH_COMPAT
  104. void PTZBindingService::soap_stream_fault(std::ostream& os)
  105. { ::soap_stream_fault(this, os);
  106. }
  107. #endif
  108. char *PTZBindingService::soap_sprint_fault(char *buf, size_t len)
  109. { return ::soap_sprint_fault(this, buf, len);
  110. }
  111. #endif
  112. void PTZBindingService::soap_noheader()
  113. { this->header = NULL;
  114. }
  115. void PTZBindingService::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 *PTZBindingService::soap_header()
  136. { return this->header;
  137. }
  138. int PTZBindingService::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 PTZBindingService::bind(const char *host, int port, int backlog)
  152. { return soap_bind(this, host, port, backlog);
  153. }
  154. SOAP_SOCKET PTZBindingService::accept()
  155. { return soap_accept(this);
  156. }
  157. #if defined(WITH_OPENSSL) || defined(WITH_GNUTLS)
  158. int PTZBindingService::ssl_accept()
  159. { return soap_ssl_accept(this);
  160. }
  161. #endif
  162. int PTZBindingService::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___tptz__GetServiceCapabilities(PTZBindingService*);
  196. static int serve___tptz__GetConfigurations(PTZBindingService*);
  197. static int serve___tptz__GetPresets(PTZBindingService*);
  198. static int serve___tptz__SetPreset(PTZBindingService*);
  199. static int serve___tptz__RemovePreset(PTZBindingService*);
  200. static int serve___tptz__GotoPreset(PTZBindingService*);
  201. static int serve___tptz__GetStatus(PTZBindingService*);
  202. static int serve___tptz__GetConfiguration(PTZBindingService*);
  203. static int serve___tptz__GetNodes(PTZBindingService*);
  204. static int serve___tptz__GetNode(PTZBindingService*);
  205. static int serve___tptz__SetConfiguration(PTZBindingService*);
  206. static int serve___tptz__GetConfigurationOptions(PTZBindingService*);
  207. static int serve___tptz__GotoHomePosition(PTZBindingService*);
  208. static int serve___tptz__SetHomePosition(PTZBindingService*);
  209. static int serve___tptz__ContinuousMove(PTZBindingService*);
  210. static int serve___tptz__RelativeMove(PTZBindingService*);
  211. static int serve___tptz__SendAuxiliaryCommand(PTZBindingService*);
  212. static int serve___tptz__AbsoluteMove(PTZBindingService*);
  213. static int serve___tptz__Stop(PTZBindingService*);
  214. static int serve___tptz__GetPresetTours(PTZBindingService*);
  215. static int serve___tptz__GetPresetTour(PTZBindingService*);
  216. static int serve___tptz__GetPresetTourOptions(PTZBindingService*);
  217. static int serve___tptz__CreatePresetTour(PTZBindingService*);
  218. static int serve___tptz__ModifyPresetTour(PTZBindingService*);
  219. static int serve___tptz__OperatePresetTour(PTZBindingService*);
  220. static int serve___tptz__RemovePresetTour(PTZBindingService*);
  221. static int serve___tptz__GetCompatibleConfigurations(PTZBindingService*);
  222. int PTZBindingService::dispatch()
  223. { soap_peek_element(this);
  224. if (!soap_match_tag(this, this->tag, "tptz:GetServiceCapabilities"))
  225. return serve___tptz__GetServiceCapabilities(this);
  226. if (!soap_match_tag(this, this->tag, "tptz:GetConfigurations"))
  227. return serve___tptz__GetConfigurations(this);
  228. if (!soap_match_tag(this, this->tag, "tptz:GetPresets"))
  229. return serve___tptz__GetPresets(this);
  230. if (!soap_match_tag(this, this->tag, "tptz:SetPreset"))
  231. return serve___tptz__SetPreset(this);
  232. if (!soap_match_tag(this, this->tag, "tptz:RemovePreset"))
  233. return serve___tptz__RemovePreset(this);
  234. if (!soap_match_tag(this, this->tag, "tptz:GotoPreset"))
  235. return serve___tptz__GotoPreset(this);
  236. if (!soap_match_tag(this, this->tag, "tptz:GetStatus"))
  237. return serve___tptz__GetStatus(this);
  238. if (!soap_match_tag(this, this->tag, "tptz:GetConfiguration"))
  239. return serve___tptz__GetConfiguration(this);
  240. if (!soap_match_tag(this, this->tag, "tptz:GetNodes"))
  241. return serve___tptz__GetNodes(this);
  242. if (!soap_match_tag(this, this->tag, "tptz:GetNode"))
  243. return serve___tptz__GetNode(this);
  244. if (!soap_match_tag(this, this->tag, "tptz:SetConfiguration"))
  245. return serve___tptz__SetConfiguration(this);
  246. if (!soap_match_tag(this, this->tag, "tptz:GetConfigurationOptions"))
  247. return serve___tptz__GetConfigurationOptions(this);
  248. if (!soap_match_tag(this, this->tag, "tptz:GotoHomePosition"))
  249. return serve___tptz__GotoHomePosition(this);
  250. if (!soap_match_tag(this, this->tag, "tptz:SetHomePosition"))
  251. return serve___tptz__SetHomePosition(this);
  252. if (!soap_match_tag(this, this->tag, "tptz:ContinuousMove"))
  253. return serve___tptz__ContinuousMove(this);
  254. if (!soap_match_tag(this, this->tag, "tptz:RelativeMove"))
  255. return serve___tptz__RelativeMove(this);
  256. if (!soap_match_tag(this, this->tag, "tptz:SendAuxiliaryCommand"))
  257. return serve___tptz__SendAuxiliaryCommand(this);
  258. if (!soap_match_tag(this, this->tag, "tptz:AbsoluteMove"))
  259. return serve___tptz__AbsoluteMove(this);
  260. if (!soap_match_tag(this, this->tag, "tptz:Stop"))
  261. return serve___tptz__Stop(this);
  262. if (!soap_match_tag(this, this->tag, "tptz:GetPresetTours"))
  263. return serve___tptz__GetPresetTours(this);
  264. if (!soap_match_tag(this, this->tag, "tptz:GetPresetTour"))
  265. return serve___tptz__GetPresetTour(this);
  266. if (!soap_match_tag(this, this->tag, "tptz:GetPresetTourOptions"))
  267. return serve___tptz__GetPresetTourOptions(this);
  268. if (!soap_match_tag(this, this->tag, "tptz:CreatePresetTour"))
  269. return serve___tptz__CreatePresetTour(this);
  270. if (!soap_match_tag(this, this->tag, "tptz:ModifyPresetTour"))
  271. return serve___tptz__ModifyPresetTour(this);
  272. if (!soap_match_tag(this, this->tag, "tptz:OperatePresetTour"))
  273. return serve___tptz__OperatePresetTour(this);
  274. if (!soap_match_tag(this, this->tag, "tptz:RemovePresetTour"))
  275. return serve___tptz__RemovePresetTour(this);
  276. if (!soap_match_tag(this, this->tag, "tptz:GetCompatibleConfigurations"))
  277. return serve___tptz__GetCompatibleConfigurations(this);
  278. return this->error = SOAP_NO_METHOD;
  279. }
  280. static int serve___tptz__GetServiceCapabilities(PTZBindingService *soap)
  281. { struct __tptz__GetServiceCapabilities soap_tmp___tptz__GetServiceCapabilities;
  282. _tptz__GetServiceCapabilitiesResponse tptz__GetServiceCapabilitiesResponse;
  283. tptz__GetServiceCapabilitiesResponse.soap_default(soap);
  284. soap_default___tptz__GetServiceCapabilities(soap, &soap_tmp___tptz__GetServiceCapabilities);
  285. if (!soap_get___tptz__GetServiceCapabilities(soap, &soap_tmp___tptz__GetServiceCapabilities, "-tptz:GetServiceCapabilities", NULL))
  286. return soap->error;
  287. if (soap_body_end_in(soap)
  288. || soap_envelope_end_in(soap)
  289. || soap_end_recv(soap))
  290. return soap->error;
  291. soap->error = soap->GetServiceCapabilities(soap_tmp___tptz__GetServiceCapabilities.tptz__GetServiceCapabilities, &tptz__GetServiceCapabilitiesResponse);
  292. if (soap->error)
  293. return soap->error;
  294. soap->encodingStyle = NULL;
  295. soap_serializeheader(soap);
  296. tptz__GetServiceCapabilitiesResponse.soap_serialize(soap);
  297. if (soap_begin_count(soap))
  298. return soap->error;
  299. if (soap->mode & SOAP_IO_LENGTH)
  300. { if (soap_envelope_begin_out(soap)
  301. || soap_putheader(soap)
  302. || soap_body_begin_out(soap)
  303. || tptz__GetServiceCapabilitiesResponse.soap_put(soap, "tptz:GetServiceCapabilitiesResponse", "")
  304. || soap_body_end_out(soap)
  305. || soap_envelope_end_out(soap))
  306. return soap->error;
  307. };
  308. if (soap_end_count(soap)
  309. || soap_response(soap, SOAP_OK)
  310. || soap_envelope_begin_out(soap)
  311. || soap_putheader(soap)
  312. || soap_body_begin_out(soap)
  313. || tptz__GetServiceCapabilitiesResponse.soap_put(soap, "tptz:GetServiceCapabilitiesResponse", "")
  314. || soap_body_end_out(soap)
  315. || soap_envelope_end_out(soap)
  316. || soap_end_send(soap))
  317. return soap->error;
  318. return soap_closesock(soap);
  319. }
  320. static int serve___tptz__GetConfigurations(PTZBindingService *soap)
  321. { struct __tptz__GetConfigurations soap_tmp___tptz__GetConfigurations;
  322. _tptz__GetConfigurationsResponse tptz__GetConfigurationsResponse;
  323. tptz__GetConfigurationsResponse.soap_default(soap);
  324. soap_default___tptz__GetConfigurations(soap, &soap_tmp___tptz__GetConfigurations);
  325. if (!soap_get___tptz__GetConfigurations(soap, &soap_tmp___tptz__GetConfigurations, "-tptz:GetConfigurations", NULL))
  326. return soap->error;
  327. if (soap_body_end_in(soap)
  328. || soap_envelope_end_in(soap)
  329. || soap_end_recv(soap))
  330. return soap->error;
  331. soap->error = soap->GetConfigurations(soap_tmp___tptz__GetConfigurations.tptz__GetConfigurations, &tptz__GetConfigurationsResponse);
  332. if (soap->error)
  333. return soap->error;
  334. soap->encodingStyle = NULL;
  335. soap_serializeheader(soap);
  336. tptz__GetConfigurationsResponse.soap_serialize(soap);
  337. if (soap_begin_count(soap))
  338. return soap->error;
  339. if (soap->mode & SOAP_IO_LENGTH)
  340. { if (soap_envelope_begin_out(soap)
  341. || soap_putheader(soap)
  342. || soap_body_begin_out(soap)
  343. || tptz__GetConfigurationsResponse.soap_put(soap, "tptz:GetConfigurationsResponse", "")
  344. || soap_body_end_out(soap)
  345. || soap_envelope_end_out(soap))
  346. return soap->error;
  347. };
  348. if (soap_end_count(soap)
  349. || soap_response(soap, SOAP_OK)
  350. || soap_envelope_begin_out(soap)
  351. || soap_putheader(soap)
  352. || soap_body_begin_out(soap)
  353. || tptz__GetConfigurationsResponse.soap_put(soap, "tptz:GetConfigurationsResponse", "")
  354. || soap_body_end_out(soap)
  355. || soap_envelope_end_out(soap)
  356. || soap_end_send(soap))
  357. return soap->error;
  358. return soap_closesock(soap);
  359. }
  360. static int serve___tptz__GetPresets(PTZBindingService *soap)
  361. { struct __tptz__GetPresets soap_tmp___tptz__GetPresets;
  362. _tptz__GetPresetsResponse tptz__GetPresetsResponse;
  363. tptz__GetPresetsResponse.soap_default(soap);
  364. soap_default___tptz__GetPresets(soap, &soap_tmp___tptz__GetPresets);
  365. if (!soap_get___tptz__GetPresets(soap, &soap_tmp___tptz__GetPresets, "-tptz:GetPresets", NULL))
  366. return soap->error;
  367. if (soap_body_end_in(soap)
  368. || soap_envelope_end_in(soap)
  369. || soap_end_recv(soap))
  370. return soap->error;
  371. soap->error = soap->GetPresets(soap_tmp___tptz__GetPresets.tptz__GetPresets, &tptz__GetPresetsResponse);
  372. if (soap->error)
  373. return soap->error;
  374. soap->encodingStyle = NULL;
  375. soap_serializeheader(soap);
  376. tptz__GetPresetsResponse.soap_serialize(soap);
  377. if (soap_begin_count(soap))
  378. return soap->error;
  379. if (soap->mode & SOAP_IO_LENGTH)
  380. { if (soap_envelope_begin_out(soap)
  381. || soap_putheader(soap)
  382. || soap_body_begin_out(soap)
  383. || tptz__GetPresetsResponse.soap_put(soap, "tptz:GetPresetsResponse", "")
  384. || soap_body_end_out(soap)
  385. || soap_envelope_end_out(soap))
  386. return soap->error;
  387. };
  388. if (soap_end_count(soap)
  389. || soap_response(soap, SOAP_OK)
  390. || soap_envelope_begin_out(soap)
  391. || soap_putheader(soap)
  392. || soap_body_begin_out(soap)
  393. || tptz__GetPresetsResponse.soap_put(soap, "tptz:GetPresetsResponse", "")
  394. || soap_body_end_out(soap)
  395. || soap_envelope_end_out(soap)
  396. || soap_end_send(soap))
  397. return soap->error;
  398. return soap_closesock(soap);
  399. }
  400. static int serve___tptz__SetPreset(PTZBindingService *soap)
  401. { struct __tptz__SetPreset soap_tmp___tptz__SetPreset;
  402. _tptz__SetPresetResponse tptz__SetPresetResponse;
  403. tptz__SetPresetResponse.soap_default(soap);
  404. soap_default___tptz__SetPreset(soap, &soap_tmp___tptz__SetPreset);
  405. if (!soap_get___tptz__SetPreset(soap, &soap_tmp___tptz__SetPreset, "-tptz:SetPreset", NULL))
  406. return soap->error;
  407. if (soap_body_end_in(soap)
  408. || soap_envelope_end_in(soap)
  409. || soap_end_recv(soap))
  410. return soap->error;
  411. soap->error = soap->SetPreset(soap_tmp___tptz__SetPreset.tptz__SetPreset, &tptz__SetPresetResponse);
  412. if (soap->error)
  413. return soap->error;
  414. soap->encodingStyle = NULL;
  415. soap_serializeheader(soap);
  416. tptz__SetPresetResponse.soap_serialize(soap);
  417. if (soap_begin_count(soap))
  418. return soap->error;
  419. if (soap->mode & SOAP_IO_LENGTH)
  420. { if (soap_envelope_begin_out(soap)
  421. || soap_putheader(soap)
  422. || soap_body_begin_out(soap)
  423. || tptz__SetPresetResponse.soap_put(soap, "tptz:SetPresetResponse", "")
  424. || soap_body_end_out(soap)
  425. || soap_envelope_end_out(soap))
  426. return soap->error;
  427. };
  428. if (soap_end_count(soap)
  429. || soap_response(soap, SOAP_OK)
  430. || soap_envelope_begin_out(soap)
  431. || soap_putheader(soap)
  432. || soap_body_begin_out(soap)
  433. || tptz__SetPresetResponse.soap_put(soap, "tptz:SetPresetResponse", "")
  434. || soap_body_end_out(soap)
  435. || soap_envelope_end_out(soap)
  436. || soap_end_send(soap))
  437. return soap->error;
  438. return soap_closesock(soap);
  439. }
  440. static int serve___tptz__RemovePreset(PTZBindingService *soap)
  441. { struct __tptz__RemovePreset soap_tmp___tptz__RemovePreset;
  442. _tptz__RemovePresetResponse tptz__RemovePresetResponse;
  443. tptz__RemovePresetResponse.soap_default(soap);
  444. soap_default___tptz__RemovePreset(soap, &soap_tmp___tptz__RemovePreset);
  445. if (!soap_get___tptz__RemovePreset(soap, &soap_tmp___tptz__RemovePreset, "-tptz:RemovePreset", NULL))
  446. return soap->error;
  447. if (soap_body_end_in(soap)
  448. || soap_envelope_end_in(soap)
  449. || soap_end_recv(soap))
  450. return soap->error;
  451. soap->error = soap->RemovePreset(soap_tmp___tptz__RemovePreset.tptz__RemovePreset, &tptz__RemovePresetResponse);
  452. if (soap->error)
  453. return soap->error;
  454. soap->encodingStyle = NULL;
  455. soap_serializeheader(soap);
  456. tptz__RemovePresetResponse.soap_serialize(soap);
  457. if (soap_begin_count(soap))
  458. return soap->error;
  459. if (soap->mode & SOAP_IO_LENGTH)
  460. { if (soap_envelope_begin_out(soap)
  461. || soap_putheader(soap)
  462. || soap_body_begin_out(soap)
  463. || tptz__RemovePresetResponse.soap_put(soap, "tptz:RemovePresetResponse", "")
  464. || soap_body_end_out(soap)
  465. || soap_envelope_end_out(soap))
  466. return soap->error;
  467. };
  468. if (soap_end_count(soap)
  469. || soap_response(soap, SOAP_OK)
  470. || soap_envelope_begin_out(soap)
  471. || soap_putheader(soap)
  472. || soap_body_begin_out(soap)
  473. || tptz__RemovePresetResponse.soap_put(soap, "tptz:RemovePresetResponse", "")
  474. || soap_body_end_out(soap)
  475. || soap_envelope_end_out(soap)
  476. || soap_end_send(soap))
  477. return soap->error;
  478. return soap_closesock(soap);
  479. }
  480. static int serve___tptz__GotoPreset(PTZBindingService *soap)
  481. { struct __tptz__GotoPreset soap_tmp___tptz__GotoPreset;
  482. _tptz__GotoPresetResponse tptz__GotoPresetResponse;
  483. tptz__GotoPresetResponse.soap_default(soap);
  484. soap_default___tptz__GotoPreset(soap, &soap_tmp___tptz__GotoPreset);
  485. if (!soap_get___tptz__GotoPreset(soap, &soap_tmp___tptz__GotoPreset, "-tptz:GotoPreset", NULL))
  486. return soap->error;
  487. if (soap_body_end_in(soap)
  488. || soap_envelope_end_in(soap)
  489. || soap_end_recv(soap))
  490. return soap->error;
  491. soap->error = soap->GotoPreset(soap_tmp___tptz__GotoPreset.tptz__GotoPreset, &tptz__GotoPresetResponse);
  492. if (soap->error)
  493. return soap->error;
  494. soap->encodingStyle = NULL;
  495. soap_serializeheader(soap);
  496. tptz__GotoPresetResponse.soap_serialize(soap);
  497. if (soap_begin_count(soap))
  498. return soap->error;
  499. if (soap->mode & SOAP_IO_LENGTH)
  500. { if (soap_envelope_begin_out(soap)
  501. || soap_putheader(soap)
  502. || soap_body_begin_out(soap)
  503. || tptz__GotoPresetResponse.soap_put(soap, "tptz:GotoPresetResponse", "")
  504. || soap_body_end_out(soap)
  505. || soap_envelope_end_out(soap))
  506. return soap->error;
  507. };
  508. if (soap_end_count(soap)
  509. || soap_response(soap, SOAP_OK)
  510. || soap_envelope_begin_out(soap)
  511. || soap_putheader(soap)
  512. || soap_body_begin_out(soap)
  513. || tptz__GotoPresetResponse.soap_put(soap, "tptz:GotoPresetResponse", "")
  514. || soap_body_end_out(soap)
  515. || soap_envelope_end_out(soap)
  516. || soap_end_send(soap))
  517. return soap->error;
  518. return soap_closesock(soap);
  519. }
  520. static int serve___tptz__GetStatus(PTZBindingService *soap)
  521. { struct __tptz__GetStatus soap_tmp___tptz__GetStatus;
  522. _tptz__GetStatusResponse tptz__GetStatusResponse;
  523. tptz__GetStatusResponse.soap_default(soap);
  524. soap_default___tptz__GetStatus(soap, &soap_tmp___tptz__GetStatus);
  525. if (!soap_get___tptz__GetStatus(soap, &soap_tmp___tptz__GetStatus, "-tptz:GetStatus", NULL))
  526. return soap->error;
  527. if (soap_body_end_in(soap)
  528. || soap_envelope_end_in(soap)
  529. || soap_end_recv(soap))
  530. return soap->error;
  531. soap->error = soap->GetStatus(soap_tmp___tptz__GetStatus.tptz__GetStatus, &tptz__GetStatusResponse);
  532. if (soap->error)
  533. return soap->error;
  534. soap->encodingStyle = NULL;
  535. soap_serializeheader(soap);
  536. tptz__GetStatusResponse.soap_serialize(soap);
  537. if (soap_begin_count(soap))
  538. return soap->error;
  539. if (soap->mode & SOAP_IO_LENGTH)
  540. { if (soap_envelope_begin_out(soap)
  541. || soap_putheader(soap)
  542. || soap_body_begin_out(soap)
  543. || tptz__GetStatusResponse.soap_put(soap, "tptz:GetStatusResponse", "")
  544. || soap_body_end_out(soap)
  545. || soap_envelope_end_out(soap))
  546. return soap->error;
  547. };
  548. if (soap_end_count(soap)
  549. || soap_response(soap, SOAP_OK)
  550. || soap_envelope_begin_out(soap)
  551. || soap_putheader(soap)
  552. || soap_body_begin_out(soap)
  553. || tptz__GetStatusResponse.soap_put(soap, "tptz:GetStatusResponse", "")
  554. || soap_body_end_out(soap)
  555. || soap_envelope_end_out(soap)
  556. || soap_end_send(soap))
  557. return soap->error;
  558. return soap_closesock(soap);
  559. }
  560. static int serve___tptz__GetConfiguration(PTZBindingService *soap)
  561. { struct __tptz__GetConfiguration soap_tmp___tptz__GetConfiguration;
  562. _tptz__GetConfigurationResponse tptz__GetConfigurationResponse;
  563. tptz__GetConfigurationResponse.soap_default(soap);
  564. soap_default___tptz__GetConfiguration(soap, &soap_tmp___tptz__GetConfiguration);
  565. if (!soap_get___tptz__GetConfiguration(soap, &soap_tmp___tptz__GetConfiguration, "-tptz:GetConfiguration", NULL))
  566. return soap->error;
  567. if (soap_body_end_in(soap)
  568. || soap_envelope_end_in(soap)
  569. || soap_end_recv(soap))
  570. return soap->error;
  571. soap->error = soap->GetConfiguration(soap_tmp___tptz__GetConfiguration.tptz__GetConfiguration, &tptz__GetConfigurationResponse);
  572. if (soap->error)
  573. return soap->error;
  574. soap->encodingStyle = NULL;
  575. soap_serializeheader(soap);
  576. tptz__GetConfigurationResponse.soap_serialize(soap);
  577. if (soap_begin_count(soap))
  578. return soap->error;
  579. if (soap->mode & SOAP_IO_LENGTH)
  580. { if (soap_envelope_begin_out(soap)
  581. || soap_putheader(soap)
  582. || soap_body_begin_out(soap)
  583. || tptz__GetConfigurationResponse.soap_put(soap, "tptz:GetConfigurationResponse", "")
  584. || soap_body_end_out(soap)
  585. || soap_envelope_end_out(soap))
  586. return soap->error;
  587. };
  588. if (soap_end_count(soap)
  589. || soap_response(soap, SOAP_OK)
  590. || soap_envelope_begin_out(soap)
  591. || soap_putheader(soap)
  592. || soap_body_begin_out(soap)
  593. || tptz__GetConfigurationResponse.soap_put(soap, "tptz:GetConfigurationResponse", "")
  594. || soap_body_end_out(soap)
  595. || soap_envelope_end_out(soap)
  596. || soap_end_send(soap))
  597. return soap->error;
  598. return soap_closesock(soap);
  599. }
  600. static int serve___tptz__GetNodes(PTZBindingService *soap)
  601. { struct __tptz__GetNodes soap_tmp___tptz__GetNodes;
  602. _tptz__GetNodesResponse tptz__GetNodesResponse;
  603. tptz__GetNodesResponse.soap_default(soap);
  604. soap_default___tptz__GetNodes(soap, &soap_tmp___tptz__GetNodes);
  605. if (!soap_get___tptz__GetNodes(soap, &soap_tmp___tptz__GetNodes, "-tptz:GetNodes", NULL))
  606. return soap->error;
  607. if (soap_body_end_in(soap)
  608. || soap_envelope_end_in(soap)
  609. || soap_end_recv(soap))
  610. return soap->error;
  611. soap->error = soap->GetNodes(soap_tmp___tptz__GetNodes.tptz__GetNodes, &tptz__GetNodesResponse);
  612. if (soap->error)
  613. return soap->error;
  614. soap->encodingStyle = NULL;
  615. soap_serializeheader(soap);
  616. tptz__GetNodesResponse.soap_serialize(soap);
  617. if (soap_begin_count(soap))
  618. return soap->error;
  619. if (soap->mode & SOAP_IO_LENGTH)
  620. { if (soap_envelope_begin_out(soap)
  621. || soap_putheader(soap)
  622. || soap_body_begin_out(soap)
  623. || tptz__GetNodesResponse.soap_put(soap, "tptz:GetNodesResponse", "")
  624. || soap_body_end_out(soap)
  625. || soap_envelope_end_out(soap))
  626. return soap->error;
  627. };
  628. if (soap_end_count(soap)
  629. || soap_response(soap, SOAP_OK)
  630. || soap_envelope_begin_out(soap)
  631. || soap_putheader(soap)
  632. || soap_body_begin_out(soap)
  633. || tptz__GetNodesResponse.soap_put(soap, "tptz:GetNodesResponse", "")
  634. || soap_body_end_out(soap)
  635. || soap_envelope_end_out(soap)
  636. || soap_end_send(soap))
  637. return soap->error;
  638. return soap_closesock(soap);
  639. }
  640. static int serve___tptz__GetNode(PTZBindingService *soap)
  641. { struct __tptz__GetNode soap_tmp___tptz__GetNode;
  642. _tptz__GetNodeResponse tptz__GetNodeResponse;
  643. tptz__GetNodeResponse.soap_default(soap);
  644. soap_default___tptz__GetNode(soap, &soap_tmp___tptz__GetNode);
  645. if (!soap_get___tptz__GetNode(soap, &soap_tmp___tptz__GetNode, "-tptz:GetNode", NULL))
  646. return soap->error;
  647. if (soap_body_end_in(soap)
  648. || soap_envelope_end_in(soap)
  649. || soap_end_recv(soap))
  650. return soap->error;
  651. soap->error = soap->GetNode(soap_tmp___tptz__GetNode.tptz__GetNode, &tptz__GetNodeResponse);
  652. if (soap->error)
  653. return soap->error;
  654. soap->encodingStyle = NULL;
  655. soap_serializeheader(soap);
  656. tptz__GetNodeResponse.soap_serialize(soap);
  657. if (soap_begin_count(soap))
  658. return soap->error;
  659. if (soap->mode & SOAP_IO_LENGTH)
  660. { if (soap_envelope_begin_out(soap)
  661. || soap_putheader(soap)
  662. || soap_body_begin_out(soap)
  663. || tptz__GetNodeResponse.soap_put(soap, "tptz:GetNodeResponse", "")
  664. || soap_body_end_out(soap)
  665. || soap_envelope_end_out(soap))
  666. return soap->error;
  667. };
  668. if (soap_end_count(soap)
  669. || soap_response(soap, SOAP_OK)
  670. || soap_envelope_begin_out(soap)
  671. || soap_putheader(soap)
  672. || soap_body_begin_out(soap)
  673. || tptz__GetNodeResponse.soap_put(soap, "tptz:GetNodeResponse", "")
  674. || soap_body_end_out(soap)
  675. || soap_envelope_end_out(soap)
  676. || soap_end_send(soap))
  677. return soap->error;
  678. return soap_closesock(soap);
  679. }
  680. static int serve___tptz__SetConfiguration(PTZBindingService *soap)
  681. { struct __tptz__SetConfiguration soap_tmp___tptz__SetConfiguration;
  682. _tptz__SetConfigurationResponse tptz__SetConfigurationResponse;
  683. tptz__SetConfigurationResponse.soap_default(soap);
  684. soap_default___tptz__SetConfiguration(soap, &soap_tmp___tptz__SetConfiguration);
  685. if (!soap_get___tptz__SetConfiguration(soap, &soap_tmp___tptz__SetConfiguration, "-tptz:SetConfiguration", NULL))
  686. return soap->error;
  687. if (soap_body_end_in(soap)
  688. || soap_envelope_end_in(soap)
  689. || soap_end_recv(soap))
  690. return soap->error;
  691. soap->error = soap->SetConfiguration(soap_tmp___tptz__SetConfiguration.tptz__SetConfiguration, &tptz__SetConfigurationResponse);
  692. if (soap->error)
  693. return soap->error;
  694. soap->encodingStyle = NULL;
  695. soap_serializeheader(soap);
  696. tptz__SetConfigurationResponse.soap_serialize(soap);
  697. if (soap_begin_count(soap))
  698. return soap->error;
  699. if (soap->mode & SOAP_IO_LENGTH)
  700. { if (soap_envelope_begin_out(soap)
  701. || soap_putheader(soap)
  702. || soap_body_begin_out(soap)
  703. || tptz__SetConfigurationResponse.soap_put(soap, "tptz:SetConfigurationResponse", "")
  704. || soap_body_end_out(soap)
  705. || soap_envelope_end_out(soap))
  706. return soap->error;
  707. };
  708. if (soap_end_count(soap)
  709. || soap_response(soap, SOAP_OK)
  710. || soap_envelope_begin_out(soap)
  711. || soap_putheader(soap)
  712. || soap_body_begin_out(soap)
  713. || tptz__SetConfigurationResponse.soap_put(soap, "tptz:SetConfigurationResponse", "")
  714. || soap_body_end_out(soap)
  715. || soap_envelope_end_out(soap)
  716. || soap_end_send(soap))
  717. return soap->error;
  718. return soap_closesock(soap);
  719. }
  720. static int serve___tptz__GetConfigurationOptions(PTZBindingService *soap)
  721. { struct __tptz__GetConfigurationOptions soap_tmp___tptz__GetConfigurationOptions;
  722. _tptz__GetConfigurationOptionsResponse tptz__GetConfigurationOptionsResponse;
  723. tptz__GetConfigurationOptionsResponse.soap_default(soap);
  724. soap_default___tptz__GetConfigurationOptions(soap, &soap_tmp___tptz__GetConfigurationOptions);
  725. if (!soap_get___tptz__GetConfigurationOptions(soap, &soap_tmp___tptz__GetConfigurationOptions, "-tptz:GetConfigurationOptions", NULL))
  726. return soap->error;
  727. if (soap_body_end_in(soap)
  728. || soap_envelope_end_in(soap)
  729. || soap_end_recv(soap))
  730. return soap->error;
  731. soap->error = soap->GetConfigurationOptions(soap_tmp___tptz__GetConfigurationOptions.tptz__GetConfigurationOptions, &tptz__GetConfigurationOptionsResponse);
  732. if (soap->error)
  733. return soap->error;
  734. soap->encodingStyle = NULL;
  735. soap_serializeheader(soap);
  736. tptz__GetConfigurationOptionsResponse.soap_serialize(soap);
  737. if (soap_begin_count(soap))
  738. return soap->error;
  739. if (soap->mode & SOAP_IO_LENGTH)
  740. { if (soap_envelope_begin_out(soap)
  741. || soap_putheader(soap)
  742. || soap_body_begin_out(soap)
  743. || tptz__GetConfigurationOptionsResponse.soap_put(soap, "tptz:GetConfigurationOptionsResponse", "")
  744. || soap_body_end_out(soap)
  745. || soap_envelope_end_out(soap))
  746. return soap->error;
  747. };
  748. if (soap_end_count(soap)
  749. || soap_response(soap, SOAP_OK)
  750. || soap_envelope_begin_out(soap)
  751. || soap_putheader(soap)
  752. || soap_body_begin_out(soap)
  753. || tptz__GetConfigurationOptionsResponse.soap_put(soap, "tptz:GetConfigurationOptionsResponse", "")
  754. || soap_body_end_out(soap)
  755. || soap_envelope_end_out(soap)
  756. || soap_end_send(soap))
  757. return soap->error;
  758. return soap_closesock(soap);
  759. }
  760. static int serve___tptz__GotoHomePosition(PTZBindingService *soap)
  761. { struct __tptz__GotoHomePosition soap_tmp___tptz__GotoHomePosition;
  762. _tptz__GotoHomePositionResponse tptz__GotoHomePositionResponse;
  763. tptz__GotoHomePositionResponse.soap_default(soap);
  764. soap_default___tptz__GotoHomePosition(soap, &soap_tmp___tptz__GotoHomePosition);
  765. if (!soap_get___tptz__GotoHomePosition(soap, &soap_tmp___tptz__GotoHomePosition, "-tptz:GotoHomePosition", NULL))
  766. return soap->error;
  767. if (soap_body_end_in(soap)
  768. || soap_envelope_end_in(soap)
  769. || soap_end_recv(soap))
  770. return soap->error;
  771. soap->error = soap->GotoHomePosition(soap_tmp___tptz__GotoHomePosition.tptz__GotoHomePosition, &tptz__GotoHomePositionResponse);
  772. if (soap->error)
  773. return soap->error;
  774. soap->encodingStyle = NULL;
  775. soap_serializeheader(soap);
  776. tptz__GotoHomePositionResponse.soap_serialize(soap);
  777. if (soap_begin_count(soap))
  778. return soap->error;
  779. if (soap->mode & SOAP_IO_LENGTH)
  780. { if (soap_envelope_begin_out(soap)
  781. || soap_putheader(soap)
  782. || soap_body_begin_out(soap)
  783. || tptz__GotoHomePositionResponse.soap_put(soap, "tptz:GotoHomePositionResponse", "")
  784. || soap_body_end_out(soap)
  785. || soap_envelope_end_out(soap))
  786. return soap->error;
  787. };
  788. if (soap_end_count(soap)
  789. || soap_response(soap, SOAP_OK)
  790. || soap_envelope_begin_out(soap)
  791. || soap_putheader(soap)
  792. || soap_body_begin_out(soap)
  793. || tptz__GotoHomePositionResponse.soap_put(soap, "tptz:GotoHomePositionResponse", "")
  794. || soap_body_end_out(soap)
  795. || soap_envelope_end_out(soap)
  796. || soap_end_send(soap))
  797. return soap->error;
  798. return soap_closesock(soap);
  799. }
  800. static int serve___tptz__SetHomePosition(PTZBindingService *soap)
  801. { struct __tptz__SetHomePosition soap_tmp___tptz__SetHomePosition;
  802. _tptz__SetHomePositionResponse tptz__SetHomePositionResponse;
  803. tptz__SetHomePositionResponse.soap_default(soap);
  804. soap_default___tptz__SetHomePosition(soap, &soap_tmp___tptz__SetHomePosition);
  805. if (!soap_get___tptz__SetHomePosition(soap, &soap_tmp___tptz__SetHomePosition, "-tptz:SetHomePosition", NULL))
  806. return soap->error;
  807. if (soap_body_end_in(soap)
  808. || soap_envelope_end_in(soap)
  809. || soap_end_recv(soap))
  810. return soap->error;
  811. soap->error = soap->SetHomePosition(soap_tmp___tptz__SetHomePosition.tptz__SetHomePosition, &tptz__SetHomePositionResponse);
  812. if (soap->error)
  813. return soap->error;
  814. soap->encodingStyle = NULL;
  815. soap_serializeheader(soap);
  816. tptz__SetHomePositionResponse.soap_serialize(soap);
  817. if (soap_begin_count(soap))
  818. return soap->error;
  819. if (soap->mode & SOAP_IO_LENGTH)
  820. { if (soap_envelope_begin_out(soap)
  821. || soap_putheader(soap)
  822. || soap_body_begin_out(soap)
  823. || tptz__SetHomePositionResponse.soap_put(soap, "tptz:SetHomePositionResponse", "")
  824. || soap_body_end_out(soap)
  825. || soap_envelope_end_out(soap))
  826. return soap->error;
  827. };
  828. if (soap_end_count(soap)
  829. || soap_response(soap, SOAP_OK)
  830. || soap_envelope_begin_out(soap)
  831. || soap_putheader(soap)
  832. || soap_body_begin_out(soap)
  833. || tptz__SetHomePositionResponse.soap_put(soap, "tptz:SetHomePositionResponse", "")
  834. || soap_body_end_out(soap)
  835. || soap_envelope_end_out(soap)
  836. || soap_end_send(soap))
  837. return soap->error;
  838. return soap_closesock(soap);
  839. }
  840. static int serve___tptz__ContinuousMove(PTZBindingService *soap)
  841. { struct __tptz__ContinuousMove soap_tmp___tptz__ContinuousMove;
  842. _tptz__ContinuousMoveResponse tptz__ContinuousMoveResponse;
  843. tptz__ContinuousMoveResponse.soap_default(soap);
  844. soap_default___tptz__ContinuousMove(soap, &soap_tmp___tptz__ContinuousMove);
  845. if (!soap_get___tptz__ContinuousMove(soap, &soap_tmp___tptz__ContinuousMove, "-tptz:ContinuousMove", NULL))
  846. return soap->error;
  847. if (soap_body_end_in(soap)
  848. || soap_envelope_end_in(soap)
  849. || soap_end_recv(soap))
  850. return soap->error;
  851. soap->error = soap->ContinuousMove(soap_tmp___tptz__ContinuousMove.tptz__ContinuousMove, &tptz__ContinuousMoveResponse);
  852. if (soap->error)
  853. return soap->error;
  854. soap->encodingStyle = NULL;
  855. soap_serializeheader(soap);
  856. tptz__ContinuousMoveResponse.soap_serialize(soap);
  857. if (soap_begin_count(soap))
  858. return soap->error;
  859. if (soap->mode & SOAP_IO_LENGTH)
  860. { if (soap_envelope_begin_out(soap)
  861. || soap_putheader(soap)
  862. || soap_body_begin_out(soap)
  863. || tptz__ContinuousMoveResponse.soap_put(soap, "tptz:ContinuousMoveResponse", "")
  864. || soap_body_end_out(soap)
  865. || soap_envelope_end_out(soap))
  866. return soap->error;
  867. };
  868. if (soap_end_count(soap)
  869. || soap_response(soap, SOAP_OK)
  870. || soap_envelope_begin_out(soap)
  871. || soap_putheader(soap)
  872. || soap_body_begin_out(soap)
  873. || tptz__ContinuousMoveResponse.soap_put(soap, "tptz:ContinuousMoveResponse", "")
  874. || soap_body_end_out(soap)
  875. || soap_envelope_end_out(soap)
  876. || soap_end_send(soap))
  877. return soap->error;
  878. return soap_closesock(soap);
  879. }
  880. static int serve___tptz__RelativeMove(PTZBindingService *soap)
  881. { struct __tptz__RelativeMove soap_tmp___tptz__RelativeMove;
  882. _tptz__RelativeMoveResponse tptz__RelativeMoveResponse;
  883. tptz__RelativeMoveResponse.soap_default(soap);
  884. soap_default___tptz__RelativeMove(soap, &soap_tmp___tptz__RelativeMove);
  885. if (!soap_get___tptz__RelativeMove(soap, &soap_tmp___tptz__RelativeMove, "-tptz:RelativeMove", NULL))
  886. return soap->error;
  887. if (soap_body_end_in(soap)
  888. || soap_envelope_end_in(soap)
  889. || soap_end_recv(soap))
  890. return soap->error;
  891. soap->error = soap->RelativeMove(soap_tmp___tptz__RelativeMove.tptz__RelativeMove, &tptz__RelativeMoveResponse);
  892. if (soap->error)
  893. return soap->error;
  894. soap->encodingStyle = NULL;
  895. soap_serializeheader(soap);
  896. tptz__RelativeMoveResponse.soap_serialize(soap);
  897. if (soap_begin_count(soap))
  898. return soap->error;
  899. if (soap->mode & SOAP_IO_LENGTH)
  900. { if (soap_envelope_begin_out(soap)
  901. || soap_putheader(soap)
  902. || soap_body_begin_out(soap)
  903. || tptz__RelativeMoveResponse.soap_put(soap, "tptz:RelativeMoveResponse", "")
  904. || soap_body_end_out(soap)
  905. || soap_envelope_end_out(soap))
  906. return soap->error;
  907. };
  908. if (soap_end_count(soap)
  909. || soap_response(soap, SOAP_OK)
  910. || soap_envelope_begin_out(soap)
  911. || soap_putheader(soap)
  912. || soap_body_begin_out(soap)
  913. || tptz__RelativeMoveResponse.soap_put(soap, "tptz:RelativeMoveResponse", "")
  914. || soap_body_end_out(soap)
  915. || soap_envelope_end_out(soap)
  916. || soap_end_send(soap))
  917. return soap->error;
  918. return soap_closesock(soap);
  919. }
  920. static int serve___tptz__SendAuxiliaryCommand(PTZBindingService *soap)
  921. { struct __tptz__SendAuxiliaryCommand soap_tmp___tptz__SendAuxiliaryCommand;
  922. _tptz__SendAuxiliaryCommandResponse tptz__SendAuxiliaryCommandResponse;
  923. tptz__SendAuxiliaryCommandResponse.soap_default(soap);
  924. soap_default___tptz__SendAuxiliaryCommand(soap, &soap_tmp___tptz__SendAuxiliaryCommand);
  925. if (!soap_get___tptz__SendAuxiliaryCommand(soap, &soap_tmp___tptz__SendAuxiliaryCommand, "-tptz:SendAuxiliaryCommand", NULL))
  926. return soap->error;
  927. if (soap_body_end_in(soap)
  928. || soap_envelope_end_in(soap)
  929. || soap_end_recv(soap))
  930. return soap->error;
  931. soap->error = soap->SendAuxiliaryCommand(soap_tmp___tptz__SendAuxiliaryCommand.tptz__SendAuxiliaryCommand, &tptz__SendAuxiliaryCommandResponse);
  932. if (soap->error)
  933. return soap->error;
  934. soap->encodingStyle = NULL;
  935. soap_serializeheader(soap);
  936. tptz__SendAuxiliaryCommandResponse.soap_serialize(soap);
  937. if (soap_begin_count(soap))
  938. return soap->error;
  939. if (soap->mode & SOAP_IO_LENGTH)
  940. { if (soap_envelope_begin_out(soap)
  941. || soap_putheader(soap)
  942. || soap_body_begin_out(soap)
  943. || tptz__SendAuxiliaryCommandResponse.soap_put(soap, "tptz:SendAuxiliaryCommandResponse", "")
  944. || soap_body_end_out(soap)
  945. || soap_envelope_end_out(soap))
  946. return soap->error;
  947. };
  948. if (soap_end_count(soap)
  949. || soap_response(soap, SOAP_OK)
  950. || soap_envelope_begin_out(soap)
  951. || soap_putheader(soap)
  952. || soap_body_begin_out(soap)
  953. || tptz__SendAuxiliaryCommandResponse.soap_put(soap, "tptz:SendAuxiliaryCommandResponse", "")
  954. || soap_body_end_out(soap)
  955. || soap_envelope_end_out(soap)
  956. || soap_end_send(soap))
  957. return soap->error;
  958. return soap_closesock(soap);
  959. }
  960. static int serve___tptz__AbsoluteMove(PTZBindingService *soap)
  961. { struct __tptz__AbsoluteMove soap_tmp___tptz__AbsoluteMove;
  962. _tptz__AbsoluteMoveResponse tptz__AbsoluteMoveResponse;
  963. tptz__AbsoluteMoveResponse.soap_default(soap);
  964. soap_default___tptz__AbsoluteMove(soap, &soap_tmp___tptz__AbsoluteMove);
  965. if (!soap_get___tptz__AbsoluteMove(soap, &soap_tmp___tptz__AbsoluteMove, "-tptz:AbsoluteMove", NULL))
  966. return soap->error;
  967. if (soap_body_end_in(soap)
  968. || soap_envelope_end_in(soap)
  969. || soap_end_recv(soap))
  970. return soap->error;
  971. soap->error = soap->AbsoluteMove(soap_tmp___tptz__AbsoluteMove.tptz__AbsoluteMove, &tptz__AbsoluteMoveResponse);
  972. if (soap->error)
  973. return soap->error;
  974. soap->encodingStyle = NULL;
  975. soap_serializeheader(soap);
  976. tptz__AbsoluteMoveResponse.soap_serialize(soap);
  977. if (soap_begin_count(soap))
  978. return soap->error;
  979. if (soap->mode & SOAP_IO_LENGTH)
  980. { if (soap_envelope_begin_out(soap)
  981. || soap_putheader(soap)
  982. || soap_body_begin_out(soap)
  983. || tptz__AbsoluteMoveResponse.soap_put(soap, "tptz:AbsoluteMoveResponse", "")
  984. || soap_body_end_out(soap)
  985. || soap_envelope_end_out(soap))
  986. return soap->error;
  987. };
  988. if (soap_end_count(soap)
  989. || soap_response(soap, SOAP_OK)
  990. || soap_envelope_begin_out(soap)
  991. || soap_putheader(soap)
  992. || soap_body_begin_out(soap)
  993. || tptz__AbsoluteMoveResponse.soap_put(soap, "tptz:AbsoluteMoveResponse", "")
  994. || soap_body_end_out(soap)
  995. || soap_envelope_end_out(soap)
  996. || soap_end_send(soap))
  997. return soap->error;
  998. return soap_closesock(soap);
  999. }
  1000. static int serve___tptz__Stop(PTZBindingService *soap)
  1001. { struct __tptz__Stop soap_tmp___tptz__Stop;
  1002. _tptz__StopResponse tptz__StopResponse;
  1003. tptz__StopResponse.soap_default(soap);
  1004. soap_default___tptz__Stop(soap, &soap_tmp___tptz__Stop);
  1005. if (!soap_get___tptz__Stop(soap, &soap_tmp___tptz__Stop, "-tptz:Stop", NULL))
  1006. return soap->error;
  1007. if (soap_body_end_in(soap)
  1008. || soap_envelope_end_in(soap)
  1009. || soap_end_recv(soap))
  1010. return soap->error;
  1011. soap->error = soap->Stop(soap_tmp___tptz__Stop.tptz__Stop, &tptz__StopResponse);
  1012. if (soap->error)
  1013. return soap->error;
  1014. soap->encodingStyle = NULL;
  1015. soap_serializeheader(soap);
  1016. tptz__StopResponse.soap_serialize(soap);
  1017. if (soap_begin_count(soap))
  1018. return soap->error;
  1019. if (soap->mode & SOAP_IO_LENGTH)
  1020. { if (soap_envelope_begin_out(soap)
  1021. || soap_putheader(soap)
  1022. || soap_body_begin_out(soap)
  1023. || tptz__StopResponse.soap_put(soap, "tptz:StopResponse", "")
  1024. || soap_body_end_out(soap)
  1025. || soap_envelope_end_out(soap))
  1026. return soap->error;
  1027. };
  1028. if (soap_end_count(soap)
  1029. || soap_response(soap, SOAP_OK)
  1030. || soap_envelope_begin_out(soap)
  1031. || soap_putheader(soap)
  1032. || soap_body_begin_out(soap)
  1033. || tptz__StopResponse.soap_put(soap, "tptz:StopResponse", "")
  1034. || soap_body_end_out(soap)
  1035. || soap_envelope_end_out(soap)
  1036. || soap_end_send(soap))
  1037. return soap->error;
  1038. return soap_closesock(soap);
  1039. }
  1040. static int serve___tptz__GetPresetTours(PTZBindingService *soap)
  1041. { struct __tptz__GetPresetTours soap_tmp___tptz__GetPresetTours;
  1042. _tptz__GetPresetToursResponse tptz__GetPresetToursResponse;
  1043. tptz__GetPresetToursResponse.soap_default(soap);
  1044. soap_default___tptz__GetPresetTours(soap, &soap_tmp___tptz__GetPresetTours);
  1045. if (!soap_get___tptz__GetPresetTours(soap, &soap_tmp___tptz__GetPresetTours, "-tptz:GetPresetTours", NULL))
  1046. return soap->error;
  1047. if (soap_body_end_in(soap)
  1048. || soap_envelope_end_in(soap)
  1049. || soap_end_recv(soap))
  1050. return soap->error;
  1051. soap->error = soap->GetPresetTours(soap_tmp___tptz__GetPresetTours.tptz__GetPresetTours, &tptz__GetPresetToursResponse);
  1052. if (soap->error)
  1053. return soap->error;
  1054. soap->encodingStyle = NULL;
  1055. soap_serializeheader(soap);
  1056. tptz__GetPresetToursResponse.soap_serialize(soap);
  1057. if (soap_begin_count(soap))
  1058. return soap->error;
  1059. if (soap->mode & SOAP_IO_LENGTH)
  1060. { if (soap_envelope_begin_out(soap)
  1061. || soap_putheader(soap)
  1062. || soap_body_begin_out(soap)
  1063. || tptz__GetPresetToursResponse.soap_put(soap, "tptz:GetPresetToursResponse", "")
  1064. || soap_body_end_out(soap)
  1065. || soap_envelope_end_out(soap))
  1066. return soap->error;
  1067. };
  1068. if (soap_end_count(soap)
  1069. || soap_response(soap, SOAP_OK)
  1070. || soap_envelope_begin_out(soap)
  1071. || soap_putheader(soap)
  1072. || soap_body_begin_out(soap)
  1073. || tptz__GetPresetToursResponse.soap_put(soap, "tptz:GetPresetToursResponse", "")
  1074. || soap_body_end_out(soap)
  1075. || soap_envelope_end_out(soap)
  1076. || soap_end_send(soap))
  1077. return soap->error;
  1078. return soap_closesock(soap);
  1079. }
  1080. static int serve___tptz__GetPresetTour(PTZBindingService *soap)
  1081. { struct __tptz__GetPresetTour soap_tmp___tptz__GetPresetTour;
  1082. _tptz__GetPresetTourResponse tptz__GetPresetTourResponse;
  1083. tptz__GetPresetTourResponse.soap_default(soap);
  1084. soap_default___tptz__GetPresetTour(soap, &soap_tmp___tptz__GetPresetTour);
  1085. if (!soap_get___tptz__GetPresetTour(soap, &soap_tmp___tptz__GetPresetTour, "-tptz:GetPresetTour", NULL))
  1086. return soap->error;
  1087. if (soap_body_end_in(soap)
  1088. || soap_envelope_end_in(soap)
  1089. || soap_end_recv(soap))
  1090. return soap->error;
  1091. soap->error = soap->GetPresetTour(soap_tmp___tptz__GetPresetTour.tptz__GetPresetTour, &tptz__GetPresetTourResponse);
  1092. if (soap->error)
  1093. return soap->error;
  1094. soap->encodingStyle = NULL;
  1095. soap_serializeheader(soap);
  1096. tptz__GetPresetTourResponse.soap_serialize(soap);
  1097. if (soap_begin_count(soap))
  1098. return soap->error;
  1099. if (soap->mode & SOAP_IO_LENGTH)
  1100. { if (soap_envelope_begin_out(soap)
  1101. || soap_putheader(soap)
  1102. || soap_body_begin_out(soap)
  1103. || tptz__GetPresetTourResponse.soap_put(soap, "tptz:GetPresetTourResponse", "")
  1104. || soap_body_end_out(soap)
  1105. || soap_envelope_end_out(soap))
  1106. return soap->error;
  1107. };
  1108. if (soap_end_count(soap)
  1109. || soap_response(soap, SOAP_OK)
  1110. || soap_envelope_begin_out(soap)
  1111. || soap_putheader(soap)
  1112. || soap_body_begin_out(soap)
  1113. || tptz__GetPresetTourResponse.soap_put(soap, "tptz:GetPresetTourResponse", "")
  1114. || soap_body_end_out(soap)
  1115. || soap_envelope_end_out(soap)
  1116. || soap_end_send(soap))
  1117. return soap->error;
  1118. return soap_closesock(soap);
  1119. }
  1120. static int serve___tptz__GetPresetTourOptions(PTZBindingService *soap)
  1121. { struct __tptz__GetPresetTourOptions soap_tmp___tptz__GetPresetTourOptions;
  1122. _tptz__GetPresetTourOptionsResponse tptz__GetPresetTourOptionsResponse;
  1123. tptz__GetPresetTourOptionsResponse.soap_default(soap);
  1124. soap_default___tptz__GetPresetTourOptions(soap, &soap_tmp___tptz__GetPresetTourOptions);
  1125. if (!soap_get___tptz__GetPresetTourOptions(soap, &soap_tmp___tptz__GetPresetTourOptions, "-tptz:GetPresetTourOptions", NULL))
  1126. return soap->error;
  1127. if (soap_body_end_in(soap)
  1128. || soap_envelope_end_in(soap)
  1129. || soap_end_recv(soap))
  1130. return soap->error;
  1131. soap->error = soap->GetPresetTourOptions(soap_tmp___tptz__GetPresetTourOptions.tptz__GetPresetTourOptions, &tptz__GetPresetTourOptionsResponse);
  1132. if (soap->error)
  1133. return soap->error;
  1134. soap->encodingStyle = NULL;
  1135. soap_serializeheader(soap);
  1136. tptz__GetPresetTourOptionsResponse.soap_serialize(soap);
  1137. if (soap_begin_count(soap))
  1138. return soap->error;
  1139. if (soap->mode & SOAP_IO_LENGTH)
  1140. { if (soap_envelope_begin_out(soap)
  1141. || soap_putheader(soap)
  1142. || soap_body_begin_out(soap)
  1143. || tptz__GetPresetTourOptionsResponse.soap_put(soap, "tptz:GetPresetTourOptionsResponse", "")
  1144. || soap_body_end_out(soap)
  1145. || soap_envelope_end_out(soap))
  1146. return soap->error;
  1147. };
  1148. if (soap_end_count(soap)
  1149. || soap_response(soap, SOAP_OK)
  1150. || soap_envelope_begin_out(soap)
  1151. || soap_putheader(soap)
  1152. || soap_body_begin_out(soap)
  1153. || tptz__GetPresetTourOptionsResponse.soap_put(soap, "tptz:GetPresetTourOptionsResponse", "")
  1154. || soap_body_end_out(soap)
  1155. || soap_envelope_end_out(soap)
  1156. || soap_end_send(soap))
  1157. return soap->error;
  1158. return soap_closesock(soap);
  1159. }
  1160. static int serve___tptz__CreatePresetTour(PTZBindingService *soap)
  1161. { struct __tptz__CreatePresetTour soap_tmp___tptz__CreatePresetTour;
  1162. _tptz__CreatePresetTourResponse tptz__CreatePresetTourResponse;
  1163. tptz__CreatePresetTourResponse.soap_default(soap);
  1164. soap_default___tptz__CreatePresetTour(soap, &soap_tmp___tptz__CreatePresetTour);
  1165. if (!soap_get___tptz__CreatePresetTour(soap, &soap_tmp___tptz__CreatePresetTour, "-tptz:CreatePresetTour", NULL))
  1166. return soap->error;
  1167. if (soap_body_end_in(soap)
  1168. || soap_envelope_end_in(soap)
  1169. || soap_end_recv(soap))
  1170. return soap->error;
  1171. soap->error = soap->CreatePresetTour(soap_tmp___tptz__CreatePresetTour.tptz__CreatePresetTour, &tptz__CreatePresetTourResponse);
  1172. if (soap->error)
  1173. return soap->error;
  1174. soap->encodingStyle = NULL;
  1175. soap_serializeheader(soap);
  1176. tptz__CreatePresetTourResponse.soap_serialize(soap);
  1177. if (soap_begin_count(soap))
  1178. return soap->error;
  1179. if (soap->mode & SOAP_IO_LENGTH)
  1180. { if (soap_envelope_begin_out(soap)
  1181. || soap_putheader(soap)
  1182. || soap_body_begin_out(soap)
  1183. || tptz__CreatePresetTourResponse.soap_put(soap, "tptz:CreatePresetTourResponse", "")
  1184. || soap_body_end_out(soap)
  1185. || soap_envelope_end_out(soap))
  1186. return soap->error;
  1187. };
  1188. if (soap_end_count(soap)
  1189. || soap_response(soap, SOAP_OK)
  1190. || soap_envelope_begin_out(soap)
  1191. || soap_putheader(soap)
  1192. || soap_body_begin_out(soap)
  1193. || tptz__CreatePresetTourResponse.soap_put(soap, "tptz:CreatePresetTourResponse", "")
  1194. || soap_body_end_out(soap)
  1195. || soap_envelope_end_out(soap)
  1196. || soap_end_send(soap))
  1197. return soap->error;
  1198. return soap_closesock(soap);
  1199. }
  1200. static int serve___tptz__ModifyPresetTour(PTZBindingService *soap)
  1201. { struct __tptz__ModifyPresetTour soap_tmp___tptz__ModifyPresetTour;
  1202. _tptz__ModifyPresetTourResponse tptz__ModifyPresetTourResponse;
  1203. tptz__ModifyPresetTourResponse.soap_default(soap);
  1204. soap_default___tptz__ModifyPresetTour(soap, &soap_tmp___tptz__ModifyPresetTour);
  1205. if (!soap_get___tptz__ModifyPresetTour(soap, &soap_tmp___tptz__ModifyPresetTour, "-tptz:ModifyPresetTour", NULL))
  1206. return soap->error;
  1207. if (soap_body_end_in(soap)
  1208. || soap_envelope_end_in(soap)
  1209. || soap_end_recv(soap))
  1210. return soap->error;
  1211. soap->error = soap->ModifyPresetTour(soap_tmp___tptz__ModifyPresetTour.tptz__ModifyPresetTour, &tptz__ModifyPresetTourResponse);
  1212. if (soap->error)
  1213. return soap->error;
  1214. soap->encodingStyle = NULL;
  1215. soap_serializeheader(soap);
  1216. tptz__ModifyPresetTourResponse.soap_serialize(soap);
  1217. if (soap_begin_count(soap))
  1218. return soap->error;
  1219. if (soap->mode & SOAP_IO_LENGTH)
  1220. { if (soap_envelope_begin_out(soap)
  1221. || soap_putheader(soap)
  1222. || soap_body_begin_out(soap)
  1223. || tptz__ModifyPresetTourResponse.soap_put(soap, "tptz:ModifyPresetTourResponse", "")
  1224. || soap_body_end_out(soap)
  1225. || soap_envelope_end_out(soap))
  1226. return soap->error;
  1227. };
  1228. if (soap_end_count(soap)
  1229. || soap_response(soap, SOAP_OK)
  1230. || soap_envelope_begin_out(soap)
  1231. || soap_putheader(soap)
  1232. || soap_body_begin_out(soap)
  1233. || tptz__ModifyPresetTourResponse.soap_put(soap, "tptz:ModifyPresetTourResponse", "")
  1234. || soap_body_end_out(soap)
  1235. || soap_envelope_end_out(soap)
  1236. || soap_end_send(soap))
  1237. return soap->error;
  1238. return soap_closesock(soap);
  1239. }
  1240. static int serve___tptz__OperatePresetTour(PTZBindingService *soap)
  1241. { struct __tptz__OperatePresetTour soap_tmp___tptz__OperatePresetTour;
  1242. _tptz__OperatePresetTourResponse tptz__OperatePresetTourResponse;
  1243. tptz__OperatePresetTourResponse.soap_default(soap);
  1244. soap_default___tptz__OperatePresetTour(soap, &soap_tmp___tptz__OperatePresetTour);
  1245. if (!soap_get___tptz__OperatePresetTour(soap, &soap_tmp___tptz__OperatePresetTour, "-tptz:OperatePresetTour", NULL))
  1246. return soap->error;
  1247. if (soap_body_end_in(soap)
  1248. || soap_envelope_end_in(soap)
  1249. || soap_end_recv(soap))
  1250. return soap->error;
  1251. soap->error = soap->OperatePresetTour(soap_tmp___tptz__OperatePresetTour.tptz__OperatePresetTour, &tptz__OperatePresetTourResponse);
  1252. if (soap->error)
  1253. return soap->error;
  1254. soap->encodingStyle = NULL;
  1255. soap_serializeheader(soap);
  1256. tptz__OperatePresetTourResponse.soap_serialize(soap);
  1257. if (soap_begin_count(soap))
  1258. return soap->error;
  1259. if (soap->mode & SOAP_IO_LENGTH)
  1260. { if (soap_envelope_begin_out(soap)
  1261. || soap_putheader(soap)
  1262. || soap_body_begin_out(soap)
  1263. || tptz__OperatePresetTourResponse.soap_put(soap, "tptz:OperatePresetTourResponse", "")
  1264. || soap_body_end_out(soap)
  1265. || soap_envelope_end_out(soap))
  1266. return soap->error;
  1267. };
  1268. if (soap_end_count(soap)
  1269. || soap_response(soap, SOAP_OK)
  1270. || soap_envelope_begin_out(soap)
  1271. || soap_putheader(soap)
  1272. || soap_body_begin_out(soap)
  1273. || tptz__OperatePresetTourResponse.soap_put(soap, "tptz:OperatePresetTourResponse", "")
  1274. || soap_body_end_out(soap)
  1275. || soap_envelope_end_out(soap)
  1276. || soap_end_send(soap))
  1277. return soap->error;
  1278. return soap_closesock(soap);
  1279. }
  1280. static int serve___tptz__RemovePresetTour(PTZBindingService *soap)
  1281. { struct __tptz__RemovePresetTour soap_tmp___tptz__RemovePresetTour;
  1282. _tptz__RemovePresetTourResponse tptz__RemovePresetTourResponse;
  1283. tptz__RemovePresetTourResponse.soap_default(soap);
  1284. soap_default___tptz__RemovePresetTour(soap, &soap_tmp___tptz__RemovePresetTour);
  1285. if (!soap_get___tptz__RemovePresetTour(soap, &soap_tmp___tptz__RemovePresetTour, "-tptz:RemovePresetTour", NULL))
  1286. return soap->error;
  1287. if (soap_body_end_in(soap)
  1288. || soap_envelope_end_in(soap)
  1289. || soap_end_recv(soap))
  1290. return soap->error;
  1291. soap->error = soap->RemovePresetTour(soap_tmp___tptz__RemovePresetTour.tptz__RemovePresetTour, &tptz__RemovePresetTourResponse);
  1292. if (soap->error)
  1293. return soap->error;
  1294. soap->encodingStyle = NULL;
  1295. soap_serializeheader(soap);
  1296. tptz__RemovePresetTourResponse.soap_serialize(soap);
  1297. if (soap_begin_count(soap))
  1298. return soap->error;
  1299. if (soap->mode & SOAP_IO_LENGTH)
  1300. { if (soap_envelope_begin_out(soap)
  1301. || soap_putheader(soap)
  1302. || soap_body_begin_out(soap)
  1303. || tptz__RemovePresetTourResponse.soap_put(soap, "tptz:RemovePresetTourResponse", "")
  1304. || soap_body_end_out(soap)
  1305. || soap_envelope_end_out(soap))
  1306. return soap->error;
  1307. };
  1308. if (soap_end_count(soap)
  1309. || soap_response(soap, SOAP_OK)
  1310. || soap_envelope_begin_out(soap)
  1311. || soap_putheader(soap)
  1312. || soap_body_begin_out(soap)
  1313. || tptz__RemovePresetTourResponse.soap_put(soap, "tptz:RemovePresetTourResponse", "")
  1314. || soap_body_end_out(soap)
  1315. || soap_envelope_end_out(soap)
  1316. || soap_end_send(soap))
  1317. return soap->error;
  1318. return soap_closesock(soap);
  1319. }
  1320. static int serve___tptz__GetCompatibleConfigurations(PTZBindingService *soap)
  1321. { struct __tptz__GetCompatibleConfigurations soap_tmp___tptz__GetCompatibleConfigurations;
  1322. _tptz__GetCompatibleConfigurationsResponse tptz__GetCompatibleConfigurationsResponse;
  1323. tptz__GetCompatibleConfigurationsResponse.soap_default(soap);
  1324. soap_default___tptz__GetCompatibleConfigurations(soap, &soap_tmp___tptz__GetCompatibleConfigurations);
  1325. if (!soap_get___tptz__GetCompatibleConfigurations(soap, &soap_tmp___tptz__GetCompatibleConfigurations, "-tptz:GetCompatibleConfigurations", NULL))
  1326. return soap->error;
  1327. if (soap_body_end_in(soap)
  1328. || soap_envelope_end_in(soap)
  1329. || soap_end_recv(soap))
  1330. return soap->error;
  1331. soap->error = soap->GetCompatibleConfigurations(soap_tmp___tptz__GetCompatibleConfigurations.tptz__GetCompatibleConfigurations, &tptz__GetCompatibleConfigurationsResponse);
  1332. if (soap->error)
  1333. return soap->error;
  1334. soap->encodingStyle = NULL;
  1335. soap_serializeheader(soap);
  1336. tptz__GetCompatibleConfigurationsResponse.soap_serialize(soap);
  1337. if (soap_begin_count(soap))
  1338. return soap->error;
  1339. if (soap->mode & SOAP_IO_LENGTH)
  1340. { if (soap_envelope_begin_out(soap)
  1341. || soap_putheader(soap)
  1342. || soap_body_begin_out(soap)
  1343. || tptz__GetCompatibleConfigurationsResponse.soap_put(soap, "tptz:GetCompatibleConfigurationsResponse", "")
  1344. || soap_body_end_out(soap)
  1345. || soap_envelope_end_out(soap))
  1346. return soap->error;
  1347. };
  1348. if (soap_end_count(soap)
  1349. || soap_response(soap, SOAP_OK)
  1350. || soap_envelope_begin_out(soap)
  1351. || soap_putheader(soap)
  1352. || soap_body_begin_out(soap)
  1353. || tptz__GetCompatibleConfigurationsResponse.soap_put(soap, "tptz:GetCompatibleConfigurationsResponse", "")
  1354. || soap_body_end_out(soap)
  1355. || soap_envelope_end_out(soap)
  1356. || soap_end_send(soap))
  1357. return soap->error;
  1358. return soap_closesock(soap);
  1359. }
  1360. /* End of server object code */