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.

1024 lines
41 KiB

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /* soapRecordingBindingService.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 "soapRecordingBindingService.h"
  10. RecordingBindingService::RecordingBindingService()
  11. { RecordingBindingService_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
  12. }
  13. RecordingBindingService::RecordingBindingService(const struct soap &_soap) : soap(_soap)
  14. { }
  15. RecordingBindingService::RecordingBindingService(soap_mode iomode)
  16. { RecordingBindingService_init(iomode, iomode);
  17. }
  18. RecordingBindingService::RecordingBindingService(soap_mode imode, soap_mode omode)
  19. { RecordingBindingService_init(imode, omode);
  20. }
  21. RecordingBindingService::~RecordingBindingService()
  22. { }
  23. void RecordingBindingService::RecordingBindingService_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 RecordingBindingService::destroy()
  66. { soap_destroy(this);
  67. soap_end(this);
  68. }
  69. void RecordingBindingService::reset()
  70. { destroy();
  71. soap_done(this);
  72. soap_initialize(this);
  73. RecordingBindingService_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
  74. }
  75. #ifndef WITH_PURE_VIRTUAL
  76. RecordingBindingService *RecordingBindingService::copy()
  77. { RecordingBindingService *dup = SOAP_NEW_COPY(RecordingBindingService(*(struct soap*)this));
  78. return dup;
  79. }
  80. #endif
  81. int RecordingBindingService::soap_close_socket()
  82. { return soap_closesock(this);
  83. }
  84. int RecordingBindingService::soap_force_close_socket()
  85. { return soap_force_closesock(this);
  86. }
  87. int RecordingBindingService::soap_senderfault(const char *string, const char *detailXML)
  88. { return ::soap_sender_fault(this, string, detailXML);
  89. }
  90. int RecordingBindingService::soap_senderfault(const char *subcodeQName, const char *string, const char *detailXML)
  91. { return ::soap_sender_fault_subcode(this, subcodeQName, string, detailXML);
  92. }
  93. int RecordingBindingService::soap_receiverfault(const char *string, const char *detailXML)
  94. { return ::soap_receiver_fault(this, string, detailXML);
  95. }
  96. int RecordingBindingService::soap_receiverfault(const char *subcodeQName, const char *string, const char *detailXML)
  97. { return ::soap_receiver_fault_subcode(this, subcodeQName, string, detailXML);
  98. }
  99. void RecordingBindingService::soap_print_fault(FILE *fd)
  100. { ::soap_print_fault(this, fd);
  101. }
  102. #ifndef WITH_LEAN
  103. #ifndef WITH_COMPAT
  104. void RecordingBindingService::soap_stream_fault(std::ostream& os)
  105. { ::soap_stream_fault(this, os);
  106. }
  107. #endif
  108. char *RecordingBindingService::soap_sprint_fault(char *buf, size_t len)
  109. { return ::soap_sprint_fault(this, buf, len);
  110. }
  111. #endif
  112. void RecordingBindingService::soap_noheader()
  113. { this->header = NULL;
  114. }
  115. void RecordingBindingService::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 *RecordingBindingService::soap_header()
  136. { return this->header;
  137. }
  138. int RecordingBindingService::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 RecordingBindingService::bind(const char *host, int port, int backlog)
  152. { return soap_bind(this, host, port, backlog);
  153. }
  154. SOAP_SOCKET RecordingBindingService::accept()
  155. { return soap_accept(this);
  156. }
  157. #if defined(WITH_OPENSSL) || defined(WITH_GNUTLS)
  158. int RecordingBindingService::ssl_accept()
  159. { return soap_ssl_accept(this);
  160. }
  161. #endif
  162. int RecordingBindingService::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___trc__GetServiceCapabilities(RecordingBindingService*);
  196. static int serve___trc__CreateRecording(RecordingBindingService*);
  197. static int serve___trc__DeleteRecording(RecordingBindingService*);
  198. static int serve___trc__GetRecordings(RecordingBindingService*);
  199. static int serve___trc__SetRecordingConfiguration(RecordingBindingService*);
  200. static int serve___trc__GetRecordingConfiguration(RecordingBindingService*);
  201. static int serve___trc__GetRecordingOptions(RecordingBindingService*);
  202. static int serve___trc__CreateTrack(RecordingBindingService*);
  203. static int serve___trc__DeleteTrack(RecordingBindingService*);
  204. static int serve___trc__GetTrackConfiguration(RecordingBindingService*);
  205. static int serve___trc__SetTrackConfiguration(RecordingBindingService*);
  206. static int serve___trc__CreateRecordingJob(RecordingBindingService*);
  207. static int serve___trc__DeleteRecordingJob(RecordingBindingService*);
  208. static int serve___trc__GetRecordingJobs(RecordingBindingService*);
  209. static int serve___trc__SetRecordingJobConfiguration(RecordingBindingService*);
  210. static int serve___trc__GetRecordingJobConfiguration(RecordingBindingService*);
  211. static int serve___trc__SetRecordingJobMode(RecordingBindingService*);
  212. static int serve___trc__GetRecordingJobState(RecordingBindingService*);
  213. int RecordingBindingService::dispatch()
  214. { soap_peek_element(this);
  215. if (!soap_match_tag(this, this->tag, "trc:GetServiceCapabilities"))
  216. return serve___trc__GetServiceCapabilities(this);
  217. if (!soap_match_tag(this, this->tag, "trc:CreateRecording"))
  218. return serve___trc__CreateRecording(this);
  219. if (!soap_match_tag(this, this->tag, "trc:DeleteRecording"))
  220. return serve___trc__DeleteRecording(this);
  221. if (!soap_match_tag(this, this->tag, "trc:GetRecordings"))
  222. return serve___trc__GetRecordings(this);
  223. if (!soap_match_tag(this, this->tag, "trc:SetRecordingConfiguration"))
  224. return serve___trc__SetRecordingConfiguration(this);
  225. if (!soap_match_tag(this, this->tag, "trc:GetRecordingConfiguration"))
  226. return serve___trc__GetRecordingConfiguration(this);
  227. if (!soap_match_tag(this, this->tag, "trc:GetRecordingOptions"))
  228. return serve___trc__GetRecordingOptions(this);
  229. if (!soap_match_tag(this, this->tag, "trc:CreateTrack"))
  230. return serve___trc__CreateTrack(this);
  231. if (!soap_match_tag(this, this->tag, "trc:DeleteTrack"))
  232. return serve___trc__DeleteTrack(this);
  233. if (!soap_match_tag(this, this->tag, "trc:GetTrackConfiguration"))
  234. return serve___trc__GetTrackConfiguration(this);
  235. if (!soap_match_tag(this, this->tag, "trc:SetTrackConfiguration"))
  236. return serve___trc__SetTrackConfiguration(this);
  237. if (!soap_match_tag(this, this->tag, "trc:CreateRecordingJob"))
  238. return serve___trc__CreateRecordingJob(this);
  239. if (!soap_match_tag(this, this->tag, "trc:DeleteRecordingJob"))
  240. return serve___trc__DeleteRecordingJob(this);
  241. if (!soap_match_tag(this, this->tag, "trc:GetRecordingJobs"))
  242. return serve___trc__GetRecordingJobs(this);
  243. if (!soap_match_tag(this, this->tag, "trc:SetRecordingJobConfiguration"))
  244. return serve___trc__SetRecordingJobConfiguration(this);
  245. if (!soap_match_tag(this, this->tag, "trc:GetRecordingJobConfiguration"))
  246. return serve___trc__GetRecordingJobConfiguration(this);
  247. if (!soap_match_tag(this, this->tag, "trc:SetRecordingJobMode"))
  248. return serve___trc__SetRecordingJobMode(this);
  249. if (!soap_match_tag(this, this->tag, "trc:GetRecordingJobState"))
  250. return serve___trc__GetRecordingJobState(this);
  251. return this->error = SOAP_NO_METHOD;
  252. }
  253. static int serve___trc__GetServiceCapabilities(RecordingBindingService *soap)
  254. { struct __trc__GetServiceCapabilities soap_tmp___trc__GetServiceCapabilities;
  255. _trc__GetServiceCapabilitiesResponse trc__GetServiceCapabilitiesResponse;
  256. trc__GetServiceCapabilitiesResponse.soap_default(soap);
  257. soap_default___trc__GetServiceCapabilities(soap, &soap_tmp___trc__GetServiceCapabilities);
  258. if (!soap_get___trc__GetServiceCapabilities(soap, &soap_tmp___trc__GetServiceCapabilities, "-trc:GetServiceCapabilities", NULL))
  259. return soap->error;
  260. if (soap_body_end_in(soap)
  261. || soap_envelope_end_in(soap)
  262. || soap_end_recv(soap))
  263. return soap->error;
  264. soap->error = soap->GetServiceCapabilities(soap_tmp___trc__GetServiceCapabilities.trc__GetServiceCapabilities, &trc__GetServiceCapabilitiesResponse);
  265. if (soap->error)
  266. return soap->error;
  267. soap->encodingStyle = NULL;
  268. soap_serializeheader(soap);
  269. trc__GetServiceCapabilitiesResponse.soap_serialize(soap);
  270. if (soap_begin_count(soap))
  271. return soap->error;
  272. if (soap->mode & SOAP_IO_LENGTH)
  273. { if (soap_envelope_begin_out(soap)
  274. || soap_putheader(soap)
  275. || soap_body_begin_out(soap)
  276. || trc__GetServiceCapabilitiesResponse.soap_put(soap, "trc:GetServiceCapabilitiesResponse", "")
  277. || soap_body_end_out(soap)
  278. || soap_envelope_end_out(soap))
  279. return soap->error;
  280. };
  281. if (soap_end_count(soap)
  282. || soap_response(soap, SOAP_OK)
  283. || soap_envelope_begin_out(soap)
  284. || soap_putheader(soap)
  285. || soap_body_begin_out(soap)
  286. || trc__GetServiceCapabilitiesResponse.soap_put(soap, "trc:GetServiceCapabilitiesResponse", "")
  287. || soap_body_end_out(soap)
  288. || soap_envelope_end_out(soap)
  289. || soap_end_send(soap))
  290. return soap->error;
  291. return soap_closesock(soap);
  292. }
  293. static int serve___trc__CreateRecording(RecordingBindingService *soap)
  294. { struct __trc__CreateRecording soap_tmp___trc__CreateRecording;
  295. _trc__CreateRecordingResponse trc__CreateRecordingResponse;
  296. trc__CreateRecordingResponse.soap_default(soap);
  297. soap_default___trc__CreateRecording(soap, &soap_tmp___trc__CreateRecording);
  298. if (!soap_get___trc__CreateRecording(soap, &soap_tmp___trc__CreateRecording, "-trc:CreateRecording", NULL))
  299. return soap->error;
  300. if (soap_body_end_in(soap)
  301. || soap_envelope_end_in(soap)
  302. || soap_end_recv(soap))
  303. return soap->error;
  304. soap->error = soap->CreateRecording(soap_tmp___trc__CreateRecording.trc__CreateRecording, &trc__CreateRecordingResponse);
  305. if (soap->error)
  306. return soap->error;
  307. soap->encodingStyle = NULL;
  308. soap_serializeheader(soap);
  309. trc__CreateRecordingResponse.soap_serialize(soap);
  310. if (soap_begin_count(soap))
  311. return soap->error;
  312. if (soap->mode & SOAP_IO_LENGTH)
  313. { if (soap_envelope_begin_out(soap)
  314. || soap_putheader(soap)
  315. || soap_body_begin_out(soap)
  316. || trc__CreateRecordingResponse.soap_put(soap, "trc:CreateRecordingResponse", "")
  317. || soap_body_end_out(soap)
  318. || soap_envelope_end_out(soap))
  319. return soap->error;
  320. };
  321. if (soap_end_count(soap)
  322. || soap_response(soap, SOAP_OK)
  323. || soap_envelope_begin_out(soap)
  324. || soap_putheader(soap)
  325. || soap_body_begin_out(soap)
  326. || trc__CreateRecordingResponse.soap_put(soap, "trc:CreateRecordingResponse", "")
  327. || soap_body_end_out(soap)
  328. || soap_envelope_end_out(soap)
  329. || soap_end_send(soap))
  330. return soap->error;
  331. return soap_closesock(soap);
  332. }
  333. static int serve___trc__DeleteRecording(RecordingBindingService *soap)
  334. { struct __trc__DeleteRecording soap_tmp___trc__DeleteRecording;
  335. _trc__DeleteRecordingResponse trc__DeleteRecordingResponse;
  336. trc__DeleteRecordingResponse.soap_default(soap);
  337. soap_default___trc__DeleteRecording(soap, &soap_tmp___trc__DeleteRecording);
  338. if (!soap_get___trc__DeleteRecording(soap, &soap_tmp___trc__DeleteRecording, "-trc:DeleteRecording", NULL))
  339. return soap->error;
  340. if (soap_body_end_in(soap)
  341. || soap_envelope_end_in(soap)
  342. || soap_end_recv(soap))
  343. return soap->error;
  344. soap->error = soap->DeleteRecording(soap_tmp___trc__DeleteRecording.trc__DeleteRecording, &trc__DeleteRecordingResponse);
  345. if (soap->error)
  346. return soap->error;
  347. soap->encodingStyle = NULL;
  348. soap_serializeheader(soap);
  349. trc__DeleteRecordingResponse.soap_serialize(soap);
  350. if (soap_begin_count(soap))
  351. return soap->error;
  352. if (soap->mode & SOAP_IO_LENGTH)
  353. { if (soap_envelope_begin_out(soap)
  354. || soap_putheader(soap)
  355. || soap_body_begin_out(soap)
  356. || trc__DeleteRecordingResponse.soap_put(soap, "trc:DeleteRecordingResponse", "")
  357. || soap_body_end_out(soap)
  358. || soap_envelope_end_out(soap))
  359. return soap->error;
  360. };
  361. if (soap_end_count(soap)
  362. || soap_response(soap, SOAP_OK)
  363. || soap_envelope_begin_out(soap)
  364. || soap_putheader(soap)
  365. || soap_body_begin_out(soap)
  366. || trc__DeleteRecordingResponse.soap_put(soap, "trc:DeleteRecordingResponse", "")
  367. || soap_body_end_out(soap)
  368. || soap_envelope_end_out(soap)
  369. || soap_end_send(soap))
  370. return soap->error;
  371. return soap_closesock(soap);
  372. }
  373. static int serve___trc__GetRecordings(RecordingBindingService *soap)
  374. { struct __trc__GetRecordings soap_tmp___trc__GetRecordings;
  375. _trc__GetRecordingsResponse trc__GetRecordingsResponse;
  376. trc__GetRecordingsResponse.soap_default(soap);
  377. soap_default___trc__GetRecordings(soap, &soap_tmp___trc__GetRecordings);
  378. if (!soap_get___trc__GetRecordings(soap, &soap_tmp___trc__GetRecordings, "-trc:GetRecordings", NULL))
  379. return soap->error;
  380. if (soap_body_end_in(soap)
  381. || soap_envelope_end_in(soap)
  382. || soap_end_recv(soap))
  383. return soap->error;
  384. soap->error = soap->GetRecordings(soap_tmp___trc__GetRecordings.trc__GetRecordings, &trc__GetRecordingsResponse);
  385. if (soap->error)
  386. return soap->error;
  387. soap->encodingStyle = NULL;
  388. soap_serializeheader(soap);
  389. trc__GetRecordingsResponse.soap_serialize(soap);
  390. if (soap_begin_count(soap))
  391. return soap->error;
  392. if (soap->mode & SOAP_IO_LENGTH)
  393. { if (soap_envelope_begin_out(soap)
  394. || soap_putheader(soap)
  395. || soap_body_begin_out(soap)
  396. || trc__GetRecordingsResponse.soap_put(soap, "trc:GetRecordingsResponse", "")
  397. || soap_body_end_out(soap)
  398. || soap_envelope_end_out(soap))
  399. return soap->error;
  400. };
  401. if (soap_end_count(soap)
  402. || soap_response(soap, SOAP_OK)
  403. || soap_envelope_begin_out(soap)
  404. || soap_putheader(soap)
  405. || soap_body_begin_out(soap)
  406. || trc__GetRecordingsResponse.soap_put(soap, "trc:GetRecordingsResponse", "")
  407. || soap_body_end_out(soap)
  408. || soap_envelope_end_out(soap)
  409. || soap_end_send(soap))
  410. return soap->error;
  411. return soap_closesock(soap);
  412. }
  413. static int serve___trc__SetRecordingConfiguration(RecordingBindingService *soap)
  414. { struct __trc__SetRecordingConfiguration soap_tmp___trc__SetRecordingConfiguration;
  415. _trc__SetRecordingConfigurationResponse trc__SetRecordingConfigurationResponse;
  416. trc__SetRecordingConfigurationResponse.soap_default(soap);
  417. soap_default___trc__SetRecordingConfiguration(soap, &soap_tmp___trc__SetRecordingConfiguration);
  418. if (!soap_get___trc__SetRecordingConfiguration(soap, &soap_tmp___trc__SetRecordingConfiguration, "-trc:SetRecordingConfiguration", NULL))
  419. return soap->error;
  420. if (soap_body_end_in(soap)
  421. || soap_envelope_end_in(soap)
  422. || soap_end_recv(soap))
  423. return soap->error;
  424. soap->error = soap->SetRecordingConfiguration(soap_tmp___trc__SetRecordingConfiguration.trc__SetRecordingConfiguration, &trc__SetRecordingConfigurationResponse);
  425. if (soap->error)
  426. return soap->error;
  427. soap->encodingStyle = NULL;
  428. soap_serializeheader(soap);
  429. trc__SetRecordingConfigurationResponse.soap_serialize(soap);
  430. if (soap_begin_count(soap))
  431. return soap->error;
  432. if (soap->mode & SOAP_IO_LENGTH)
  433. { if (soap_envelope_begin_out(soap)
  434. || soap_putheader(soap)
  435. || soap_body_begin_out(soap)
  436. || trc__SetRecordingConfigurationResponse.soap_put(soap, "trc:SetRecordingConfigurationResponse", "")
  437. || soap_body_end_out(soap)
  438. || soap_envelope_end_out(soap))
  439. return soap->error;
  440. };
  441. if (soap_end_count(soap)
  442. || soap_response(soap, SOAP_OK)
  443. || soap_envelope_begin_out(soap)
  444. || soap_putheader(soap)
  445. || soap_body_begin_out(soap)
  446. || trc__SetRecordingConfigurationResponse.soap_put(soap, "trc:SetRecordingConfigurationResponse", "")
  447. || soap_body_end_out(soap)
  448. || soap_envelope_end_out(soap)
  449. || soap_end_send(soap))
  450. return soap->error;
  451. return soap_closesock(soap);
  452. }
  453. static int serve___trc__GetRecordingConfiguration(RecordingBindingService *soap)
  454. { struct __trc__GetRecordingConfiguration soap_tmp___trc__GetRecordingConfiguration;
  455. _trc__GetRecordingConfigurationResponse trc__GetRecordingConfigurationResponse;
  456. trc__GetRecordingConfigurationResponse.soap_default(soap);
  457. soap_default___trc__GetRecordingConfiguration(soap, &soap_tmp___trc__GetRecordingConfiguration);
  458. if (!soap_get___trc__GetRecordingConfiguration(soap, &soap_tmp___trc__GetRecordingConfiguration, "-trc:GetRecordingConfiguration", NULL))
  459. return soap->error;
  460. if (soap_body_end_in(soap)
  461. || soap_envelope_end_in(soap)
  462. || soap_end_recv(soap))
  463. return soap->error;
  464. soap->error = soap->GetRecordingConfiguration(soap_tmp___trc__GetRecordingConfiguration.trc__GetRecordingConfiguration, &trc__GetRecordingConfigurationResponse);
  465. if (soap->error)
  466. return soap->error;
  467. soap->encodingStyle = NULL;
  468. soap_serializeheader(soap);
  469. trc__GetRecordingConfigurationResponse.soap_serialize(soap);
  470. if (soap_begin_count(soap))
  471. return soap->error;
  472. if (soap->mode & SOAP_IO_LENGTH)
  473. { if (soap_envelope_begin_out(soap)
  474. || soap_putheader(soap)
  475. || soap_body_begin_out(soap)
  476. || trc__GetRecordingConfigurationResponse.soap_put(soap, "trc:GetRecordingConfigurationResponse", "")
  477. || soap_body_end_out(soap)
  478. || soap_envelope_end_out(soap))
  479. return soap->error;
  480. };
  481. if (soap_end_count(soap)
  482. || soap_response(soap, SOAP_OK)
  483. || soap_envelope_begin_out(soap)
  484. || soap_putheader(soap)
  485. || soap_body_begin_out(soap)
  486. || trc__GetRecordingConfigurationResponse.soap_put(soap, "trc:GetRecordingConfigurationResponse", "")
  487. || soap_body_end_out(soap)
  488. || soap_envelope_end_out(soap)
  489. || soap_end_send(soap))
  490. return soap->error;
  491. return soap_closesock(soap);
  492. }
  493. static int serve___trc__GetRecordingOptions(RecordingBindingService *soap)
  494. { struct __trc__GetRecordingOptions soap_tmp___trc__GetRecordingOptions;
  495. _trc__GetRecordingOptionsResponse trc__GetRecordingOptionsResponse;
  496. trc__GetRecordingOptionsResponse.soap_default(soap);
  497. soap_default___trc__GetRecordingOptions(soap, &soap_tmp___trc__GetRecordingOptions);
  498. if (!soap_get___trc__GetRecordingOptions(soap, &soap_tmp___trc__GetRecordingOptions, "-trc:GetRecordingOptions", NULL))
  499. return soap->error;
  500. if (soap_body_end_in(soap)
  501. || soap_envelope_end_in(soap)
  502. || soap_end_recv(soap))
  503. return soap->error;
  504. soap->error = soap->GetRecordingOptions(soap_tmp___trc__GetRecordingOptions.trc__GetRecordingOptions, &trc__GetRecordingOptionsResponse);
  505. if (soap->error)
  506. return soap->error;
  507. soap->encodingStyle = NULL;
  508. soap_serializeheader(soap);
  509. trc__GetRecordingOptionsResponse.soap_serialize(soap);
  510. if (soap_begin_count(soap))
  511. return soap->error;
  512. if (soap->mode & SOAP_IO_LENGTH)
  513. { if (soap_envelope_begin_out(soap)
  514. || soap_putheader(soap)
  515. || soap_body_begin_out(soap)
  516. || trc__GetRecordingOptionsResponse.soap_put(soap, "trc:GetRecordingOptionsResponse", "")
  517. || soap_body_end_out(soap)
  518. || soap_envelope_end_out(soap))
  519. return soap->error;
  520. };
  521. if (soap_end_count(soap)
  522. || soap_response(soap, SOAP_OK)
  523. || soap_envelope_begin_out(soap)
  524. || soap_putheader(soap)
  525. || soap_body_begin_out(soap)
  526. || trc__GetRecordingOptionsResponse.soap_put(soap, "trc:GetRecordingOptionsResponse", "")
  527. || soap_body_end_out(soap)
  528. || soap_envelope_end_out(soap)
  529. || soap_end_send(soap))
  530. return soap->error;
  531. return soap_closesock(soap);
  532. }
  533. static int serve___trc__CreateTrack(RecordingBindingService *soap)
  534. { struct __trc__CreateTrack soap_tmp___trc__CreateTrack;
  535. _trc__CreateTrackResponse trc__CreateTrackResponse;
  536. trc__CreateTrackResponse.soap_default(soap);
  537. soap_default___trc__CreateTrack(soap, &soap_tmp___trc__CreateTrack);
  538. if (!soap_get___trc__CreateTrack(soap, &soap_tmp___trc__CreateTrack, "-trc:CreateTrack", NULL))
  539. return soap->error;
  540. if (soap_body_end_in(soap)
  541. || soap_envelope_end_in(soap)
  542. || soap_end_recv(soap))
  543. return soap->error;
  544. soap->error = soap->CreateTrack(soap_tmp___trc__CreateTrack.trc__CreateTrack, &trc__CreateTrackResponse);
  545. if (soap->error)
  546. return soap->error;
  547. soap->encodingStyle = NULL;
  548. soap_serializeheader(soap);
  549. trc__CreateTrackResponse.soap_serialize(soap);
  550. if (soap_begin_count(soap))
  551. return soap->error;
  552. if (soap->mode & SOAP_IO_LENGTH)
  553. { if (soap_envelope_begin_out(soap)
  554. || soap_putheader(soap)
  555. || soap_body_begin_out(soap)
  556. || trc__CreateTrackResponse.soap_put(soap, "trc:CreateTrackResponse", "")
  557. || soap_body_end_out(soap)
  558. || soap_envelope_end_out(soap))
  559. return soap->error;
  560. };
  561. if (soap_end_count(soap)
  562. || soap_response(soap, SOAP_OK)
  563. || soap_envelope_begin_out(soap)
  564. || soap_putheader(soap)
  565. || soap_body_begin_out(soap)
  566. || trc__CreateTrackResponse.soap_put(soap, "trc:CreateTrackResponse", "")
  567. || soap_body_end_out(soap)
  568. || soap_envelope_end_out(soap)
  569. || soap_end_send(soap))
  570. return soap->error;
  571. return soap_closesock(soap);
  572. }
  573. static int serve___trc__DeleteTrack(RecordingBindingService *soap)
  574. { struct __trc__DeleteTrack soap_tmp___trc__DeleteTrack;
  575. _trc__DeleteTrackResponse trc__DeleteTrackResponse;
  576. trc__DeleteTrackResponse.soap_default(soap);
  577. soap_default___trc__DeleteTrack(soap, &soap_tmp___trc__DeleteTrack);
  578. if (!soap_get___trc__DeleteTrack(soap, &soap_tmp___trc__DeleteTrack, "-trc:DeleteTrack", NULL))
  579. return soap->error;
  580. if (soap_body_end_in(soap)
  581. || soap_envelope_end_in(soap)
  582. || soap_end_recv(soap))
  583. return soap->error;
  584. soap->error = soap->DeleteTrack(soap_tmp___trc__DeleteTrack.trc__DeleteTrack, &trc__DeleteTrackResponse);
  585. if (soap->error)
  586. return soap->error;
  587. soap->encodingStyle = NULL;
  588. soap_serializeheader(soap);
  589. trc__DeleteTrackResponse.soap_serialize(soap);
  590. if (soap_begin_count(soap))
  591. return soap->error;
  592. if (soap->mode & SOAP_IO_LENGTH)
  593. { if (soap_envelope_begin_out(soap)
  594. || soap_putheader(soap)
  595. || soap_body_begin_out(soap)
  596. || trc__DeleteTrackResponse.soap_put(soap, "trc:DeleteTrackResponse", "")
  597. || soap_body_end_out(soap)
  598. || soap_envelope_end_out(soap))
  599. return soap->error;
  600. };
  601. if (soap_end_count(soap)
  602. || soap_response(soap, SOAP_OK)
  603. || soap_envelope_begin_out(soap)
  604. || soap_putheader(soap)
  605. || soap_body_begin_out(soap)
  606. || trc__DeleteTrackResponse.soap_put(soap, "trc:DeleteTrackResponse", "")
  607. || soap_body_end_out(soap)
  608. || soap_envelope_end_out(soap)
  609. || soap_end_send(soap))
  610. return soap->error;
  611. return soap_closesock(soap);
  612. }
  613. static int serve___trc__GetTrackConfiguration(RecordingBindingService *soap)
  614. { struct __trc__GetTrackConfiguration soap_tmp___trc__GetTrackConfiguration;
  615. _trc__GetTrackConfigurationResponse trc__GetTrackConfigurationResponse;
  616. trc__GetTrackConfigurationResponse.soap_default(soap);
  617. soap_default___trc__GetTrackConfiguration(soap, &soap_tmp___trc__GetTrackConfiguration);
  618. if (!soap_get___trc__GetTrackConfiguration(soap, &soap_tmp___trc__GetTrackConfiguration, "-trc:GetTrackConfiguration", NULL))
  619. return soap->error;
  620. if (soap_body_end_in(soap)
  621. || soap_envelope_end_in(soap)
  622. || soap_end_recv(soap))
  623. return soap->error;
  624. soap->error = soap->GetTrackConfiguration(soap_tmp___trc__GetTrackConfiguration.trc__GetTrackConfiguration, &trc__GetTrackConfigurationResponse);
  625. if (soap->error)
  626. return soap->error;
  627. soap->encodingStyle = NULL;
  628. soap_serializeheader(soap);
  629. trc__GetTrackConfigurationResponse.soap_serialize(soap);
  630. if (soap_begin_count(soap))
  631. return soap->error;
  632. if (soap->mode & SOAP_IO_LENGTH)
  633. { if (soap_envelope_begin_out(soap)
  634. || soap_putheader(soap)
  635. || soap_body_begin_out(soap)
  636. || trc__GetTrackConfigurationResponse.soap_put(soap, "trc:GetTrackConfigurationResponse", "")
  637. || soap_body_end_out(soap)
  638. || soap_envelope_end_out(soap))
  639. return soap->error;
  640. };
  641. if (soap_end_count(soap)
  642. || soap_response(soap, SOAP_OK)
  643. || soap_envelope_begin_out(soap)
  644. || soap_putheader(soap)
  645. || soap_body_begin_out(soap)
  646. || trc__GetTrackConfigurationResponse.soap_put(soap, "trc:GetTrackConfigurationResponse", "")
  647. || soap_body_end_out(soap)
  648. || soap_envelope_end_out(soap)
  649. || soap_end_send(soap))
  650. return soap->error;
  651. return soap_closesock(soap);
  652. }
  653. static int serve___trc__SetTrackConfiguration(RecordingBindingService *soap)
  654. { struct __trc__SetTrackConfiguration soap_tmp___trc__SetTrackConfiguration;
  655. _trc__SetTrackConfigurationResponse trc__SetTrackConfigurationResponse;
  656. trc__SetTrackConfigurationResponse.soap_default(soap);
  657. soap_default___trc__SetTrackConfiguration(soap, &soap_tmp___trc__SetTrackConfiguration);
  658. if (!soap_get___trc__SetTrackConfiguration(soap, &soap_tmp___trc__SetTrackConfiguration, "-trc:SetTrackConfiguration", NULL))
  659. return soap->error;
  660. if (soap_body_end_in(soap)
  661. || soap_envelope_end_in(soap)
  662. || soap_end_recv(soap))
  663. return soap->error;
  664. soap->error = soap->SetTrackConfiguration(soap_tmp___trc__SetTrackConfiguration.trc__SetTrackConfiguration, &trc__SetTrackConfigurationResponse);
  665. if (soap->error)
  666. return soap->error;
  667. soap->encodingStyle = NULL;
  668. soap_serializeheader(soap);
  669. trc__SetTrackConfigurationResponse.soap_serialize(soap);
  670. if (soap_begin_count(soap))
  671. return soap->error;
  672. if (soap->mode & SOAP_IO_LENGTH)
  673. { if (soap_envelope_begin_out(soap)
  674. || soap_putheader(soap)
  675. || soap_body_begin_out(soap)
  676. || trc__SetTrackConfigurationResponse.soap_put(soap, "trc:SetTrackConfigurationResponse", "")
  677. || soap_body_end_out(soap)
  678. || soap_envelope_end_out(soap))
  679. return soap->error;
  680. };
  681. if (soap_end_count(soap)
  682. || soap_response(soap, SOAP_OK)
  683. || soap_envelope_begin_out(soap)
  684. || soap_putheader(soap)
  685. || soap_body_begin_out(soap)
  686. || trc__SetTrackConfigurationResponse.soap_put(soap, "trc:SetTrackConfigurationResponse", "")
  687. || soap_body_end_out(soap)
  688. || soap_envelope_end_out(soap)
  689. || soap_end_send(soap))
  690. return soap->error;
  691. return soap_closesock(soap);
  692. }
  693. static int serve___trc__CreateRecordingJob(RecordingBindingService *soap)
  694. { struct __trc__CreateRecordingJob soap_tmp___trc__CreateRecordingJob;
  695. _trc__CreateRecordingJobResponse trc__CreateRecordingJobResponse;
  696. trc__CreateRecordingJobResponse.soap_default(soap);
  697. soap_default___trc__CreateRecordingJob(soap, &soap_tmp___trc__CreateRecordingJob);
  698. if (!soap_get___trc__CreateRecordingJob(soap, &soap_tmp___trc__CreateRecordingJob, "-trc:CreateRecordingJob", NULL))
  699. return soap->error;
  700. if (soap_body_end_in(soap)
  701. || soap_envelope_end_in(soap)
  702. || soap_end_recv(soap))
  703. return soap->error;
  704. soap->error = soap->CreateRecordingJob(soap_tmp___trc__CreateRecordingJob.trc__CreateRecordingJob, &trc__CreateRecordingJobResponse);
  705. if (soap->error)
  706. return soap->error;
  707. soap->encodingStyle = NULL;
  708. soap_serializeheader(soap);
  709. trc__CreateRecordingJobResponse.soap_serialize(soap);
  710. if (soap_begin_count(soap))
  711. return soap->error;
  712. if (soap->mode & SOAP_IO_LENGTH)
  713. { if (soap_envelope_begin_out(soap)
  714. || soap_putheader(soap)
  715. || soap_body_begin_out(soap)
  716. || trc__CreateRecordingJobResponse.soap_put(soap, "trc:CreateRecordingJobResponse", "")
  717. || soap_body_end_out(soap)
  718. || soap_envelope_end_out(soap))
  719. return soap->error;
  720. };
  721. if (soap_end_count(soap)
  722. || soap_response(soap, SOAP_OK)
  723. || soap_envelope_begin_out(soap)
  724. || soap_putheader(soap)
  725. || soap_body_begin_out(soap)
  726. || trc__CreateRecordingJobResponse.soap_put(soap, "trc:CreateRecordingJobResponse", "")
  727. || soap_body_end_out(soap)
  728. || soap_envelope_end_out(soap)
  729. || soap_end_send(soap))
  730. return soap->error;
  731. return soap_closesock(soap);
  732. }
  733. static int serve___trc__DeleteRecordingJob(RecordingBindingService *soap)
  734. { struct __trc__DeleteRecordingJob soap_tmp___trc__DeleteRecordingJob;
  735. _trc__DeleteRecordingJobResponse trc__DeleteRecordingJobResponse;
  736. trc__DeleteRecordingJobResponse.soap_default(soap);
  737. soap_default___trc__DeleteRecordingJob(soap, &soap_tmp___trc__DeleteRecordingJob);
  738. if (!soap_get___trc__DeleteRecordingJob(soap, &soap_tmp___trc__DeleteRecordingJob, "-trc:DeleteRecordingJob", NULL))
  739. return soap->error;
  740. if (soap_body_end_in(soap)
  741. || soap_envelope_end_in(soap)
  742. || soap_end_recv(soap))
  743. return soap->error;
  744. soap->error = soap->DeleteRecordingJob(soap_tmp___trc__DeleteRecordingJob.trc__DeleteRecordingJob, &trc__DeleteRecordingJobResponse);
  745. if (soap->error)
  746. return soap->error;
  747. soap->encodingStyle = NULL;
  748. soap_serializeheader(soap);
  749. trc__DeleteRecordingJobResponse.soap_serialize(soap);
  750. if (soap_begin_count(soap))
  751. return soap->error;
  752. if (soap->mode & SOAP_IO_LENGTH)
  753. { if (soap_envelope_begin_out(soap)
  754. || soap_putheader(soap)
  755. || soap_body_begin_out(soap)
  756. || trc__DeleteRecordingJobResponse.soap_put(soap, "trc:DeleteRecordingJobResponse", "")
  757. || soap_body_end_out(soap)
  758. || soap_envelope_end_out(soap))
  759. return soap->error;
  760. };
  761. if (soap_end_count(soap)
  762. || soap_response(soap, SOAP_OK)
  763. || soap_envelope_begin_out(soap)
  764. || soap_putheader(soap)
  765. || soap_body_begin_out(soap)
  766. || trc__DeleteRecordingJobResponse.soap_put(soap, "trc:DeleteRecordingJobResponse", "")
  767. || soap_body_end_out(soap)
  768. || soap_envelope_end_out(soap)
  769. || soap_end_send(soap))
  770. return soap->error;
  771. return soap_closesock(soap);
  772. }
  773. static int serve___trc__GetRecordingJobs(RecordingBindingService *soap)
  774. { struct __trc__GetRecordingJobs soap_tmp___trc__GetRecordingJobs;
  775. _trc__GetRecordingJobsResponse trc__GetRecordingJobsResponse;
  776. trc__GetRecordingJobsResponse.soap_default(soap);
  777. soap_default___trc__GetRecordingJobs(soap, &soap_tmp___trc__GetRecordingJobs);
  778. if (!soap_get___trc__GetRecordingJobs(soap, &soap_tmp___trc__GetRecordingJobs, "-trc:GetRecordingJobs", NULL))
  779. return soap->error;
  780. if (soap_body_end_in(soap)
  781. || soap_envelope_end_in(soap)
  782. || soap_end_recv(soap))
  783. return soap->error;
  784. soap->error = soap->GetRecordingJobs(soap_tmp___trc__GetRecordingJobs.trc__GetRecordingJobs, &trc__GetRecordingJobsResponse);
  785. if (soap->error)
  786. return soap->error;
  787. soap->encodingStyle = NULL;
  788. soap_serializeheader(soap);
  789. trc__GetRecordingJobsResponse.soap_serialize(soap);
  790. if (soap_begin_count(soap))
  791. return soap->error;
  792. if (soap->mode & SOAP_IO_LENGTH)
  793. { if (soap_envelope_begin_out(soap)
  794. || soap_putheader(soap)
  795. || soap_body_begin_out(soap)
  796. || trc__GetRecordingJobsResponse.soap_put(soap, "trc:GetRecordingJobsResponse", "")
  797. || soap_body_end_out(soap)
  798. || soap_envelope_end_out(soap))
  799. return soap->error;
  800. };
  801. if (soap_end_count(soap)
  802. || soap_response(soap, SOAP_OK)
  803. || soap_envelope_begin_out(soap)
  804. || soap_putheader(soap)
  805. || soap_body_begin_out(soap)
  806. || trc__GetRecordingJobsResponse.soap_put(soap, "trc:GetRecordingJobsResponse", "")
  807. || soap_body_end_out(soap)
  808. || soap_envelope_end_out(soap)
  809. || soap_end_send(soap))
  810. return soap->error;
  811. return soap_closesock(soap);
  812. }
  813. static int serve___trc__SetRecordingJobConfiguration(RecordingBindingService *soap)
  814. { struct __trc__SetRecordingJobConfiguration soap_tmp___trc__SetRecordingJobConfiguration;
  815. _trc__SetRecordingJobConfigurationResponse trc__SetRecordingJobConfigurationResponse;
  816. trc__SetRecordingJobConfigurationResponse.soap_default(soap);
  817. soap_default___trc__SetRecordingJobConfiguration(soap, &soap_tmp___trc__SetRecordingJobConfiguration);
  818. if (!soap_get___trc__SetRecordingJobConfiguration(soap, &soap_tmp___trc__SetRecordingJobConfiguration, "-trc:SetRecordingJobConfiguration", NULL))
  819. return soap->error;
  820. if (soap_body_end_in(soap)
  821. || soap_envelope_end_in(soap)
  822. || soap_end_recv(soap))
  823. return soap->error;
  824. soap->error = soap->SetRecordingJobConfiguration(soap_tmp___trc__SetRecordingJobConfiguration.trc__SetRecordingJobConfiguration, &trc__SetRecordingJobConfigurationResponse);
  825. if (soap->error)
  826. return soap->error;
  827. soap->encodingStyle = NULL;
  828. soap_serializeheader(soap);
  829. trc__SetRecordingJobConfigurationResponse.soap_serialize(soap);
  830. if (soap_begin_count(soap))
  831. return soap->error;
  832. if (soap->mode & SOAP_IO_LENGTH)
  833. { if (soap_envelope_begin_out(soap)
  834. || soap_putheader(soap)
  835. || soap_body_begin_out(soap)
  836. || trc__SetRecordingJobConfigurationResponse.soap_put(soap, "trc:SetRecordingJobConfigurationResponse", "")
  837. || soap_body_end_out(soap)
  838. || soap_envelope_end_out(soap))
  839. return soap->error;
  840. };
  841. if (soap_end_count(soap)
  842. || soap_response(soap, SOAP_OK)
  843. || soap_envelope_begin_out(soap)
  844. || soap_putheader(soap)
  845. || soap_body_begin_out(soap)
  846. || trc__SetRecordingJobConfigurationResponse.soap_put(soap, "trc:SetRecordingJobConfigurationResponse", "")
  847. || soap_body_end_out(soap)
  848. || soap_envelope_end_out(soap)
  849. || soap_end_send(soap))
  850. return soap->error;
  851. return soap_closesock(soap);
  852. }
  853. static int serve___trc__GetRecordingJobConfiguration(RecordingBindingService *soap)
  854. { struct __trc__GetRecordingJobConfiguration soap_tmp___trc__GetRecordingJobConfiguration;
  855. _trc__GetRecordingJobConfigurationResponse trc__GetRecordingJobConfigurationResponse;
  856. trc__GetRecordingJobConfigurationResponse.soap_default(soap);
  857. soap_default___trc__GetRecordingJobConfiguration(soap, &soap_tmp___trc__GetRecordingJobConfiguration);
  858. if (!soap_get___trc__GetRecordingJobConfiguration(soap, &soap_tmp___trc__GetRecordingJobConfiguration, "-trc:GetRecordingJobConfiguration", NULL))
  859. return soap->error;
  860. if (soap_body_end_in(soap)
  861. || soap_envelope_end_in(soap)
  862. || soap_end_recv(soap))
  863. return soap->error;
  864. soap->error = soap->GetRecordingJobConfiguration(soap_tmp___trc__GetRecordingJobConfiguration.trc__GetRecordingJobConfiguration, &trc__GetRecordingJobConfigurationResponse);
  865. if (soap->error)
  866. return soap->error;
  867. soap->encodingStyle = NULL;
  868. soap_serializeheader(soap);
  869. trc__GetRecordingJobConfigurationResponse.soap_serialize(soap);
  870. if (soap_begin_count(soap))
  871. return soap->error;
  872. if (soap->mode & SOAP_IO_LENGTH)
  873. { if (soap_envelope_begin_out(soap)
  874. || soap_putheader(soap)
  875. || soap_body_begin_out(soap)
  876. || trc__GetRecordingJobConfigurationResponse.soap_put(soap, "trc:GetRecordingJobConfigurationResponse", "")
  877. || soap_body_end_out(soap)
  878. || soap_envelope_end_out(soap))
  879. return soap->error;
  880. };
  881. if (soap_end_count(soap)
  882. || soap_response(soap, SOAP_OK)
  883. || soap_envelope_begin_out(soap)
  884. || soap_putheader(soap)
  885. || soap_body_begin_out(soap)
  886. || trc__GetRecordingJobConfigurationResponse.soap_put(soap, "trc:GetRecordingJobConfigurationResponse", "")
  887. || soap_body_end_out(soap)
  888. || soap_envelope_end_out(soap)
  889. || soap_end_send(soap))
  890. return soap->error;
  891. return soap_closesock(soap);
  892. }
  893. static int serve___trc__SetRecordingJobMode(RecordingBindingService *soap)
  894. { struct __trc__SetRecordingJobMode soap_tmp___trc__SetRecordingJobMode;
  895. _trc__SetRecordingJobModeResponse trc__SetRecordingJobModeResponse;
  896. trc__SetRecordingJobModeResponse.soap_default(soap);
  897. soap_default___trc__SetRecordingJobMode(soap, &soap_tmp___trc__SetRecordingJobMode);
  898. if (!soap_get___trc__SetRecordingJobMode(soap, &soap_tmp___trc__SetRecordingJobMode, "-trc:SetRecordingJobMode", NULL))
  899. return soap->error;
  900. if (soap_body_end_in(soap)
  901. || soap_envelope_end_in(soap)
  902. || soap_end_recv(soap))
  903. return soap->error;
  904. soap->error = soap->SetRecordingJobMode(soap_tmp___trc__SetRecordingJobMode.trc__SetRecordingJobMode, &trc__SetRecordingJobModeResponse);
  905. if (soap->error)
  906. return soap->error;
  907. soap->encodingStyle = NULL;
  908. soap_serializeheader(soap);
  909. trc__SetRecordingJobModeResponse.soap_serialize(soap);
  910. if (soap_begin_count(soap))
  911. return soap->error;
  912. if (soap->mode & SOAP_IO_LENGTH)
  913. { if (soap_envelope_begin_out(soap)
  914. || soap_putheader(soap)
  915. || soap_body_begin_out(soap)
  916. || trc__SetRecordingJobModeResponse.soap_put(soap, "trc:SetRecordingJobModeResponse", "")
  917. || soap_body_end_out(soap)
  918. || soap_envelope_end_out(soap))
  919. return soap->error;
  920. };
  921. if (soap_end_count(soap)
  922. || soap_response(soap, SOAP_OK)
  923. || soap_envelope_begin_out(soap)
  924. || soap_putheader(soap)
  925. || soap_body_begin_out(soap)
  926. || trc__SetRecordingJobModeResponse.soap_put(soap, "trc:SetRecordingJobModeResponse", "")
  927. || soap_body_end_out(soap)
  928. || soap_envelope_end_out(soap)
  929. || soap_end_send(soap))
  930. return soap->error;
  931. return soap_closesock(soap);
  932. }
  933. static int serve___trc__GetRecordingJobState(RecordingBindingService *soap)
  934. { struct __trc__GetRecordingJobState soap_tmp___trc__GetRecordingJobState;
  935. _trc__GetRecordingJobStateResponse trc__GetRecordingJobStateResponse;
  936. trc__GetRecordingJobStateResponse.soap_default(soap);
  937. soap_default___trc__GetRecordingJobState(soap, &soap_tmp___trc__GetRecordingJobState);
  938. if (!soap_get___trc__GetRecordingJobState(soap, &soap_tmp___trc__GetRecordingJobState, "-trc:GetRecordingJobState", NULL))
  939. return soap->error;
  940. if (soap_body_end_in(soap)
  941. || soap_envelope_end_in(soap)
  942. || soap_end_recv(soap))
  943. return soap->error;
  944. soap->error = soap->GetRecordingJobState(soap_tmp___trc__GetRecordingJobState.trc__GetRecordingJobState, &trc__GetRecordingJobStateResponse);
  945. if (soap->error)
  946. return soap->error;
  947. soap->encodingStyle = NULL;
  948. soap_serializeheader(soap);
  949. trc__GetRecordingJobStateResponse.soap_serialize(soap);
  950. if (soap_begin_count(soap))
  951. return soap->error;
  952. if (soap->mode & SOAP_IO_LENGTH)
  953. { if (soap_envelope_begin_out(soap)
  954. || soap_putheader(soap)
  955. || soap_body_begin_out(soap)
  956. || trc__GetRecordingJobStateResponse.soap_put(soap, "trc:GetRecordingJobStateResponse", "")
  957. || soap_body_end_out(soap)
  958. || soap_envelope_end_out(soap))
  959. return soap->error;
  960. };
  961. if (soap_end_count(soap)
  962. || soap_response(soap, SOAP_OK)
  963. || soap_envelope_begin_out(soap)
  964. || soap_putheader(soap)
  965. || soap_body_begin_out(soap)
  966. || trc__GetRecordingJobStateResponse.soap_put(soap, "trc:GetRecordingJobStateResponse", "")
  967. || soap_body_end_out(soap)
  968. || soap_envelope_end_out(soap)
  969. || soap_end_send(soap))
  970. return soap->error;
  971. return soap_closesock(soap);
  972. }
  973. /* End of server object code */