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. /* soapReceiverBindingService.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 "soapReceiverBindingService.h"
  10. ReceiverBindingService::ReceiverBindingService()
  11. { ReceiverBindingService_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
  12. }
  13. ReceiverBindingService::ReceiverBindingService(const struct soap &_soap) : soap(_soap)
  14. { }
  15. ReceiverBindingService::ReceiverBindingService(soap_mode iomode)
  16. { ReceiverBindingService_init(iomode, iomode);
  17. }
  18. ReceiverBindingService::ReceiverBindingService(soap_mode imode, soap_mode omode)
  19. { ReceiverBindingService_init(imode, omode);
  20. }
  21. ReceiverBindingService::~ReceiverBindingService()
  22. { }
  23. void ReceiverBindingService::ReceiverBindingService_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 ReceiverBindingService::destroy()
  66. { soap_destroy(this);
  67. soap_end(this);
  68. }
  69. void ReceiverBindingService::reset()
  70. { destroy();
  71. soap_done(this);
  72. soap_initialize(this);
  73. ReceiverBindingService_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
  74. }
  75. #ifndef WITH_PURE_VIRTUAL
  76. ReceiverBindingService *ReceiverBindingService::copy()
  77. { ReceiverBindingService *dup = SOAP_NEW_COPY(ReceiverBindingService(*(struct soap*)this));
  78. return dup;
  79. }
  80. #endif
  81. int ReceiverBindingService::soap_close_socket()
  82. { return soap_closesock(this);
  83. }
  84. int ReceiverBindingService::soap_force_close_socket()
  85. { return soap_force_closesock(this);
  86. }
  87. int ReceiverBindingService::soap_senderfault(const char *string, const char *detailXML)
  88. { return ::soap_sender_fault(this, string, detailXML);
  89. }
  90. int ReceiverBindingService::soap_senderfault(const char *subcodeQName, const char *string, const char *detailXML)
  91. { return ::soap_sender_fault_subcode(this, subcodeQName, string, detailXML);
  92. }
  93. int ReceiverBindingService::soap_receiverfault(const char *string, const char *detailXML)
  94. { return ::soap_receiver_fault(this, string, detailXML);
  95. }
  96. int ReceiverBindingService::soap_receiverfault(const char *subcodeQName, const char *string, const char *detailXML)
  97. { return ::soap_receiver_fault_subcode(this, subcodeQName, string, detailXML);
  98. }
  99. void ReceiverBindingService::soap_print_fault(FILE *fd)
  100. { ::soap_print_fault(this, fd);
  101. }
  102. #ifndef WITH_LEAN
  103. #ifndef WITH_COMPAT
  104. void ReceiverBindingService::soap_stream_fault(std::ostream& os)
  105. { ::soap_stream_fault(this, os);
  106. }
  107. #endif
  108. char *ReceiverBindingService::soap_sprint_fault(char *buf, size_t len)
  109. { return ::soap_sprint_fault(this, buf, len);
  110. }
  111. #endif
  112. void ReceiverBindingService::soap_noheader()
  113. { this->header = NULL;
  114. }
  115. void ReceiverBindingService::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 *ReceiverBindingService::soap_header()
  136. { return this->header;
  137. }
  138. int ReceiverBindingService::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 ReceiverBindingService::bind(const char *host, int port, int backlog)
  152. { return soap_bind(this, host, port, backlog);
  153. }
  154. SOAP_SOCKET ReceiverBindingService::accept()
  155. { return soap_accept(this);
  156. }
  157. #if defined(WITH_OPENSSL) || defined(WITH_GNUTLS)
  158. int ReceiverBindingService::ssl_accept()
  159. { return soap_ssl_accept(this);
  160. }
  161. #endif
  162. int ReceiverBindingService::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___trv__GetServiceCapabilities(ReceiverBindingService*);
  196. static int serve___trv__GetReceivers(ReceiverBindingService*);
  197. static int serve___trv__GetReceiver(ReceiverBindingService*);
  198. static int serve___trv__CreateReceiver(ReceiverBindingService*);
  199. static int serve___trv__DeleteReceiver(ReceiverBindingService*);
  200. static int serve___trv__ConfigureReceiver(ReceiverBindingService*);
  201. static int serve___trv__SetReceiverMode(ReceiverBindingService*);
  202. static int serve___trv__GetReceiverState(ReceiverBindingService*);
  203. int ReceiverBindingService::dispatch()
  204. { soap_peek_element(this);
  205. if (!soap_match_tag(this, this->tag, "trv:GetServiceCapabilities"))
  206. return serve___trv__GetServiceCapabilities(this);
  207. if (!soap_match_tag(this, this->tag, "trv:GetReceivers"))
  208. return serve___trv__GetReceivers(this);
  209. if (!soap_match_tag(this, this->tag, "trv:GetReceiver"))
  210. return serve___trv__GetReceiver(this);
  211. if (!soap_match_tag(this, this->tag, "trv:CreateReceiver"))
  212. return serve___trv__CreateReceiver(this);
  213. if (!soap_match_tag(this, this->tag, "trv:DeleteReceiver"))
  214. return serve___trv__DeleteReceiver(this);
  215. if (!soap_match_tag(this, this->tag, "trv:ConfigureReceiver"))
  216. return serve___trv__ConfigureReceiver(this);
  217. if (!soap_match_tag(this, this->tag, "trv:SetReceiverMode"))
  218. return serve___trv__SetReceiverMode(this);
  219. if (!soap_match_tag(this, this->tag, "trv:GetReceiverState"))
  220. return serve___trv__GetReceiverState(this);
  221. return this->error = SOAP_NO_METHOD;
  222. }
  223. static int serve___trv__GetServiceCapabilities(ReceiverBindingService *soap)
  224. { struct __trv__GetServiceCapabilities soap_tmp___trv__GetServiceCapabilities;
  225. _trv__GetServiceCapabilitiesResponse trv__GetServiceCapabilitiesResponse;
  226. trv__GetServiceCapabilitiesResponse.soap_default(soap);
  227. soap_default___trv__GetServiceCapabilities(soap, &soap_tmp___trv__GetServiceCapabilities);
  228. if (!soap_get___trv__GetServiceCapabilities(soap, &soap_tmp___trv__GetServiceCapabilities, "-trv: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___trv__GetServiceCapabilities.trv__GetServiceCapabilities, &trv__GetServiceCapabilitiesResponse);
  235. if (soap->error)
  236. return soap->error;
  237. soap->encodingStyle = NULL;
  238. soap_serializeheader(soap);
  239. trv__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. || trv__GetServiceCapabilitiesResponse.soap_put(soap, "trv: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. || trv__GetServiceCapabilitiesResponse.soap_put(soap, "trv: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___trv__GetReceivers(ReceiverBindingService *soap)
  264. { struct __trv__GetReceivers soap_tmp___trv__GetReceivers;
  265. _trv__GetReceiversResponse trv__GetReceiversResponse;
  266. trv__GetReceiversResponse.soap_default(soap);
  267. soap_default___trv__GetReceivers(soap, &soap_tmp___trv__GetReceivers);
  268. if (!soap_get___trv__GetReceivers(soap, &soap_tmp___trv__GetReceivers, "-trv:GetReceivers", 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->GetReceivers(soap_tmp___trv__GetReceivers.trv__GetReceivers, &trv__GetReceiversResponse);
  275. if (soap->error)
  276. return soap->error;
  277. soap->encodingStyle = NULL;
  278. soap_serializeheader(soap);
  279. trv__GetReceiversResponse.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. || trv__GetReceiversResponse.soap_put(soap, "trv:GetReceiversResponse", "")
  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. || trv__GetReceiversResponse.soap_put(soap, "trv:GetReceiversResponse", "")
  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___trv__GetReceiver(ReceiverBindingService *soap)
  304. { struct __trv__GetReceiver soap_tmp___trv__GetReceiver;
  305. _trv__GetReceiverResponse trv__GetReceiverResponse;
  306. trv__GetReceiverResponse.soap_default(soap);
  307. soap_default___trv__GetReceiver(soap, &soap_tmp___trv__GetReceiver);
  308. if (!soap_get___trv__GetReceiver(soap, &soap_tmp___trv__GetReceiver, "-trv:GetReceiver", 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->GetReceiver(soap_tmp___trv__GetReceiver.trv__GetReceiver, &trv__GetReceiverResponse);
  315. if (soap->error)
  316. return soap->error;
  317. soap->encodingStyle = NULL;
  318. soap_serializeheader(soap);
  319. trv__GetReceiverResponse.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. || trv__GetReceiverResponse.soap_put(soap, "trv:GetReceiverResponse", "")
  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. || trv__GetReceiverResponse.soap_put(soap, "trv:GetReceiverResponse", "")
  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___trv__CreateReceiver(ReceiverBindingService *soap)
  344. { struct __trv__CreateReceiver soap_tmp___trv__CreateReceiver;
  345. _trv__CreateReceiverResponse trv__CreateReceiverResponse;
  346. trv__CreateReceiverResponse.soap_default(soap);
  347. soap_default___trv__CreateReceiver(soap, &soap_tmp___trv__CreateReceiver);
  348. if (!soap_get___trv__CreateReceiver(soap, &soap_tmp___trv__CreateReceiver, "-trv:CreateReceiver", 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->CreateReceiver(soap_tmp___trv__CreateReceiver.trv__CreateReceiver, &trv__CreateReceiverResponse);
  355. if (soap->error)
  356. return soap->error;
  357. soap->encodingStyle = NULL;
  358. soap_serializeheader(soap);
  359. trv__CreateReceiverResponse.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. || trv__CreateReceiverResponse.soap_put(soap, "trv:CreateReceiverResponse", "")
  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. || trv__CreateReceiverResponse.soap_put(soap, "trv:CreateReceiverResponse", "")
  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___trv__DeleteReceiver(ReceiverBindingService *soap)
  384. { struct __trv__DeleteReceiver soap_tmp___trv__DeleteReceiver;
  385. _trv__DeleteReceiverResponse trv__DeleteReceiverResponse;
  386. trv__DeleteReceiverResponse.soap_default(soap);
  387. soap_default___trv__DeleteReceiver(soap, &soap_tmp___trv__DeleteReceiver);
  388. if (!soap_get___trv__DeleteReceiver(soap, &soap_tmp___trv__DeleteReceiver, "-trv:DeleteReceiver", 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->DeleteReceiver(soap_tmp___trv__DeleteReceiver.trv__DeleteReceiver, &trv__DeleteReceiverResponse);
  395. if (soap->error)
  396. return soap->error;
  397. soap->encodingStyle = NULL;
  398. soap_serializeheader(soap);
  399. trv__DeleteReceiverResponse.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. || trv__DeleteReceiverResponse.soap_put(soap, "trv:DeleteReceiverResponse", "")
  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. || trv__DeleteReceiverResponse.soap_put(soap, "trv:DeleteReceiverResponse", "")
  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___trv__ConfigureReceiver(ReceiverBindingService *soap)
  424. { struct __trv__ConfigureReceiver soap_tmp___trv__ConfigureReceiver;
  425. _trv__ConfigureReceiverResponse trv__ConfigureReceiverResponse;
  426. trv__ConfigureReceiverResponse.soap_default(soap);
  427. soap_default___trv__ConfigureReceiver(soap, &soap_tmp___trv__ConfigureReceiver);
  428. if (!soap_get___trv__ConfigureReceiver(soap, &soap_tmp___trv__ConfigureReceiver, "-trv:ConfigureReceiver", 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->ConfigureReceiver(soap_tmp___trv__ConfigureReceiver.trv__ConfigureReceiver, &trv__ConfigureReceiverResponse);
  435. if (soap->error)
  436. return soap->error;
  437. soap->encodingStyle = NULL;
  438. soap_serializeheader(soap);
  439. trv__ConfigureReceiverResponse.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. || trv__ConfigureReceiverResponse.soap_put(soap, "trv:ConfigureReceiverResponse", "")
  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. || trv__ConfigureReceiverResponse.soap_put(soap, "trv:ConfigureReceiverResponse", "")
  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___trv__SetReceiverMode(ReceiverBindingService *soap)
  464. { struct __trv__SetReceiverMode soap_tmp___trv__SetReceiverMode;
  465. _trv__SetReceiverModeResponse trv__SetReceiverModeResponse;
  466. trv__SetReceiverModeResponse.soap_default(soap);
  467. soap_default___trv__SetReceiverMode(soap, &soap_tmp___trv__SetReceiverMode);
  468. if (!soap_get___trv__SetReceiverMode(soap, &soap_tmp___trv__SetReceiverMode, "-trv:SetReceiverMode", 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->SetReceiverMode(soap_tmp___trv__SetReceiverMode.trv__SetReceiverMode, &trv__SetReceiverModeResponse);
  475. if (soap->error)
  476. return soap->error;
  477. soap->encodingStyle = NULL;
  478. soap_serializeheader(soap);
  479. trv__SetReceiverModeResponse.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. || trv__SetReceiverModeResponse.soap_put(soap, "trv:SetReceiverModeResponse", "")
  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. || trv__SetReceiverModeResponse.soap_put(soap, "trv:SetReceiverModeResponse", "")
  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___trv__GetReceiverState(ReceiverBindingService *soap)
  504. { struct __trv__GetReceiverState soap_tmp___trv__GetReceiverState;
  505. _trv__GetReceiverStateResponse trv__GetReceiverStateResponse;
  506. trv__GetReceiverStateResponse.soap_default(soap);
  507. soap_default___trv__GetReceiverState(soap, &soap_tmp___trv__GetReceiverState);
  508. if (!soap_get___trv__GetReceiverState(soap, &soap_tmp___trv__GetReceiverState, "-trv:GetReceiverState", 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->GetReceiverState(soap_tmp___trv__GetReceiverState.trv__GetReceiverState, &trv__GetReceiverStateResponse);
  515. if (soap->error)
  516. return soap->error;
  517. soap->encodingStyle = NULL;
  518. soap_serializeheader(soap);
  519. trv__GetReceiverStateResponse.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. || trv__GetReceiverStateResponse.soap_put(soap, "trv:GetReceiverStateResponse", "")
  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. || trv__GetReceiverStateResponse.soap_put(soap, "trv:GetReceiverStateResponse", "")
  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 */