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.

584 lines
22 KiB

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /* soapImagingBindingService.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 "soapImagingBindingService.h"
  10. ImagingBindingService::ImagingBindingService()
  11. { ImagingBindingService_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
  12. }
  13. ImagingBindingService::ImagingBindingService(const struct soap &_soap) : soap(_soap)
  14. { }
  15. ImagingBindingService::ImagingBindingService(soap_mode iomode)
  16. { ImagingBindingService_init(iomode, iomode);
  17. }
  18. ImagingBindingService::ImagingBindingService(soap_mode imode, soap_mode omode)
  19. { ImagingBindingService_init(imode, omode);
  20. }
  21. ImagingBindingService::~ImagingBindingService()
  22. { }
  23. void ImagingBindingService::ImagingBindingService_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 ImagingBindingService::destroy()
  66. { soap_destroy(this);
  67. soap_end(this);
  68. }
  69. void ImagingBindingService::reset()
  70. { destroy();
  71. soap_done(this);
  72. soap_initialize(this);
  73. ImagingBindingService_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
  74. }
  75. #ifndef WITH_PURE_VIRTUAL
  76. ImagingBindingService *ImagingBindingService::copy()
  77. { ImagingBindingService *dup = SOAP_NEW_COPY(ImagingBindingService(*(struct soap*)this));
  78. return dup;
  79. }
  80. #endif
  81. int ImagingBindingService::soap_close_socket()
  82. { return soap_closesock(this);
  83. }
  84. int ImagingBindingService::soap_force_close_socket()
  85. { return soap_force_closesock(this);
  86. }
  87. int ImagingBindingService::soap_senderfault(const char *string, const char *detailXML)
  88. { return ::soap_sender_fault(this, string, detailXML);
  89. }
  90. int ImagingBindingService::soap_senderfault(const char *subcodeQName, const char *string, const char *detailXML)
  91. { return ::soap_sender_fault_subcode(this, subcodeQName, string, detailXML);
  92. }
  93. int ImagingBindingService::soap_receiverfault(const char *string, const char *detailXML)
  94. { return ::soap_receiver_fault(this, string, detailXML);
  95. }
  96. int ImagingBindingService::soap_receiverfault(const char *subcodeQName, const char *string, const char *detailXML)
  97. { return ::soap_receiver_fault_subcode(this, subcodeQName, string, detailXML);
  98. }
  99. void ImagingBindingService::soap_print_fault(FILE *fd)
  100. { ::soap_print_fault(this, fd);
  101. }
  102. #ifndef WITH_LEAN
  103. #ifndef WITH_COMPAT
  104. void ImagingBindingService::soap_stream_fault(std::ostream& os)
  105. { ::soap_stream_fault(this, os);
  106. }
  107. #endif
  108. char *ImagingBindingService::soap_sprint_fault(char *buf, size_t len)
  109. { return ::soap_sprint_fault(this, buf, len);
  110. }
  111. #endif
  112. void ImagingBindingService::soap_noheader()
  113. { this->header = NULL;
  114. }
  115. void ImagingBindingService::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 *ImagingBindingService::soap_header()
  136. { return this->header;
  137. }
  138. int ImagingBindingService::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 ImagingBindingService::bind(const char *host, int port, int backlog)
  152. { return soap_bind(this, host, port, backlog);
  153. }
  154. SOAP_SOCKET ImagingBindingService::accept()
  155. { return soap_accept(this);
  156. }
  157. #if defined(WITH_OPENSSL) || defined(WITH_GNUTLS)
  158. int ImagingBindingService::ssl_accept()
  159. { return soap_ssl_accept(this);
  160. }
  161. #endif
  162. int ImagingBindingService::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___timg__GetServiceCapabilities(ImagingBindingService*);
  196. static int serve___timg__GetImagingSettings(ImagingBindingService*);
  197. static int serve___timg__SetImagingSettings(ImagingBindingService*);
  198. static int serve___timg__GetOptions(ImagingBindingService*);
  199. static int serve___timg__Move(ImagingBindingService*);
  200. static int serve___timg__Stop(ImagingBindingService*);
  201. static int serve___timg__GetStatus(ImagingBindingService*);
  202. static int serve___timg__GetMoveOptions(ImagingBindingService*);
  203. int ImagingBindingService::dispatch()
  204. { soap_peek_element(this);
  205. if (!soap_match_tag(this, this->tag, "timg:GetServiceCapabilities"))
  206. return serve___timg__GetServiceCapabilities(this);
  207. if (!soap_match_tag(this, this->tag, "timg:GetImagingSettings"))
  208. return serve___timg__GetImagingSettings(this);
  209. if (!soap_match_tag(this, this->tag, "timg:SetImagingSettings"))
  210. return serve___timg__SetImagingSettings(this);
  211. if (!soap_match_tag(this, this->tag, "timg:GetOptions"))
  212. return serve___timg__GetOptions(this);
  213. if (!soap_match_tag(this, this->tag, "timg:Move"))
  214. return serve___timg__Move(this);
  215. if (!soap_match_tag(this, this->tag, "timg:Stop"))
  216. return serve___timg__Stop(this);
  217. if (!soap_match_tag(this, this->tag, "timg:GetStatus"))
  218. return serve___timg__GetStatus(this);
  219. if (!soap_match_tag(this, this->tag, "timg:GetMoveOptions"))
  220. return serve___timg__GetMoveOptions(this);
  221. return this->error = SOAP_NO_METHOD;
  222. }
  223. static int serve___timg__GetServiceCapabilities(ImagingBindingService *soap)
  224. { struct __timg__GetServiceCapabilities soap_tmp___timg__GetServiceCapabilities;
  225. _timg__GetServiceCapabilitiesResponse timg__GetServiceCapabilitiesResponse;
  226. timg__GetServiceCapabilitiesResponse.soap_default(soap);
  227. soap_default___timg__GetServiceCapabilities(soap, &soap_tmp___timg__GetServiceCapabilities);
  228. if (!soap_get___timg__GetServiceCapabilities(soap, &soap_tmp___timg__GetServiceCapabilities, "-timg:GetServiceCapabilities", NULL))
  229. return soap->error;
  230. if (soap_body_end_in(soap)
  231. || soap_envelope_end_in(soap)
  232. || soap_end_recv(soap))
  233. return soap->error;
  234. soap->error = soap->GetServiceCapabilities(soap_tmp___timg__GetServiceCapabilities.timg__GetServiceCapabilities, &timg__GetServiceCapabilitiesResponse);
  235. if (soap->error)
  236. return soap->error;
  237. soap->encodingStyle = NULL;
  238. soap_serializeheader(soap);
  239. timg__GetServiceCapabilitiesResponse.soap_serialize(soap);
  240. if (soap_begin_count(soap))
  241. return soap->error;
  242. if (soap->mode & SOAP_IO_LENGTH)
  243. { if (soap_envelope_begin_out(soap)
  244. || soap_putheader(soap)
  245. || soap_body_begin_out(soap)
  246. || timg__GetServiceCapabilitiesResponse.soap_put(soap, "timg:GetServiceCapabilitiesResponse", "")
  247. || soap_body_end_out(soap)
  248. || soap_envelope_end_out(soap))
  249. return soap->error;
  250. };
  251. if (soap_end_count(soap)
  252. || soap_response(soap, SOAP_OK)
  253. || soap_envelope_begin_out(soap)
  254. || soap_putheader(soap)
  255. || soap_body_begin_out(soap)
  256. || timg__GetServiceCapabilitiesResponse.soap_put(soap, "timg:GetServiceCapabilitiesResponse", "")
  257. || soap_body_end_out(soap)
  258. || soap_envelope_end_out(soap)
  259. || soap_end_send(soap))
  260. return soap->error;
  261. return soap_closesock(soap);
  262. }
  263. static int serve___timg__GetImagingSettings(ImagingBindingService *soap)
  264. { struct __timg__GetImagingSettings soap_tmp___timg__GetImagingSettings;
  265. _timg__GetImagingSettingsResponse timg__GetImagingSettingsResponse;
  266. timg__GetImagingSettingsResponse.soap_default(soap);
  267. soap_default___timg__GetImagingSettings(soap, &soap_tmp___timg__GetImagingSettings);
  268. if (!soap_get___timg__GetImagingSettings(soap, &soap_tmp___timg__GetImagingSettings, "-timg:GetImagingSettings", NULL))
  269. return soap->error;
  270. if (soap_body_end_in(soap)
  271. || soap_envelope_end_in(soap)
  272. || soap_end_recv(soap))
  273. return soap->error;
  274. soap->error = soap->GetImagingSettings(soap_tmp___timg__GetImagingSettings.timg__GetImagingSettings, &timg__GetImagingSettingsResponse);
  275. if (soap->error)
  276. return soap->error;
  277. soap->encodingStyle = NULL;
  278. soap_serializeheader(soap);
  279. timg__GetImagingSettingsResponse.soap_serialize(soap);
  280. if (soap_begin_count(soap))
  281. return soap->error;
  282. if (soap->mode & SOAP_IO_LENGTH)
  283. { if (soap_envelope_begin_out(soap)
  284. || soap_putheader(soap)
  285. || soap_body_begin_out(soap)
  286. || timg__GetImagingSettingsResponse.soap_put(soap, "timg:GetImagingSettingsResponse", "")
  287. || soap_body_end_out(soap)
  288. || soap_envelope_end_out(soap))
  289. return soap->error;
  290. };
  291. if (soap_end_count(soap)
  292. || soap_response(soap, SOAP_OK)
  293. || soap_envelope_begin_out(soap)
  294. || soap_putheader(soap)
  295. || soap_body_begin_out(soap)
  296. || timg__GetImagingSettingsResponse.soap_put(soap, "timg:GetImagingSettingsResponse", "")
  297. || soap_body_end_out(soap)
  298. || soap_envelope_end_out(soap)
  299. || soap_end_send(soap))
  300. return soap->error;
  301. return soap_closesock(soap);
  302. }
  303. static int serve___timg__SetImagingSettings(ImagingBindingService *soap)
  304. { struct __timg__SetImagingSettings soap_tmp___timg__SetImagingSettings;
  305. _timg__SetImagingSettingsResponse timg__SetImagingSettingsResponse;
  306. timg__SetImagingSettingsResponse.soap_default(soap);
  307. soap_default___timg__SetImagingSettings(soap, &soap_tmp___timg__SetImagingSettings);
  308. if (!soap_get___timg__SetImagingSettings(soap, &soap_tmp___timg__SetImagingSettings, "-timg:SetImagingSettings", NULL))
  309. return soap->error;
  310. if (soap_body_end_in(soap)
  311. || soap_envelope_end_in(soap)
  312. || soap_end_recv(soap))
  313. return soap->error;
  314. soap->error = soap->SetImagingSettings(soap_tmp___timg__SetImagingSettings.timg__SetImagingSettings, &timg__SetImagingSettingsResponse);
  315. if (soap->error)
  316. return soap->error;
  317. soap->encodingStyle = NULL;
  318. soap_serializeheader(soap);
  319. timg__SetImagingSettingsResponse.soap_serialize(soap);
  320. if (soap_begin_count(soap))
  321. return soap->error;
  322. if (soap->mode & SOAP_IO_LENGTH)
  323. { if (soap_envelope_begin_out(soap)
  324. || soap_putheader(soap)
  325. || soap_body_begin_out(soap)
  326. || timg__SetImagingSettingsResponse.soap_put(soap, "timg:SetImagingSettingsResponse", "")
  327. || soap_body_end_out(soap)
  328. || soap_envelope_end_out(soap))
  329. return soap->error;
  330. };
  331. if (soap_end_count(soap)
  332. || soap_response(soap, SOAP_OK)
  333. || soap_envelope_begin_out(soap)
  334. || soap_putheader(soap)
  335. || soap_body_begin_out(soap)
  336. || timg__SetImagingSettingsResponse.soap_put(soap, "timg:SetImagingSettingsResponse", "")
  337. || soap_body_end_out(soap)
  338. || soap_envelope_end_out(soap)
  339. || soap_end_send(soap))
  340. return soap->error;
  341. return soap_closesock(soap);
  342. }
  343. static int serve___timg__GetOptions(ImagingBindingService *soap)
  344. { struct __timg__GetOptions soap_tmp___timg__GetOptions;
  345. _timg__GetOptionsResponse timg__GetOptionsResponse;
  346. timg__GetOptionsResponse.soap_default(soap);
  347. soap_default___timg__GetOptions(soap, &soap_tmp___timg__GetOptions);
  348. if (!soap_get___timg__GetOptions(soap, &soap_tmp___timg__GetOptions, "-timg:GetOptions", NULL))
  349. return soap->error;
  350. if (soap_body_end_in(soap)
  351. || soap_envelope_end_in(soap)
  352. || soap_end_recv(soap))
  353. return soap->error;
  354. soap->error = soap->GetOptions(soap_tmp___timg__GetOptions.timg__GetOptions, &timg__GetOptionsResponse);
  355. if (soap->error)
  356. return soap->error;
  357. soap->encodingStyle = NULL;
  358. soap_serializeheader(soap);
  359. timg__GetOptionsResponse.soap_serialize(soap);
  360. if (soap_begin_count(soap))
  361. return soap->error;
  362. if (soap->mode & SOAP_IO_LENGTH)
  363. { if (soap_envelope_begin_out(soap)
  364. || soap_putheader(soap)
  365. || soap_body_begin_out(soap)
  366. || timg__GetOptionsResponse.soap_put(soap, "timg:GetOptionsResponse", "")
  367. || soap_body_end_out(soap)
  368. || soap_envelope_end_out(soap))
  369. return soap->error;
  370. };
  371. if (soap_end_count(soap)
  372. || soap_response(soap, SOAP_OK)
  373. || soap_envelope_begin_out(soap)
  374. || soap_putheader(soap)
  375. || soap_body_begin_out(soap)
  376. || timg__GetOptionsResponse.soap_put(soap, "timg:GetOptionsResponse", "")
  377. || soap_body_end_out(soap)
  378. || soap_envelope_end_out(soap)
  379. || soap_end_send(soap))
  380. return soap->error;
  381. return soap_closesock(soap);
  382. }
  383. static int serve___timg__Move(ImagingBindingService *soap)
  384. { struct __timg__Move soap_tmp___timg__Move;
  385. _timg__MoveResponse timg__MoveResponse;
  386. timg__MoveResponse.soap_default(soap);
  387. soap_default___timg__Move(soap, &soap_tmp___timg__Move);
  388. if (!soap_get___timg__Move(soap, &soap_tmp___timg__Move, "-timg:Move", NULL))
  389. return soap->error;
  390. if (soap_body_end_in(soap)
  391. || soap_envelope_end_in(soap)
  392. || soap_end_recv(soap))
  393. return soap->error;
  394. soap->error = soap->Move(soap_tmp___timg__Move.timg__Move, &timg__MoveResponse);
  395. if (soap->error)
  396. return soap->error;
  397. soap->encodingStyle = NULL;
  398. soap_serializeheader(soap);
  399. timg__MoveResponse.soap_serialize(soap);
  400. if (soap_begin_count(soap))
  401. return soap->error;
  402. if (soap->mode & SOAP_IO_LENGTH)
  403. { if (soap_envelope_begin_out(soap)
  404. || soap_putheader(soap)
  405. || soap_body_begin_out(soap)
  406. || timg__MoveResponse.soap_put(soap, "timg:MoveResponse", "")
  407. || soap_body_end_out(soap)
  408. || soap_envelope_end_out(soap))
  409. return soap->error;
  410. };
  411. if (soap_end_count(soap)
  412. || soap_response(soap, SOAP_OK)
  413. || soap_envelope_begin_out(soap)
  414. || soap_putheader(soap)
  415. || soap_body_begin_out(soap)
  416. || timg__MoveResponse.soap_put(soap, "timg:MoveResponse", "")
  417. || soap_body_end_out(soap)
  418. || soap_envelope_end_out(soap)
  419. || soap_end_send(soap))
  420. return soap->error;
  421. return soap_closesock(soap);
  422. }
  423. static int serve___timg__Stop(ImagingBindingService *soap)
  424. { struct __timg__Stop soap_tmp___timg__Stop;
  425. _timg__StopResponse timg__StopResponse;
  426. timg__StopResponse.soap_default(soap);
  427. soap_default___timg__Stop(soap, &soap_tmp___timg__Stop);
  428. if (!soap_get___timg__Stop(soap, &soap_tmp___timg__Stop, "-timg:Stop", NULL))
  429. return soap->error;
  430. if (soap_body_end_in(soap)
  431. || soap_envelope_end_in(soap)
  432. || soap_end_recv(soap))
  433. return soap->error;
  434. soap->error = soap->Stop(soap_tmp___timg__Stop.timg__Stop, &timg__StopResponse);
  435. if (soap->error)
  436. return soap->error;
  437. soap->encodingStyle = NULL;
  438. soap_serializeheader(soap);
  439. timg__StopResponse.soap_serialize(soap);
  440. if (soap_begin_count(soap))
  441. return soap->error;
  442. if (soap->mode & SOAP_IO_LENGTH)
  443. { if (soap_envelope_begin_out(soap)
  444. || soap_putheader(soap)
  445. || soap_body_begin_out(soap)
  446. || timg__StopResponse.soap_put(soap, "timg:StopResponse", "")
  447. || soap_body_end_out(soap)
  448. || soap_envelope_end_out(soap))
  449. return soap->error;
  450. };
  451. if (soap_end_count(soap)
  452. || soap_response(soap, SOAP_OK)
  453. || soap_envelope_begin_out(soap)
  454. || soap_putheader(soap)
  455. || soap_body_begin_out(soap)
  456. || timg__StopResponse.soap_put(soap, "timg:StopResponse", "")
  457. || soap_body_end_out(soap)
  458. || soap_envelope_end_out(soap)
  459. || soap_end_send(soap))
  460. return soap->error;
  461. return soap_closesock(soap);
  462. }
  463. static int serve___timg__GetStatus(ImagingBindingService *soap)
  464. { struct __timg__GetStatus soap_tmp___timg__GetStatus;
  465. _timg__GetStatusResponse timg__GetStatusResponse;
  466. timg__GetStatusResponse.soap_default(soap);
  467. soap_default___timg__GetStatus(soap, &soap_tmp___timg__GetStatus);
  468. if (!soap_get___timg__GetStatus(soap, &soap_tmp___timg__GetStatus, "-timg:GetStatus", NULL))
  469. return soap->error;
  470. if (soap_body_end_in(soap)
  471. || soap_envelope_end_in(soap)
  472. || soap_end_recv(soap))
  473. return soap->error;
  474. soap->error = soap->GetStatus(soap_tmp___timg__GetStatus.timg__GetStatus, &timg__GetStatusResponse);
  475. if (soap->error)
  476. return soap->error;
  477. soap->encodingStyle = NULL;
  478. soap_serializeheader(soap);
  479. timg__GetStatusResponse.soap_serialize(soap);
  480. if (soap_begin_count(soap))
  481. return soap->error;
  482. if (soap->mode & SOAP_IO_LENGTH)
  483. { if (soap_envelope_begin_out(soap)
  484. || soap_putheader(soap)
  485. || soap_body_begin_out(soap)
  486. || timg__GetStatusResponse.soap_put(soap, "timg:GetStatusResponse", "")
  487. || soap_body_end_out(soap)
  488. || soap_envelope_end_out(soap))
  489. return soap->error;
  490. };
  491. if (soap_end_count(soap)
  492. || soap_response(soap, SOAP_OK)
  493. || soap_envelope_begin_out(soap)
  494. || soap_putheader(soap)
  495. || soap_body_begin_out(soap)
  496. || timg__GetStatusResponse.soap_put(soap, "timg:GetStatusResponse", "")
  497. || soap_body_end_out(soap)
  498. || soap_envelope_end_out(soap)
  499. || soap_end_send(soap))
  500. return soap->error;
  501. return soap_closesock(soap);
  502. }
  503. static int serve___timg__GetMoveOptions(ImagingBindingService *soap)
  504. { struct __timg__GetMoveOptions soap_tmp___timg__GetMoveOptions;
  505. _timg__GetMoveOptionsResponse timg__GetMoveOptionsResponse;
  506. timg__GetMoveOptionsResponse.soap_default(soap);
  507. soap_default___timg__GetMoveOptions(soap, &soap_tmp___timg__GetMoveOptions);
  508. if (!soap_get___timg__GetMoveOptions(soap, &soap_tmp___timg__GetMoveOptions, "-timg:GetMoveOptions", NULL))
  509. return soap->error;
  510. if (soap_body_end_in(soap)
  511. || soap_envelope_end_in(soap)
  512. || soap_end_recv(soap))
  513. return soap->error;
  514. soap->error = soap->GetMoveOptions(soap_tmp___timg__GetMoveOptions.timg__GetMoveOptions, &timg__GetMoveOptionsResponse);
  515. if (soap->error)
  516. return soap->error;
  517. soap->encodingStyle = NULL;
  518. soap_serializeheader(soap);
  519. timg__GetMoveOptionsResponse.soap_serialize(soap);
  520. if (soap_begin_count(soap))
  521. return soap->error;
  522. if (soap->mode & SOAP_IO_LENGTH)
  523. { if (soap_envelope_begin_out(soap)
  524. || soap_putheader(soap)
  525. || soap_body_begin_out(soap)
  526. || timg__GetMoveOptionsResponse.soap_put(soap, "timg:GetMoveOptionsResponse", "")
  527. || soap_body_end_out(soap)
  528. || soap_envelope_end_out(soap))
  529. return soap->error;
  530. };
  531. if (soap_end_count(soap)
  532. || soap_response(soap, SOAP_OK)
  533. || soap_envelope_begin_out(soap)
  534. || soap_putheader(soap)
  535. || soap_body_begin_out(soap)
  536. || timg__GetMoveOptionsResponse.soap_put(soap, "timg:GetMoveOptionsResponse", "")
  537. || soap_body_end_out(soap)
  538. || soap_envelope_end_out(soap)
  539. || soap_end_send(soap))
  540. return soap->error;
  541. return soap_closesock(soap);
  542. }
  543. /* End of server object code */