You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1420 lines
60 KiB

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /* soapDeviceIOBindingService.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 "soapDeviceIOBindingService.h"
  10. DeviceIOBindingService::DeviceIOBindingService()
  11. { DeviceIOBindingService_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
  12. }
  13. DeviceIOBindingService::DeviceIOBindingService(const struct soap &_soap) : soap(_soap)
  14. { }
  15. DeviceIOBindingService::DeviceIOBindingService(soap_mode iomode)
  16. { DeviceIOBindingService_init(iomode, iomode);
  17. }
  18. DeviceIOBindingService::DeviceIOBindingService(soap_mode imode, soap_mode omode)
  19. { DeviceIOBindingService_init(imode, omode);
  20. }
  21. DeviceIOBindingService::~DeviceIOBindingService()
  22. { }
  23. void DeviceIOBindingService::DeviceIOBindingService_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 DeviceIOBindingService::destroy()
  66. { soap_destroy(this);
  67. soap_end(this);
  68. }
  69. void DeviceIOBindingService::reset()
  70. { destroy();
  71. soap_done(this);
  72. soap_initialize(this);
  73. DeviceIOBindingService_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
  74. }
  75. #ifndef WITH_PURE_VIRTUAL
  76. DeviceIOBindingService *DeviceIOBindingService::copy()
  77. { DeviceIOBindingService *dup = SOAP_NEW_COPY(DeviceIOBindingService(*(struct soap*)this));
  78. return dup;
  79. }
  80. #endif
  81. int DeviceIOBindingService::soap_close_socket()
  82. { return soap_closesock(this);
  83. }
  84. int DeviceIOBindingService::soap_force_close_socket()
  85. { return soap_force_closesock(this);
  86. }
  87. int DeviceIOBindingService::soap_senderfault(const char *string, const char *detailXML)
  88. { return ::soap_sender_fault(this, string, detailXML);
  89. }
  90. int DeviceIOBindingService::soap_senderfault(const char *subcodeQName, const char *string, const char *detailXML)
  91. { return ::soap_sender_fault_subcode(this, subcodeQName, string, detailXML);
  92. }
  93. int DeviceIOBindingService::soap_receiverfault(const char *string, const char *detailXML)
  94. { return ::soap_receiver_fault(this, string, detailXML);
  95. }
  96. int DeviceIOBindingService::soap_receiverfault(const char *subcodeQName, const char *string, const char *detailXML)
  97. { return ::soap_receiver_fault_subcode(this, subcodeQName, string, detailXML);
  98. }
  99. void DeviceIOBindingService::soap_print_fault(FILE *fd)
  100. { ::soap_print_fault(this, fd);
  101. }
  102. #ifndef WITH_LEAN
  103. #ifndef WITH_COMPAT
  104. void DeviceIOBindingService::soap_stream_fault(std::ostream& os)
  105. { ::soap_stream_fault(this, os);
  106. }
  107. #endif
  108. char *DeviceIOBindingService::soap_sprint_fault(char *buf, size_t len)
  109. { return ::soap_sprint_fault(this, buf, len);
  110. }
  111. #endif
  112. void DeviceIOBindingService::soap_noheader()
  113. { this->header = NULL;
  114. }
  115. void DeviceIOBindingService::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 *DeviceIOBindingService::soap_header()
  136. { return this->header;
  137. }
  138. int DeviceIOBindingService::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 DeviceIOBindingService::bind(const char *host, int port, int backlog)
  152. { return soap_bind(this, host, port, backlog);
  153. }
  154. SOAP_SOCKET DeviceIOBindingService::accept()
  155. { return soap_accept(this);
  156. }
  157. #if defined(WITH_OPENSSL) || defined(WITH_GNUTLS)
  158. int DeviceIOBindingService::ssl_accept()
  159. { return soap_ssl_accept(this);
  160. }
  161. #endif
  162. int DeviceIOBindingService::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___tmd__GetServiceCapabilities(DeviceIOBindingService*);
  196. static int serve___tmd__GetRelayOutputOptions(DeviceIOBindingService*);
  197. static int serve___tmd__GetAudioSources(DeviceIOBindingService*);
  198. static int serve___tmd__GetAudioOutputs(DeviceIOBindingService*);
  199. static int serve___tmd__GetVideoSources(DeviceIOBindingService*);
  200. static int serve___tmd__GetVideoOutputs(DeviceIOBindingService*);
  201. static int serve___tmd__GetVideoSourceConfiguration(DeviceIOBindingService*);
  202. static int serve___tmd__GetVideoOutputConfiguration(DeviceIOBindingService*);
  203. static int serve___tmd__GetAudioSourceConfiguration(DeviceIOBindingService*);
  204. static int serve___tmd__GetAudioOutputConfiguration(DeviceIOBindingService*);
  205. static int serve___tmd__SetVideoSourceConfiguration(DeviceIOBindingService*);
  206. static int serve___tmd__SetVideoOutputConfiguration(DeviceIOBindingService*);
  207. static int serve___tmd__SetAudioSourceConfiguration(DeviceIOBindingService*);
  208. static int serve___tmd__SetAudioOutputConfiguration(DeviceIOBindingService*);
  209. static int serve___tmd__GetVideoSourceConfigurationOptions(DeviceIOBindingService*);
  210. static int serve___tmd__GetVideoOutputConfigurationOptions(DeviceIOBindingService*);
  211. static int serve___tmd__GetAudioSourceConfigurationOptions(DeviceIOBindingService*);
  212. static int serve___tmd__GetAudioOutputConfigurationOptions(DeviceIOBindingService*);
  213. static int serve___tmd__GetRelayOutputs(DeviceIOBindingService*);
  214. static int serve___tmd__SetRelayOutputSettings(DeviceIOBindingService*);
  215. static int serve___tmd__SetRelayOutputState(DeviceIOBindingService*);
  216. static int serve___tmd__GetDigitalInputs(DeviceIOBindingService*);
  217. static int serve___tmd__GetSerialPorts(DeviceIOBindingService*);
  218. static int serve___tmd__GetSerialPortConfiguration(DeviceIOBindingService*);
  219. static int serve___tmd__SetSerialPortConfiguration(DeviceIOBindingService*);
  220. static int serve___tmd__GetSerialPortConfigurationOptions(DeviceIOBindingService*);
  221. static int serve___tmd__SendReceiveSerialCommand(DeviceIOBindingService*);
  222. int DeviceIOBindingService::dispatch()
  223. { soap_peek_element(this);
  224. if (!soap_match_tag(this, this->tag, "tmd:GetServiceCapabilities"))
  225. return serve___tmd__GetServiceCapabilities(this);
  226. if (!soap_match_tag(this, this->tag, "tmd:GetRelayOutputOptions"))
  227. return serve___tmd__GetRelayOutputOptions(this);
  228. if (!soap_match_tag(this, this->tag, "trt:GetAudioSources"))
  229. return serve___tmd__GetAudioSources(this);
  230. if (!soap_match_tag(this, this->tag, "trt:GetAudioOutputs"))
  231. return serve___tmd__GetAudioOutputs(this);
  232. if (!soap_match_tag(this, this->tag, "trt:GetVideoSources"))
  233. return serve___tmd__GetVideoSources(this);
  234. if (!soap_match_tag(this, this->tag, "tmd:GetVideoOutputs"))
  235. return serve___tmd__GetVideoOutputs(this);
  236. if (!soap_match_tag(this, this->tag, "tmd:GetVideoSourceConfiguration"))
  237. return serve___tmd__GetVideoSourceConfiguration(this);
  238. if (!soap_match_tag(this, this->tag, "tmd:GetVideoOutputConfiguration"))
  239. return serve___tmd__GetVideoOutputConfiguration(this);
  240. if (!soap_match_tag(this, this->tag, "tmd:GetAudioSourceConfiguration"))
  241. return serve___tmd__GetAudioSourceConfiguration(this);
  242. if (!soap_match_tag(this, this->tag, "tmd:GetAudioOutputConfiguration"))
  243. return serve___tmd__GetAudioOutputConfiguration(this);
  244. if (!soap_match_tag(this, this->tag, "tmd:SetVideoSourceConfiguration"))
  245. return serve___tmd__SetVideoSourceConfiguration(this);
  246. if (!soap_match_tag(this, this->tag, "tmd:SetVideoOutputConfiguration"))
  247. return serve___tmd__SetVideoOutputConfiguration(this);
  248. if (!soap_match_tag(this, this->tag, "tmd:SetAudioSourceConfiguration"))
  249. return serve___tmd__SetAudioSourceConfiguration(this);
  250. if (!soap_match_tag(this, this->tag, "tmd:SetAudioOutputConfiguration"))
  251. return serve___tmd__SetAudioOutputConfiguration(this);
  252. if (!soap_match_tag(this, this->tag, "tmd:GetVideoSourceConfigurationOptions"))
  253. return serve___tmd__GetVideoSourceConfigurationOptions(this);
  254. if (!soap_match_tag(this, this->tag, "tmd:GetVideoOutputConfigurationOptions"))
  255. return serve___tmd__GetVideoOutputConfigurationOptions(this);
  256. if (!soap_match_tag(this, this->tag, "tmd:GetAudioSourceConfigurationOptions"))
  257. return serve___tmd__GetAudioSourceConfigurationOptions(this);
  258. if (!soap_match_tag(this, this->tag, "tmd:GetAudioOutputConfigurationOptions"))
  259. return serve___tmd__GetAudioOutputConfigurationOptions(this);
  260. if (!soap_match_tag(this, this->tag, "tds:GetRelayOutputs"))
  261. return serve___tmd__GetRelayOutputs(this);
  262. if (!soap_match_tag(this, this->tag, "tmd:SetRelayOutputSettings"))
  263. return serve___tmd__SetRelayOutputSettings(this);
  264. if (!soap_match_tag(this, this->tag, "tds:SetRelayOutputState"))
  265. return serve___tmd__SetRelayOutputState(this);
  266. if (!soap_match_tag(this, this->tag, "tmd:GetDigitalInputs"))
  267. return serve___tmd__GetDigitalInputs(this);
  268. if (!soap_match_tag(this, this->tag, "tmd:GetSerialPorts"))
  269. return serve___tmd__GetSerialPorts(this);
  270. if (!soap_match_tag(this, this->tag, "tmd:GetSerialPortConfiguration"))
  271. return serve___tmd__GetSerialPortConfiguration(this);
  272. if (!soap_match_tag(this, this->tag, "tmd:SetSerialPortConfiguration"))
  273. return serve___tmd__SetSerialPortConfiguration(this);
  274. if (!soap_match_tag(this, this->tag, "tmd:GetSerialPortConfigurationOptions"))
  275. return serve___tmd__GetSerialPortConfigurationOptions(this);
  276. if (!soap_match_tag(this, this->tag, "tmd:SendReceiveSerialCommand"))
  277. return serve___tmd__SendReceiveSerialCommand(this);
  278. return this->error = SOAP_NO_METHOD;
  279. }
  280. static int serve___tmd__GetServiceCapabilities(DeviceIOBindingService *soap)
  281. { struct __tmd__GetServiceCapabilities soap_tmp___tmd__GetServiceCapabilities;
  282. _tmd__GetServiceCapabilitiesResponse tmd__GetServiceCapabilitiesResponse;
  283. tmd__GetServiceCapabilitiesResponse.soap_default(soap);
  284. soap_default___tmd__GetServiceCapabilities(soap, &soap_tmp___tmd__GetServiceCapabilities);
  285. if (!soap_get___tmd__GetServiceCapabilities(soap, &soap_tmp___tmd__GetServiceCapabilities, "-tmd:GetServiceCapabilities", NULL))
  286. return soap->error;
  287. if (soap_body_end_in(soap)
  288. || soap_envelope_end_in(soap)
  289. || soap_end_recv(soap))
  290. return soap->error;
  291. soap->error = soap->GetServiceCapabilities(soap_tmp___tmd__GetServiceCapabilities.tmd__GetServiceCapabilities, &tmd__GetServiceCapabilitiesResponse);
  292. if (soap->error)
  293. return soap->error;
  294. soap->encodingStyle = NULL;
  295. soap_serializeheader(soap);
  296. tmd__GetServiceCapabilitiesResponse.soap_serialize(soap);
  297. if (soap_begin_count(soap))
  298. return soap->error;
  299. if (soap->mode & SOAP_IO_LENGTH)
  300. { if (soap_envelope_begin_out(soap)
  301. || soap_putheader(soap)
  302. || soap_body_begin_out(soap)
  303. || tmd__GetServiceCapabilitiesResponse.soap_put(soap, "tmd:GetServiceCapabilitiesResponse", "")
  304. || soap_body_end_out(soap)
  305. || soap_envelope_end_out(soap))
  306. return soap->error;
  307. };
  308. if (soap_end_count(soap)
  309. || soap_response(soap, SOAP_OK)
  310. || soap_envelope_begin_out(soap)
  311. || soap_putheader(soap)
  312. || soap_body_begin_out(soap)
  313. || tmd__GetServiceCapabilitiesResponse.soap_put(soap, "tmd:GetServiceCapabilitiesResponse", "")
  314. || soap_body_end_out(soap)
  315. || soap_envelope_end_out(soap)
  316. || soap_end_send(soap))
  317. return soap->error;
  318. return soap_closesock(soap);
  319. }
  320. static int serve___tmd__GetRelayOutputOptions(DeviceIOBindingService *soap)
  321. { struct __tmd__GetRelayOutputOptions soap_tmp___tmd__GetRelayOutputOptions;
  322. _tmd__GetRelayOutputOptionsResponse tmd__GetRelayOutputOptionsResponse;
  323. tmd__GetRelayOutputOptionsResponse.soap_default(soap);
  324. soap_default___tmd__GetRelayOutputOptions(soap, &soap_tmp___tmd__GetRelayOutputOptions);
  325. if (!soap_get___tmd__GetRelayOutputOptions(soap, &soap_tmp___tmd__GetRelayOutputOptions, "-tmd:GetRelayOutputOptions", NULL))
  326. return soap->error;
  327. if (soap_body_end_in(soap)
  328. || soap_envelope_end_in(soap)
  329. || soap_end_recv(soap))
  330. return soap->error;
  331. soap->error = soap->GetRelayOutputOptions(soap_tmp___tmd__GetRelayOutputOptions.tmd__GetRelayOutputOptions, &tmd__GetRelayOutputOptionsResponse);
  332. if (soap->error)
  333. return soap->error;
  334. soap->encodingStyle = NULL;
  335. soap_serializeheader(soap);
  336. tmd__GetRelayOutputOptionsResponse.soap_serialize(soap);
  337. if (soap_begin_count(soap))
  338. return soap->error;
  339. if (soap->mode & SOAP_IO_LENGTH)
  340. { if (soap_envelope_begin_out(soap)
  341. || soap_putheader(soap)
  342. || soap_body_begin_out(soap)
  343. || tmd__GetRelayOutputOptionsResponse.soap_put(soap, "tmd:GetRelayOutputOptionsResponse", "")
  344. || soap_body_end_out(soap)
  345. || soap_envelope_end_out(soap))
  346. return soap->error;
  347. };
  348. if (soap_end_count(soap)
  349. || soap_response(soap, SOAP_OK)
  350. || soap_envelope_begin_out(soap)
  351. || soap_putheader(soap)
  352. || soap_body_begin_out(soap)
  353. || tmd__GetRelayOutputOptionsResponse.soap_put(soap, "tmd:GetRelayOutputOptionsResponse", "")
  354. || soap_body_end_out(soap)
  355. || soap_envelope_end_out(soap)
  356. || soap_end_send(soap))
  357. return soap->error;
  358. return soap_closesock(soap);
  359. }
  360. static int serve___tmd__GetAudioSources(DeviceIOBindingService *soap)
  361. { struct __tmd__GetAudioSources soap_tmp___tmd__GetAudioSources;
  362. _trt__GetAudioSourcesResponse trt__GetAudioSourcesResponse;
  363. trt__GetAudioSourcesResponse.soap_default(soap);
  364. soap_default___tmd__GetAudioSources(soap, &soap_tmp___tmd__GetAudioSources);
  365. if (!soap_get___tmd__GetAudioSources(soap, &soap_tmp___tmd__GetAudioSources, "-tmd:GetAudioSources", NULL))
  366. return soap->error;
  367. if (soap_body_end_in(soap)
  368. || soap_envelope_end_in(soap)
  369. || soap_end_recv(soap))
  370. return soap->error;
  371. soap->error = soap->GetAudioSources(soap_tmp___tmd__GetAudioSources.trt__GetAudioSources, &trt__GetAudioSourcesResponse);
  372. if (soap->error)
  373. return soap->error;
  374. soap->encodingStyle = NULL;
  375. soap_serializeheader(soap);
  376. trt__GetAudioSourcesResponse.soap_serialize(soap);
  377. if (soap_begin_count(soap))
  378. return soap->error;
  379. if (soap->mode & SOAP_IO_LENGTH)
  380. { if (soap_envelope_begin_out(soap)
  381. || soap_putheader(soap)
  382. || soap_body_begin_out(soap)
  383. || trt__GetAudioSourcesResponse.soap_put(soap, "trt:GetAudioSourcesResponse", "")
  384. || soap_body_end_out(soap)
  385. || soap_envelope_end_out(soap))
  386. return soap->error;
  387. };
  388. if (soap_end_count(soap)
  389. || soap_response(soap, SOAP_OK)
  390. || soap_envelope_begin_out(soap)
  391. || soap_putheader(soap)
  392. || soap_body_begin_out(soap)
  393. || trt__GetAudioSourcesResponse.soap_put(soap, "trt:GetAudioSourcesResponse", "")
  394. || soap_body_end_out(soap)
  395. || soap_envelope_end_out(soap)
  396. || soap_end_send(soap))
  397. return soap->error;
  398. return soap_closesock(soap);
  399. }
  400. static int serve___tmd__GetAudioOutputs(DeviceIOBindingService *soap)
  401. { struct __tmd__GetAudioOutputs soap_tmp___tmd__GetAudioOutputs;
  402. _trt__GetAudioOutputsResponse trt__GetAudioOutputsResponse;
  403. trt__GetAudioOutputsResponse.soap_default(soap);
  404. soap_default___tmd__GetAudioOutputs(soap, &soap_tmp___tmd__GetAudioOutputs);
  405. if (!soap_get___tmd__GetAudioOutputs(soap, &soap_tmp___tmd__GetAudioOutputs, "-tmd:GetAudioOutputs", NULL))
  406. return soap->error;
  407. if (soap_body_end_in(soap)
  408. || soap_envelope_end_in(soap)
  409. || soap_end_recv(soap))
  410. return soap->error;
  411. soap->error = soap->GetAudioOutputs(soap_tmp___tmd__GetAudioOutputs.trt__GetAudioOutputs, &trt__GetAudioOutputsResponse);
  412. if (soap->error)
  413. return soap->error;
  414. soap->encodingStyle = NULL;
  415. soap_serializeheader(soap);
  416. trt__GetAudioOutputsResponse.soap_serialize(soap);
  417. if (soap_begin_count(soap))
  418. return soap->error;
  419. if (soap->mode & SOAP_IO_LENGTH)
  420. { if (soap_envelope_begin_out(soap)
  421. || soap_putheader(soap)
  422. || soap_body_begin_out(soap)
  423. || trt__GetAudioOutputsResponse.soap_put(soap, "trt:GetAudioOutputsResponse", "")
  424. || soap_body_end_out(soap)
  425. || soap_envelope_end_out(soap))
  426. return soap->error;
  427. };
  428. if (soap_end_count(soap)
  429. || soap_response(soap, SOAP_OK)
  430. || soap_envelope_begin_out(soap)
  431. || soap_putheader(soap)
  432. || soap_body_begin_out(soap)
  433. || trt__GetAudioOutputsResponse.soap_put(soap, "trt:GetAudioOutputsResponse", "")
  434. || soap_body_end_out(soap)
  435. || soap_envelope_end_out(soap)
  436. || soap_end_send(soap))
  437. return soap->error;
  438. return soap_closesock(soap);
  439. }
  440. static int serve___tmd__GetVideoSources(DeviceIOBindingService *soap)
  441. { struct __tmd__GetVideoSources soap_tmp___tmd__GetVideoSources;
  442. _trt__GetVideoSourcesResponse trt__GetVideoSourcesResponse;
  443. trt__GetVideoSourcesResponse.soap_default(soap);
  444. soap_default___tmd__GetVideoSources(soap, &soap_tmp___tmd__GetVideoSources);
  445. if (!soap_get___tmd__GetVideoSources(soap, &soap_tmp___tmd__GetVideoSources, "-tmd:GetVideoSources", NULL))
  446. return soap->error;
  447. if (soap_body_end_in(soap)
  448. || soap_envelope_end_in(soap)
  449. || soap_end_recv(soap))
  450. return soap->error;
  451. soap->error = soap->GetVideoSources(soap_tmp___tmd__GetVideoSources.trt__GetVideoSources, &trt__GetVideoSourcesResponse);
  452. if (soap->error)
  453. return soap->error;
  454. soap->encodingStyle = NULL;
  455. soap_serializeheader(soap);
  456. trt__GetVideoSourcesResponse.soap_serialize(soap);
  457. if (soap_begin_count(soap))
  458. return soap->error;
  459. if (soap->mode & SOAP_IO_LENGTH)
  460. { if (soap_envelope_begin_out(soap)
  461. || soap_putheader(soap)
  462. || soap_body_begin_out(soap)
  463. || trt__GetVideoSourcesResponse.soap_put(soap, "trt:GetVideoSourcesResponse", "")
  464. || soap_body_end_out(soap)
  465. || soap_envelope_end_out(soap))
  466. return soap->error;
  467. };
  468. if (soap_end_count(soap)
  469. || soap_response(soap, SOAP_OK)
  470. || soap_envelope_begin_out(soap)
  471. || soap_putheader(soap)
  472. || soap_body_begin_out(soap)
  473. || trt__GetVideoSourcesResponse.soap_put(soap, "trt:GetVideoSourcesResponse", "")
  474. || soap_body_end_out(soap)
  475. || soap_envelope_end_out(soap)
  476. || soap_end_send(soap))
  477. return soap->error;
  478. return soap_closesock(soap);
  479. }
  480. static int serve___tmd__GetVideoOutputs(DeviceIOBindingService *soap)
  481. { struct __tmd__GetVideoOutputs soap_tmp___tmd__GetVideoOutputs;
  482. _tmd__GetVideoOutputsResponse tmd__GetVideoOutputsResponse;
  483. tmd__GetVideoOutputsResponse.soap_default(soap);
  484. soap_default___tmd__GetVideoOutputs(soap, &soap_tmp___tmd__GetVideoOutputs);
  485. if (!soap_get___tmd__GetVideoOutputs(soap, &soap_tmp___tmd__GetVideoOutputs, "-tmd:GetVideoOutputs", NULL))
  486. return soap->error;
  487. if (soap_body_end_in(soap)
  488. || soap_envelope_end_in(soap)
  489. || soap_end_recv(soap))
  490. return soap->error;
  491. soap->error = soap->GetVideoOutputs(soap_tmp___tmd__GetVideoOutputs.tmd__GetVideoOutputs, &tmd__GetVideoOutputsResponse);
  492. if (soap->error)
  493. return soap->error;
  494. soap->encodingStyle = NULL;
  495. soap_serializeheader(soap);
  496. tmd__GetVideoOutputsResponse.soap_serialize(soap);
  497. if (soap_begin_count(soap))
  498. return soap->error;
  499. if (soap->mode & SOAP_IO_LENGTH)
  500. { if (soap_envelope_begin_out(soap)
  501. || soap_putheader(soap)
  502. || soap_body_begin_out(soap)
  503. || tmd__GetVideoOutputsResponse.soap_put(soap, "tmd:GetVideoOutputsResponse", "")
  504. || soap_body_end_out(soap)
  505. || soap_envelope_end_out(soap))
  506. return soap->error;
  507. };
  508. if (soap_end_count(soap)
  509. || soap_response(soap, SOAP_OK)
  510. || soap_envelope_begin_out(soap)
  511. || soap_putheader(soap)
  512. || soap_body_begin_out(soap)
  513. || tmd__GetVideoOutputsResponse.soap_put(soap, "tmd:GetVideoOutputsResponse", "")
  514. || soap_body_end_out(soap)
  515. || soap_envelope_end_out(soap)
  516. || soap_end_send(soap))
  517. return soap->error;
  518. return soap_closesock(soap);
  519. }
  520. static int serve___tmd__GetVideoSourceConfiguration(DeviceIOBindingService *soap)
  521. { struct __tmd__GetVideoSourceConfiguration soap_tmp___tmd__GetVideoSourceConfiguration;
  522. _tmd__GetVideoSourceConfigurationResponse tmd__GetVideoSourceConfigurationResponse;
  523. tmd__GetVideoSourceConfigurationResponse.soap_default(soap);
  524. soap_default___tmd__GetVideoSourceConfiguration(soap, &soap_tmp___tmd__GetVideoSourceConfiguration);
  525. if (!soap_get___tmd__GetVideoSourceConfiguration(soap, &soap_tmp___tmd__GetVideoSourceConfiguration, "-tmd:GetVideoSourceConfiguration", NULL))
  526. return soap->error;
  527. if (soap_body_end_in(soap)
  528. || soap_envelope_end_in(soap)
  529. || soap_end_recv(soap))
  530. return soap->error;
  531. soap->error = soap->GetVideoSourceConfiguration(soap_tmp___tmd__GetVideoSourceConfiguration.tmd__GetVideoSourceConfiguration, &tmd__GetVideoSourceConfigurationResponse);
  532. if (soap->error)
  533. return soap->error;
  534. soap->encodingStyle = NULL;
  535. soap_serializeheader(soap);
  536. tmd__GetVideoSourceConfigurationResponse.soap_serialize(soap);
  537. if (soap_begin_count(soap))
  538. return soap->error;
  539. if (soap->mode & SOAP_IO_LENGTH)
  540. { if (soap_envelope_begin_out(soap)
  541. || soap_putheader(soap)
  542. || soap_body_begin_out(soap)
  543. || tmd__GetVideoSourceConfigurationResponse.soap_put(soap, "tmd:GetVideoSourceConfigurationResponse", "")
  544. || soap_body_end_out(soap)
  545. || soap_envelope_end_out(soap))
  546. return soap->error;
  547. };
  548. if (soap_end_count(soap)
  549. || soap_response(soap, SOAP_OK)
  550. || soap_envelope_begin_out(soap)
  551. || soap_putheader(soap)
  552. || soap_body_begin_out(soap)
  553. || tmd__GetVideoSourceConfigurationResponse.soap_put(soap, "tmd:GetVideoSourceConfigurationResponse", "")
  554. || soap_body_end_out(soap)
  555. || soap_envelope_end_out(soap)
  556. || soap_end_send(soap))
  557. return soap->error;
  558. return soap_closesock(soap);
  559. }
  560. static int serve___tmd__GetVideoOutputConfiguration(DeviceIOBindingService *soap)
  561. { struct __tmd__GetVideoOutputConfiguration soap_tmp___tmd__GetVideoOutputConfiguration;
  562. _tmd__GetVideoOutputConfigurationResponse tmd__GetVideoOutputConfigurationResponse;
  563. tmd__GetVideoOutputConfigurationResponse.soap_default(soap);
  564. soap_default___tmd__GetVideoOutputConfiguration(soap, &soap_tmp___tmd__GetVideoOutputConfiguration);
  565. if (!soap_get___tmd__GetVideoOutputConfiguration(soap, &soap_tmp___tmd__GetVideoOutputConfiguration, "-tmd:GetVideoOutputConfiguration", NULL))
  566. return soap->error;
  567. if (soap_body_end_in(soap)
  568. || soap_envelope_end_in(soap)
  569. || soap_end_recv(soap))
  570. return soap->error;
  571. soap->error = soap->GetVideoOutputConfiguration(soap_tmp___tmd__GetVideoOutputConfiguration.tmd__GetVideoOutputConfiguration, &tmd__GetVideoOutputConfigurationResponse);
  572. if (soap->error)
  573. return soap->error;
  574. soap->encodingStyle = NULL;
  575. soap_serializeheader(soap);
  576. tmd__GetVideoOutputConfigurationResponse.soap_serialize(soap);
  577. if (soap_begin_count(soap))
  578. return soap->error;
  579. if (soap->mode & SOAP_IO_LENGTH)
  580. { if (soap_envelope_begin_out(soap)
  581. || soap_putheader(soap)
  582. || soap_body_begin_out(soap)
  583. || tmd__GetVideoOutputConfigurationResponse.soap_put(soap, "tmd:GetVideoOutputConfigurationResponse", "")
  584. || soap_body_end_out(soap)
  585. || soap_envelope_end_out(soap))
  586. return soap->error;
  587. };
  588. if (soap_end_count(soap)
  589. || soap_response(soap, SOAP_OK)
  590. || soap_envelope_begin_out(soap)
  591. || soap_putheader(soap)
  592. || soap_body_begin_out(soap)
  593. || tmd__GetVideoOutputConfigurationResponse.soap_put(soap, "tmd:GetVideoOutputConfigurationResponse", "")
  594. || soap_body_end_out(soap)
  595. || soap_envelope_end_out(soap)
  596. || soap_end_send(soap))
  597. return soap->error;
  598. return soap_closesock(soap);
  599. }
  600. static int serve___tmd__GetAudioSourceConfiguration(DeviceIOBindingService *soap)
  601. { struct __tmd__GetAudioSourceConfiguration soap_tmp___tmd__GetAudioSourceConfiguration;
  602. _tmd__GetAudioSourceConfigurationResponse tmd__GetAudioSourceConfigurationResponse;
  603. tmd__GetAudioSourceConfigurationResponse.soap_default(soap);
  604. soap_default___tmd__GetAudioSourceConfiguration(soap, &soap_tmp___tmd__GetAudioSourceConfiguration);
  605. if (!soap_get___tmd__GetAudioSourceConfiguration(soap, &soap_tmp___tmd__GetAudioSourceConfiguration, "-tmd:GetAudioSourceConfiguration", NULL))
  606. return soap->error;
  607. if (soap_body_end_in(soap)
  608. || soap_envelope_end_in(soap)
  609. || soap_end_recv(soap))
  610. return soap->error;
  611. soap->error = soap->GetAudioSourceConfiguration(soap_tmp___tmd__GetAudioSourceConfiguration.tmd__GetAudioSourceConfiguration, &tmd__GetAudioSourceConfigurationResponse);
  612. if (soap->error)
  613. return soap->error;
  614. soap->encodingStyle = NULL;
  615. soap_serializeheader(soap);
  616. tmd__GetAudioSourceConfigurationResponse.soap_serialize(soap);
  617. if (soap_begin_count(soap))
  618. return soap->error;
  619. if (soap->mode & SOAP_IO_LENGTH)
  620. { if (soap_envelope_begin_out(soap)
  621. || soap_putheader(soap)
  622. || soap_body_begin_out(soap)
  623. || tmd__GetAudioSourceConfigurationResponse.soap_put(soap, "tmd:GetAudioSourceConfigurationResponse", "")
  624. || soap_body_end_out(soap)
  625. || soap_envelope_end_out(soap))
  626. return soap->error;
  627. };
  628. if (soap_end_count(soap)
  629. || soap_response(soap, SOAP_OK)
  630. || soap_envelope_begin_out(soap)
  631. || soap_putheader(soap)
  632. || soap_body_begin_out(soap)
  633. || tmd__GetAudioSourceConfigurationResponse.soap_put(soap, "tmd:GetAudioSourceConfigurationResponse", "")
  634. || soap_body_end_out(soap)
  635. || soap_envelope_end_out(soap)
  636. || soap_end_send(soap))
  637. return soap->error;
  638. return soap_closesock(soap);
  639. }
  640. static int serve___tmd__GetAudioOutputConfiguration(DeviceIOBindingService *soap)
  641. { struct __tmd__GetAudioOutputConfiguration soap_tmp___tmd__GetAudioOutputConfiguration;
  642. _tmd__GetAudioOutputConfigurationResponse tmd__GetAudioOutputConfigurationResponse;
  643. tmd__GetAudioOutputConfigurationResponse.soap_default(soap);
  644. soap_default___tmd__GetAudioOutputConfiguration(soap, &soap_tmp___tmd__GetAudioOutputConfiguration);
  645. if (!soap_get___tmd__GetAudioOutputConfiguration(soap, &soap_tmp___tmd__GetAudioOutputConfiguration, "-tmd:GetAudioOutputConfiguration", NULL))
  646. return soap->error;
  647. if (soap_body_end_in(soap)
  648. || soap_envelope_end_in(soap)
  649. || soap_end_recv(soap))
  650. return soap->error;
  651. soap->error = soap->GetAudioOutputConfiguration(soap_tmp___tmd__GetAudioOutputConfiguration.tmd__GetAudioOutputConfiguration, &tmd__GetAudioOutputConfigurationResponse);
  652. if (soap->error)
  653. return soap->error;
  654. soap->encodingStyle = NULL;
  655. soap_serializeheader(soap);
  656. tmd__GetAudioOutputConfigurationResponse.soap_serialize(soap);
  657. if (soap_begin_count(soap))
  658. return soap->error;
  659. if (soap->mode & SOAP_IO_LENGTH)
  660. { if (soap_envelope_begin_out(soap)
  661. || soap_putheader(soap)
  662. || soap_body_begin_out(soap)
  663. || tmd__GetAudioOutputConfigurationResponse.soap_put(soap, "tmd:GetAudioOutputConfigurationResponse", "")
  664. || soap_body_end_out(soap)
  665. || soap_envelope_end_out(soap))
  666. return soap->error;
  667. };
  668. if (soap_end_count(soap)
  669. || soap_response(soap, SOAP_OK)
  670. || soap_envelope_begin_out(soap)
  671. || soap_putheader(soap)
  672. || soap_body_begin_out(soap)
  673. || tmd__GetAudioOutputConfigurationResponse.soap_put(soap, "tmd:GetAudioOutputConfigurationResponse", "")
  674. || soap_body_end_out(soap)
  675. || soap_envelope_end_out(soap)
  676. || soap_end_send(soap))
  677. return soap->error;
  678. return soap_closesock(soap);
  679. }
  680. static int serve___tmd__SetVideoSourceConfiguration(DeviceIOBindingService *soap)
  681. { struct __tmd__SetVideoSourceConfiguration soap_tmp___tmd__SetVideoSourceConfiguration;
  682. _tmd__SetVideoSourceConfigurationResponse tmd__SetVideoSourceConfigurationResponse;
  683. tmd__SetVideoSourceConfigurationResponse.soap_default(soap);
  684. soap_default___tmd__SetVideoSourceConfiguration(soap, &soap_tmp___tmd__SetVideoSourceConfiguration);
  685. if (!soap_get___tmd__SetVideoSourceConfiguration(soap, &soap_tmp___tmd__SetVideoSourceConfiguration, "-tmd:SetVideoSourceConfiguration", NULL))
  686. return soap->error;
  687. if (soap_body_end_in(soap)
  688. || soap_envelope_end_in(soap)
  689. || soap_end_recv(soap))
  690. return soap->error;
  691. soap->error = soap->SetVideoSourceConfiguration(soap_tmp___tmd__SetVideoSourceConfiguration.tmd__SetVideoSourceConfiguration, &tmd__SetVideoSourceConfigurationResponse);
  692. if (soap->error)
  693. return soap->error;
  694. soap->encodingStyle = NULL;
  695. soap_serializeheader(soap);
  696. tmd__SetVideoSourceConfigurationResponse.soap_serialize(soap);
  697. if (soap_begin_count(soap))
  698. return soap->error;
  699. if (soap->mode & SOAP_IO_LENGTH)
  700. { if (soap_envelope_begin_out(soap)
  701. || soap_putheader(soap)
  702. || soap_body_begin_out(soap)
  703. || tmd__SetVideoSourceConfigurationResponse.soap_put(soap, "tmd:SetVideoSourceConfigurationResponse", "")
  704. || soap_body_end_out(soap)
  705. || soap_envelope_end_out(soap))
  706. return soap->error;
  707. };
  708. if (soap_end_count(soap)
  709. || soap_response(soap, SOAP_OK)
  710. || soap_envelope_begin_out(soap)
  711. || soap_putheader(soap)
  712. || soap_body_begin_out(soap)
  713. || tmd__SetVideoSourceConfigurationResponse.soap_put(soap, "tmd:SetVideoSourceConfigurationResponse", "")
  714. || soap_body_end_out(soap)
  715. || soap_envelope_end_out(soap)
  716. || soap_end_send(soap))
  717. return soap->error;
  718. return soap_closesock(soap);
  719. }
  720. static int serve___tmd__SetVideoOutputConfiguration(DeviceIOBindingService *soap)
  721. { struct __tmd__SetVideoOutputConfiguration soap_tmp___tmd__SetVideoOutputConfiguration;
  722. _tmd__SetVideoOutputConfigurationResponse tmd__SetVideoOutputConfigurationResponse;
  723. tmd__SetVideoOutputConfigurationResponse.soap_default(soap);
  724. soap_default___tmd__SetVideoOutputConfiguration(soap, &soap_tmp___tmd__SetVideoOutputConfiguration);
  725. if (!soap_get___tmd__SetVideoOutputConfiguration(soap, &soap_tmp___tmd__SetVideoOutputConfiguration, "-tmd:SetVideoOutputConfiguration", NULL))
  726. return soap->error;
  727. if (soap_body_end_in(soap)
  728. || soap_envelope_end_in(soap)
  729. || soap_end_recv(soap))
  730. return soap->error;
  731. soap->error = soap->SetVideoOutputConfiguration(soap_tmp___tmd__SetVideoOutputConfiguration.tmd__SetVideoOutputConfiguration, &tmd__SetVideoOutputConfigurationResponse);
  732. if (soap->error)
  733. return soap->error;
  734. soap->encodingStyle = NULL;
  735. soap_serializeheader(soap);
  736. tmd__SetVideoOutputConfigurationResponse.soap_serialize(soap);
  737. if (soap_begin_count(soap))
  738. return soap->error;
  739. if (soap->mode & SOAP_IO_LENGTH)
  740. { if (soap_envelope_begin_out(soap)
  741. || soap_putheader(soap)
  742. || soap_body_begin_out(soap)
  743. || tmd__SetVideoOutputConfigurationResponse.soap_put(soap, "tmd:SetVideoOutputConfigurationResponse", "")
  744. || soap_body_end_out(soap)
  745. || soap_envelope_end_out(soap))
  746. return soap->error;
  747. };
  748. if (soap_end_count(soap)
  749. || soap_response(soap, SOAP_OK)
  750. || soap_envelope_begin_out(soap)
  751. || soap_putheader(soap)
  752. || soap_body_begin_out(soap)
  753. || tmd__SetVideoOutputConfigurationResponse.soap_put(soap, "tmd:SetVideoOutputConfigurationResponse", "")
  754. || soap_body_end_out(soap)
  755. || soap_envelope_end_out(soap)
  756. || soap_end_send(soap))
  757. return soap->error;
  758. return soap_closesock(soap);
  759. }
  760. static int serve___tmd__SetAudioSourceConfiguration(DeviceIOBindingService *soap)
  761. { struct __tmd__SetAudioSourceConfiguration soap_tmp___tmd__SetAudioSourceConfiguration;
  762. _tmd__SetAudioSourceConfigurationResponse tmd__SetAudioSourceConfigurationResponse;
  763. tmd__SetAudioSourceConfigurationResponse.soap_default(soap);
  764. soap_default___tmd__SetAudioSourceConfiguration(soap, &soap_tmp___tmd__SetAudioSourceConfiguration);
  765. if (!soap_get___tmd__SetAudioSourceConfiguration(soap, &soap_tmp___tmd__SetAudioSourceConfiguration, "-tmd:SetAudioSourceConfiguration", NULL))
  766. return soap->error;
  767. if (soap_body_end_in(soap)
  768. || soap_envelope_end_in(soap)
  769. || soap_end_recv(soap))
  770. return soap->error;
  771. soap->error = soap->SetAudioSourceConfiguration(soap_tmp___tmd__SetAudioSourceConfiguration.tmd__SetAudioSourceConfiguration, &tmd__SetAudioSourceConfigurationResponse);
  772. if (soap->error)
  773. return soap->error;
  774. soap->encodingStyle = NULL;
  775. soap_serializeheader(soap);
  776. tmd__SetAudioSourceConfigurationResponse.soap_serialize(soap);
  777. if (soap_begin_count(soap))
  778. return soap->error;
  779. if (soap->mode & SOAP_IO_LENGTH)
  780. { if (soap_envelope_begin_out(soap)
  781. || soap_putheader(soap)
  782. || soap_body_begin_out(soap)
  783. || tmd__SetAudioSourceConfigurationResponse.soap_put(soap, "tmd:SetAudioSourceConfigurationResponse", "")
  784. || soap_body_end_out(soap)
  785. || soap_envelope_end_out(soap))
  786. return soap->error;
  787. };
  788. if (soap_end_count(soap)
  789. || soap_response(soap, SOAP_OK)
  790. || soap_envelope_begin_out(soap)
  791. || soap_putheader(soap)
  792. || soap_body_begin_out(soap)
  793. || tmd__SetAudioSourceConfigurationResponse.soap_put(soap, "tmd:SetAudioSourceConfigurationResponse", "")
  794. || soap_body_end_out(soap)
  795. || soap_envelope_end_out(soap)
  796. || soap_end_send(soap))
  797. return soap->error;
  798. return soap_closesock(soap);
  799. }
  800. static int serve___tmd__SetAudioOutputConfiguration(DeviceIOBindingService *soap)
  801. { struct __tmd__SetAudioOutputConfiguration soap_tmp___tmd__SetAudioOutputConfiguration;
  802. _tmd__SetAudioOutputConfigurationResponse tmd__SetAudioOutputConfigurationResponse;
  803. tmd__SetAudioOutputConfigurationResponse.soap_default(soap);
  804. soap_default___tmd__SetAudioOutputConfiguration(soap, &soap_tmp___tmd__SetAudioOutputConfiguration);
  805. if (!soap_get___tmd__SetAudioOutputConfiguration(soap, &soap_tmp___tmd__SetAudioOutputConfiguration, "-tmd:SetAudioOutputConfiguration", NULL))
  806. return soap->error;
  807. if (soap_body_end_in(soap)
  808. || soap_envelope_end_in(soap)
  809. || soap_end_recv(soap))
  810. return soap->error;
  811. soap->error = soap->SetAudioOutputConfiguration(soap_tmp___tmd__SetAudioOutputConfiguration.tmd__SetAudioOutputConfiguration, &tmd__SetAudioOutputConfigurationResponse);
  812. if (soap->error)
  813. return soap->error;
  814. soap->encodingStyle = NULL;
  815. soap_serializeheader(soap);
  816. tmd__SetAudioOutputConfigurationResponse.soap_serialize(soap);
  817. if (soap_begin_count(soap))
  818. return soap->error;
  819. if (soap->mode & SOAP_IO_LENGTH)
  820. { if (soap_envelope_begin_out(soap)
  821. || soap_putheader(soap)
  822. || soap_body_begin_out(soap)
  823. || tmd__SetAudioOutputConfigurationResponse.soap_put(soap, "tmd:SetAudioOutputConfigurationResponse", "")
  824. || soap_body_end_out(soap)
  825. || soap_envelope_end_out(soap))
  826. return soap->error;
  827. };
  828. if (soap_end_count(soap)
  829. || soap_response(soap, SOAP_OK)
  830. || soap_envelope_begin_out(soap)
  831. || soap_putheader(soap)
  832. || soap_body_begin_out(soap)
  833. || tmd__SetAudioOutputConfigurationResponse.soap_put(soap, "tmd:SetAudioOutputConfigurationResponse", "")
  834. || soap_body_end_out(soap)
  835. || soap_envelope_end_out(soap)
  836. || soap_end_send(soap))
  837. return soap->error;
  838. return soap_closesock(soap);
  839. }
  840. static int serve___tmd__GetVideoSourceConfigurationOptions(DeviceIOBindingService *soap)
  841. { struct __tmd__GetVideoSourceConfigurationOptions soap_tmp___tmd__GetVideoSourceConfigurationOptions;
  842. _tmd__GetVideoSourceConfigurationOptionsResponse tmd__GetVideoSourceConfigurationOptionsResponse;
  843. tmd__GetVideoSourceConfigurationOptionsResponse.soap_default(soap);
  844. soap_default___tmd__GetVideoSourceConfigurationOptions(soap, &soap_tmp___tmd__GetVideoSourceConfigurationOptions);
  845. if (!soap_get___tmd__GetVideoSourceConfigurationOptions(soap, &soap_tmp___tmd__GetVideoSourceConfigurationOptions, "-tmd:GetVideoSourceConfigurationOptions", NULL))
  846. return soap->error;
  847. if (soap_body_end_in(soap)
  848. || soap_envelope_end_in(soap)
  849. || soap_end_recv(soap))
  850. return soap->error;
  851. soap->error = soap->GetVideoSourceConfigurationOptions(soap_tmp___tmd__GetVideoSourceConfigurationOptions.tmd__GetVideoSourceConfigurationOptions, &tmd__GetVideoSourceConfigurationOptionsResponse);
  852. if (soap->error)
  853. return soap->error;
  854. soap->encodingStyle = NULL;
  855. soap_serializeheader(soap);
  856. tmd__GetVideoSourceConfigurationOptionsResponse.soap_serialize(soap);
  857. if (soap_begin_count(soap))
  858. return soap->error;
  859. if (soap->mode & SOAP_IO_LENGTH)
  860. { if (soap_envelope_begin_out(soap)
  861. || soap_putheader(soap)
  862. || soap_body_begin_out(soap)
  863. || tmd__GetVideoSourceConfigurationOptionsResponse.soap_put(soap, "tmd:GetVideoSourceConfigurationOptionsResponse", "")
  864. || soap_body_end_out(soap)
  865. || soap_envelope_end_out(soap))
  866. return soap->error;
  867. };
  868. if (soap_end_count(soap)
  869. || soap_response(soap, SOAP_OK)
  870. || soap_envelope_begin_out(soap)
  871. || soap_putheader(soap)
  872. || soap_body_begin_out(soap)
  873. || tmd__GetVideoSourceConfigurationOptionsResponse.soap_put(soap, "tmd:GetVideoSourceConfigurationOptionsResponse", "")
  874. || soap_body_end_out(soap)
  875. || soap_envelope_end_out(soap)
  876. || soap_end_send(soap))
  877. return soap->error;
  878. return soap_closesock(soap);
  879. }
  880. static int serve___tmd__GetVideoOutputConfigurationOptions(DeviceIOBindingService *soap)
  881. { struct __tmd__GetVideoOutputConfigurationOptions soap_tmp___tmd__GetVideoOutputConfigurationOptions;
  882. _tmd__GetVideoOutputConfigurationOptionsResponse tmd__GetVideoOutputConfigurationOptionsResponse;
  883. tmd__GetVideoOutputConfigurationOptionsResponse.soap_default(soap);
  884. soap_default___tmd__GetVideoOutputConfigurationOptions(soap, &soap_tmp___tmd__GetVideoOutputConfigurationOptions);
  885. if (!soap_get___tmd__GetVideoOutputConfigurationOptions(soap, &soap_tmp___tmd__GetVideoOutputConfigurationOptions, "-tmd:GetVideoOutputConfigurationOptions", NULL))
  886. return soap->error;
  887. if (soap_body_end_in(soap)
  888. || soap_envelope_end_in(soap)
  889. || soap_end_recv(soap))
  890. return soap->error;
  891. soap->error = soap->GetVideoOutputConfigurationOptions(soap_tmp___tmd__GetVideoOutputConfigurationOptions.tmd__GetVideoOutputConfigurationOptions, &tmd__GetVideoOutputConfigurationOptionsResponse);
  892. if (soap->error)
  893. return soap->error;
  894. soap->encodingStyle = NULL;
  895. soap_serializeheader(soap);
  896. tmd__GetVideoOutputConfigurationOptionsResponse.soap_serialize(soap);
  897. if (soap_begin_count(soap))
  898. return soap->error;
  899. if (soap->mode & SOAP_IO_LENGTH)
  900. { if (soap_envelope_begin_out(soap)
  901. || soap_putheader(soap)
  902. || soap_body_begin_out(soap)
  903. || tmd__GetVideoOutputConfigurationOptionsResponse.soap_put(soap, "tmd:GetVideoOutputConfigurationOptionsResponse", "")
  904. || soap_body_end_out(soap)
  905. || soap_envelope_end_out(soap))
  906. return soap->error;
  907. };
  908. if (soap_end_count(soap)
  909. || soap_response(soap, SOAP_OK)
  910. || soap_envelope_begin_out(soap)
  911. || soap_putheader(soap)
  912. || soap_body_begin_out(soap)
  913. || tmd__GetVideoOutputConfigurationOptionsResponse.soap_put(soap, "tmd:GetVideoOutputConfigurationOptionsResponse", "")
  914. || soap_body_end_out(soap)
  915. || soap_envelope_end_out(soap)
  916. || soap_end_send(soap))
  917. return soap->error;
  918. return soap_closesock(soap);
  919. }
  920. static int serve___tmd__GetAudioSourceConfigurationOptions(DeviceIOBindingService *soap)
  921. { struct __tmd__GetAudioSourceConfigurationOptions soap_tmp___tmd__GetAudioSourceConfigurationOptions;
  922. _tmd__GetAudioSourceConfigurationOptionsResponse tmd__GetAudioSourceConfigurationOptionsResponse;
  923. tmd__GetAudioSourceConfigurationOptionsResponse.soap_default(soap);
  924. soap_default___tmd__GetAudioSourceConfigurationOptions(soap, &soap_tmp___tmd__GetAudioSourceConfigurationOptions);
  925. if (!soap_get___tmd__GetAudioSourceConfigurationOptions(soap, &soap_tmp___tmd__GetAudioSourceConfigurationOptions, "-tmd:GetAudioSourceConfigurationOptions", NULL))
  926. return soap->error;
  927. if (soap_body_end_in(soap)
  928. || soap_envelope_end_in(soap)
  929. || soap_end_recv(soap))
  930. return soap->error;
  931. soap->error = soap->GetAudioSourceConfigurationOptions(soap_tmp___tmd__GetAudioSourceConfigurationOptions.tmd__GetAudioSourceConfigurationOptions, &tmd__GetAudioSourceConfigurationOptionsResponse);
  932. if (soap->error)
  933. return soap->error;
  934. soap->encodingStyle = NULL;
  935. soap_serializeheader(soap);
  936. tmd__GetAudioSourceConfigurationOptionsResponse.soap_serialize(soap);
  937. if (soap_begin_count(soap))
  938. return soap->error;
  939. if (soap->mode & SOAP_IO_LENGTH)
  940. { if (soap_envelope_begin_out(soap)
  941. || soap_putheader(soap)
  942. || soap_body_begin_out(soap)
  943. || tmd__GetAudioSourceConfigurationOptionsResponse.soap_put(soap, "tmd:GetAudioSourceConfigurationOptionsResponse", "")
  944. || soap_body_end_out(soap)
  945. || soap_envelope_end_out(soap))
  946. return soap->error;
  947. };
  948. if (soap_end_count(soap)
  949. || soap_response(soap, SOAP_OK)
  950. || soap_envelope_begin_out(soap)
  951. || soap_putheader(soap)
  952. || soap_body_begin_out(soap)
  953. || tmd__GetAudioSourceConfigurationOptionsResponse.soap_put(soap, "tmd:GetAudioSourceConfigurationOptionsResponse", "")
  954. || soap_body_end_out(soap)
  955. || soap_envelope_end_out(soap)
  956. || soap_end_send(soap))
  957. return soap->error;
  958. return soap_closesock(soap);
  959. }
  960. static int serve___tmd__GetAudioOutputConfigurationOptions(DeviceIOBindingService *soap)
  961. { struct __tmd__GetAudioOutputConfigurationOptions soap_tmp___tmd__GetAudioOutputConfigurationOptions;
  962. _tmd__GetAudioOutputConfigurationOptionsResponse tmd__GetAudioOutputConfigurationOptionsResponse;
  963. tmd__GetAudioOutputConfigurationOptionsResponse.soap_default(soap);
  964. soap_default___tmd__GetAudioOutputConfigurationOptions(soap, &soap_tmp___tmd__GetAudioOutputConfigurationOptions);
  965. if (!soap_get___tmd__GetAudioOutputConfigurationOptions(soap, &soap_tmp___tmd__GetAudioOutputConfigurationOptions, "-tmd:GetAudioOutputConfigurationOptions", NULL))
  966. return soap->error;
  967. if (soap_body_end_in(soap)
  968. || soap_envelope_end_in(soap)
  969. || soap_end_recv(soap))
  970. return soap->error;
  971. soap->error = soap->GetAudioOutputConfigurationOptions(soap_tmp___tmd__GetAudioOutputConfigurationOptions.tmd__GetAudioOutputConfigurationOptions, &tmd__GetAudioOutputConfigurationOptionsResponse);
  972. if (soap->error)
  973. return soap->error;
  974. soap->encodingStyle = NULL;
  975. soap_serializeheader(soap);
  976. tmd__GetAudioOutputConfigurationOptionsResponse.soap_serialize(soap);
  977. if (soap_begin_count(soap))
  978. return soap->error;
  979. if (soap->mode & SOAP_IO_LENGTH)
  980. { if (soap_envelope_begin_out(soap)
  981. || soap_putheader(soap)
  982. || soap_body_begin_out(soap)
  983. || tmd__GetAudioOutputConfigurationOptionsResponse.soap_put(soap, "tmd:GetAudioOutputConfigurationOptionsResponse", "")
  984. || soap_body_end_out(soap)
  985. || soap_envelope_end_out(soap))
  986. return soap->error;
  987. };
  988. if (soap_end_count(soap)
  989. || soap_response(soap, SOAP_OK)
  990. || soap_envelope_begin_out(soap)
  991. || soap_putheader(soap)
  992. || soap_body_begin_out(soap)
  993. || tmd__GetAudioOutputConfigurationOptionsResponse.soap_put(soap, "tmd:GetAudioOutputConfigurationOptionsResponse", "")
  994. || soap_body_end_out(soap)
  995. || soap_envelope_end_out(soap)
  996. || soap_end_send(soap))
  997. return soap->error;
  998. return soap_closesock(soap);
  999. }
  1000. static int serve___tmd__GetRelayOutputs(DeviceIOBindingService *soap)
  1001. { struct __tmd__GetRelayOutputs soap_tmp___tmd__GetRelayOutputs;
  1002. _tds__GetRelayOutputsResponse tds__GetRelayOutputsResponse;
  1003. tds__GetRelayOutputsResponse.soap_default(soap);
  1004. soap_default___tmd__GetRelayOutputs(soap, &soap_tmp___tmd__GetRelayOutputs);
  1005. if (!soap_get___tmd__GetRelayOutputs(soap, &soap_tmp___tmd__GetRelayOutputs, "-tmd:GetRelayOutputs", NULL))
  1006. return soap->error;
  1007. if (soap_body_end_in(soap)
  1008. || soap_envelope_end_in(soap)
  1009. || soap_end_recv(soap))
  1010. return soap->error;
  1011. soap->error = soap->GetRelayOutputs(soap_tmp___tmd__GetRelayOutputs.tds__GetRelayOutputs, &tds__GetRelayOutputsResponse);
  1012. if (soap->error)
  1013. return soap->error;
  1014. soap->encodingStyle = NULL;
  1015. soap_serializeheader(soap);
  1016. tds__GetRelayOutputsResponse.soap_serialize(soap);
  1017. if (soap_begin_count(soap))
  1018. return soap->error;
  1019. if (soap->mode & SOAP_IO_LENGTH)
  1020. { if (soap_envelope_begin_out(soap)
  1021. || soap_putheader(soap)
  1022. || soap_body_begin_out(soap)
  1023. || tds__GetRelayOutputsResponse.soap_put(soap, "tds:GetRelayOutputsResponse", "")
  1024. || soap_body_end_out(soap)
  1025. || soap_envelope_end_out(soap))
  1026. return soap->error;
  1027. };
  1028. if (soap_end_count(soap)
  1029. || soap_response(soap, SOAP_OK)
  1030. || soap_envelope_begin_out(soap)
  1031. || soap_putheader(soap)
  1032. || soap_body_begin_out(soap)
  1033. || tds__GetRelayOutputsResponse.soap_put(soap, "tds:GetRelayOutputsResponse", "")
  1034. || soap_body_end_out(soap)
  1035. || soap_envelope_end_out(soap)
  1036. || soap_end_send(soap))
  1037. return soap->error;
  1038. return soap_closesock(soap);
  1039. }
  1040. static int serve___tmd__SetRelayOutputSettings(DeviceIOBindingService *soap)
  1041. { struct __tmd__SetRelayOutputSettings soap_tmp___tmd__SetRelayOutputSettings;
  1042. _tmd__SetRelayOutputSettingsResponse tmd__SetRelayOutputSettingsResponse;
  1043. tmd__SetRelayOutputSettingsResponse.soap_default(soap);
  1044. soap_default___tmd__SetRelayOutputSettings(soap, &soap_tmp___tmd__SetRelayOutputSettings);
  1045. if (!soap_get___tmd__SetRelayOutputSettings(soap, &soap_tmp___tmd__SetRelayOutputSettings, "-tmd:SetRelayOutputSettings", NULL))
  1046. return soap->error;
  1047. if (soap_body_end_in(soap)
  1048. || soap_envelope_end_in(soap)
  1049. || soap_end_recv(soap))
  1050. return soap->error;
  1051. soap->error = soap->SetRelayOutputSettings(soap_tmp___tmd__SetRelayOutputSettings.tmd__SetRelayOutputSettings, &tmd__SetRelayOutputSettingsResponse);
  1052. if (soap->error)
  1053. return soap->error;
  1054. soap->encodingStyle = NULL;
  1055. soap_serializeheader(soap);
  1056. tmd__SetRelayOutputSettingsResponse.soap_serialize(soap);
  1057. if (soap_begin_count(soap))
  1058. return soap->error;
  1059. if (soap->mode & SOAP_IO_LENGTH)
  1060. { if (soap_envelope_begin_out(soap)
  1061. || soap_putheader(soap)
  1062. || soap_body_begin_out(soap)
  1063. || tmd__SetRelayOutputSettingsResponse.soap_put(soap, "tmd:SetRelayOutputSettingsResponse", "")
  1064. || soap_body_end_out(soap)
  1065. || soap_envelope_end_out(soap))
  1066. return soap->error;
  1067. };
  1068. if (soap_end_count(soap)
  1069. || soap_response(soap, SOAP_OK)
  1070. || soap_envelope_begin_out(soap)
  1071. || soap_putheader(soap)
  1072. || soap_body_begin_out(soap)
  1073. || tmd__SetRelayOutputSettingsResponse.soap_put(soap, "tmd:SetRelayOutputSettingsResponse", "")
  1074. || soap_body_end_out(soap)
  1075. || soap_envelope_end_out(soap)
  1076. || soap_end_send(soap))
  1077. return soap->error;
  1078. return soap_closesock(soap);
  1079. }
  1080. static int serve___tmd__SetRelayOutputState(DeviceIOBindingService *soap)
  1081. { struct __tmd__SetRelayOutputState soap_tmp___tmd__SetRelayOutputState;
  1082. _tds__SetRelayOutputStateResponse tds__SetRelayOutputStateResponse;
  1083. tds__SetRelayOutputStateResponse.soap_default(soap);
  1084. soap_default___tmd__SetRelayOutputState(soap, &soap_tmp___tmd__SetRelayOutputState);
  1085. if (!soap_get___tmd__SetRelayOutputState(soap, &soap_tmp___tmd__SetRelayOutputState, "-tmd:SetRelayOutputState", NULL))
  1086. return soap->error;
  1087. if (soap_body_end_in(soap)
  1088. || soap_envelope_end_in(soap)
  1089. || soap_end_recv(soap))
  1090. return soap->error;
  1091. soap->error = soap->SetRelayOutputState(soap_tmp___tmd__SetRelayOutputState.tds__SetRelayOutputState, &tds__SetRelayOutputStateResponse);
  1092. if (soap->error)
  1093. return soap->error;
  1094. soap->encodingStyle = NULL;
  1095. soap_serializeheader(soap);
  1096. tds__SetRelayOutputStateResponse.soap_serialize(soap);
  1097. if (soap_begin_count(soap))
  1098. return soap->error;
  1099. if (soap->mode & SOAP_IO_LENGTH)
  1100. { if (soap_envelope_begin_out(soap)
  1101. || soap_putheader(soap)
  1102. || soap_body_begin_out(soap)
  1103. || tds__SetRelayOutputStateResponse.soap_put(soap, "tds:SetRelayOutputStateResponse", "")
  1104. || soap_body_end_out(soap)
  1105. || soap_envelope_end_out(soap))
  1106. return soap->error;
  1107. };
  1108. if (soap_end_count(soap)
  1109. || soap_response(soap, SOAP_OK)
  1110. || soap_envelope_begin_out(soap)
  1111. || soap_putheader(soap)
  1112. || soap_body_begin_out(soap)
  1113. || tds__SetRelayOutputStateResponse.soap_put(soap, "tds:SetRelayOutputStateResponse", "")
  1114. || soap_body_end_out(soap)
  1115. || soap_envelope_end_out(soap)
  1116. || soap_end_send(soap))
  1117. return soap->error;
  1118. return soap_closesock(soap);
  1119. }
  1120. static int serve___tmd__GetDigitalInputs(DeviceIOBindingService *soap)
  1121. { struct __tmd__GetDigitalInputs soap_tmp___tmd__GetDigitalInputs;
  1122. _tmd__GetDigitalInputsResponse tmd__GetDigitalInputsResponse;
  1123. tmd__GetDigitalInputsResponse.soap_default(soap);
  1124. soap_default___tmd__GetDigitalInputs(soap, &soap_tmp___tmd__GetDigitalInputs);
  1125. if (!soap_get___tmd__GetDigitalInputs(soap, &soap_tmp___tmd__GetDigitalInputs, "-tmd:GetDigitalInputs", NULL))
  1126. return soap->error;
  1127. if (soap_body_end_in(soap)
  1128. || soap_envelope_end_in(soap)
  1129. || soap_end_recv(soap))
  1130. return soap->error;
  1131. soap->error = soap->GetDigitalInputs(soap_tmp___tmd__GetDigitalInputs.tmd__GetDigitalInputs, &tmd__GetDigitalInputsResponse);
  1132. if (soap->error)
  1133. return soap->error;
  1134. soap->encodingStyle = NULL;
  1135. soap_serializeheader(soap);
  1136. tmd__GetDigitalInputsResponse.soap_serialize(soap);
  1137. if (soap_begin_count(soap))
  1138. return soap->error;
  1139. if (soap->mode & SOAP_IO_LENGTH)
  1140. { if (soap_envelope_begin_out(soap)
  1141. || soap_putheader(soap)
  1142. || soap_body_begin_out(soap)
  1143. || tmd__GetDigitalInputsResponse.soap_put(soap, "tmd:GetDigitalInputsResponse", "")
  1144. || soap_body_end_out(soap)
  1145. || soap_envelope_end_out(soap))
  1146. return soap->error;
  1147. };
  1148. if (soap_end_count(soap)
  1149. || soap_response(soap, SOAP_OK)
  1150. || soap_envelope_begin_out(soap)
  1151. || soap_putheader(soap)
  1152. || soap_body_begin_out(soap)
  1153. || tmd__GetDigitalInputsResponse.soap_put(soap, "tmd:GetDigitalInputsResponse", "")
  1154. || soap_body_end_out(soap)
  1155. || soap_envelope_end_out(soap)
  1156. || soap_end_send(soap))
  1157. return soap->error;
  1158. return soap_closesock(soap);
  1159. }
  1160. static int serve___tmd__GetSerialPorts(DeviceIOBindingService *soap)
  1161. { struct __tmd__GetSerialPorts soap_tmp___tmd__GetSerialPorts;
  1162. _tmd__GetSerialPortsResponse tmd__GetSerialPortsResponse;
  1163. tmd__GetSerialPortsResponse.soap_default(soap);
  1164. soap_default___tmd__GetSerialPorts(soap, &soap_tmp___tmd__GetSerialPorts);
  1165. if (!soap_get___tmd__GetSerialPorts(soap, &soap_tmp___tmd__GetSerialPorts, "-tmd:GetSerialPorts", NULL))
  1166. return soap->error;
  1167. if (soap_body_end_in(soap)
  1168. || soap_envelope_end_in(soap)
  1169. || soap_end_recv(soap))
  1170. return soap->error;
  1171. soap->error = soap->GetSerialPorts(soap_tmp___tmd__GetSerialPorts.tmd__GetSerialPorts, &tmd__GetSerialPortsResponse);
  1172. if (soap->error)
  1173. return soap->error;
  1174. soap->encodingStyle = NULL;
  1175. soap_serializeheader(soap);
  1176. tmd__GetSerialPortsResponse.soap_serialize(soap);
  1177. if (soap_begin_count(soap))
  1178. return soap->error;
  1179. if (soap->mode & SOAP_IO_LENGTH)
  1180. { if (soap_envelope_begin_out(soap)
  1181. || soap_putheader(soap)
  1182. || soap_body_begin_out(soap)
  1183. || tmd__GetSerialPortsResponse.soap_put(soap, "tmd:GetSerialPortsResponse", "")
  1184. || soap_body_end_out(soap)
  1185. || soap_envelope_end_out(soap))
  1186. return soap->error;
  1187. };
  1188. if (soap_end_count(soap)
  1189. || soap_response(soap, SOAP_OK)
  1190. || soap_envelope_begin_out(soap)
  1191. || soap_putheader(soap)
  1192. || soap_body_begin_out(soap)
  1193. || tmd__GetSerialPortsResponse.soap_put(soap, "tmd:GetSerialPortsResponse", "")
  1194. || soap_body_end_out(soap)
  1195. || soap_envelope_end_out(soap)
  1196. || soap_end_send(soap))
  1197. return soap->error;
  1198. return soap_closesock(soap);
  1199. }
  1200. static int serve___tmd__GetSerialPortConfiguration(DeviceIOBindingService *soap)
  1201. { struct __tmd__GetSerialPortConfiguration soap_tmp___tmd__GetSerialPortConfiguration;
  1202. _tmd__GetSerialPortConfigurationResponse tmd__GetSerialPortConfigurationResponse;
  1203. tmd__GetSerialPortConfigurationResponse.soap_default(soap);
  1204. soap_default___tmd__GetSerialPortConfiguration(soap, &soap_tmp___tmd__GetSerialPortConfiguration);
  1205. if (!soap_get___tmd__GetSerialPortConfiguration(soap, &soap_tmp___tmd__GetSerialPortConfiguration, "-tmd:GetSerialPortConfiguration", NULL))
  1206. return soap->error;
  1207. if (soap_body_end_in(soap)
  1208. || soap_envelope_end_in(soap)
  1209. || soap_end_recv(soap))
  1210. return soap->error;
  1211. soap->error = soap->GetSerialPortConfiguration(soap_tmp___tmd__GetSerialPortConfiguration.tmd__GetSerialPortConfiguration, &tmd__GetSerialPortConfigurationResponse);
  1212. if (soap->error)
  1213. return soap->error;
  1214. soap->encodingStyle = NULL;
  1215. soap_serializeheader(soap);
  1216. tmd__GetSerialPortConfigurationResponse.soap_serialize(soap);
  1217. if (soap_begin_count(soap))
  1218. return soap->error;
  1219. if (soap->mode & SOAP_IO_LENGTH)
  1220. { if (soap_envelope_begin_out(soap)
  1221. || soap_putheader(soap)
  1222. || soap_body_begin_out(soap)
  1223. || tmd__GetSerialPortConfigurationResponse.soap_put(soap, "tmd:GetSerialPortConfigurationResponse", "")
  1224. || soap_body_end_out(soap)
  1225. || soap_envelope_end_out(soap))
  1226. return soap->error;
  1227. };
  1228. if (soap_end_count(soap)
  1229. || soap_response(soap, SOAP_OK)
  1230. || soap_envelope_begin_out(soap)
  1231. || soap_putheader(soap)
  1232. || soap_body_begin_out(soap)
  1233. || tmd__GetSerialPortConfigurationResponse.soap_put(soap, "tmd:GetSerialPortConfigurationResponse", "")
  1234. || soap_body_end_out(soap)
  1235. || soap_envelope_end_out(soap)
  1236. || soap_end_send(soap))
  1237. return soap->error;
  1238. return soap_closesock(soap);
  1239. }
  1240. static int serve___tmd__SetSerialPortConfiguration(DeviceIOBindingService *soap)
  1241. { struct __tmd__SetSerialPortConfiguration soap_tmp___tmd__SetSerialPortConfiguration;
  1242. _tmd__SetSerialPortConfigurationResponse tmd__SetSerialPortConfigurationResponse;
  1243. tmd__SetSerialPortConfigurationResponse.soap_default(soap);
  1244. soap_default___tmd__SetSerialPortConfiguration(soap, &soap_tmp___tmd__SetSerialPortConfiguration);
  1245. if (!soap_get___tmd__SetSerialPortConfiguration(soap, &soap_tmp___tmd__SetSerialPortConfiguration, "-tmd:SetSerialPortConfiguration", NULL))
  1246. return soap->error;
  1247. if (soap_body_end_in(soap)
  1248. || soap_envelope_end_in(soap)
  1249. || soap_end_recv(soap))
  1250. return soap->error;
  1251. soap->error = soap->SetSerialPortConfiguration(soap_tmp___tmd__SetSerialPortConfiguration.tmd__SetSerialPortConfiguration, &tmd__SetSerialPortConfigurationResponse);
  1252. if (soap->error)
  1253. return soap->error;
  1254. soap->encodingStyle = NULL;
  1255. soap_serializeheader(soap);
  1256. tmd__SetSerialPortConfigurationResponse.soap_serialize(soap);
  1257. if (soap_begin_count(soap))
  1258. return soap->error;
  1259. if (soap->mode & SOAP_IO_LENGTH)
  1260. { if (soap_envelope_begin_out(soap)
  1261. || soap_putheader(soap)
  1262. || soap_body_begin_out(soap)
  1263. || tmd__SetSerialPortConfigurationResponse.soap_put(soap, "tmd:SetSerialPortConfigurationResponse", "")
  1264. || soap_body_end_out(soap)
  1265. || soap_envelope_end_out(soap))
  1266. return soap->error;
  1267. };
  1268. if (soap_end_count(soap)
  1269. || soap_response(soap, SOAP_OK)
  1270. || soap_envelope_begin_out(soap)
  1271. || soap_putheader(soap)
  1272. || soap_body_begin_out(soap)
  1273. || tmd__SetSerialPortConfigurationResponse.soap_put(soap, "tmd:SetSerialPortConfigurationResponse", "")
  1274. || soap_body_end_out(soap)
  1275. || soap_envelope_end_out(soap)
  1276. || soap_end_send(soap))
  1277. return soap->error;
  1278. return soap_closesock(soap);
  1279. }
  1280. static int serve___tmd__GetSerialPortConfigurationOptions(DeviceIOBindingService *soap)
  1281. { struct __tmd__GetSerialPortConfigurationOptions soap_tmp___tmd__GetSerialPortConfigurationOptions;
  1282. _tmd__GetSerialPortConfigurationOptionsResponse tmd__GetSerialPortConfigurationOptionsResponse;
  1283. tmd__GetSerialPortConfigurationOptionsResponse.soap_default(soap);
  1284. soap_default___tmd__GetSerialPortConfigurationOptions(soap, &soap_tmp___tmd__GetSerialPortConfigurationOptions);
  1285. if (!soap_get___tmd__GetSerialPortConfigurationOptions(soap, &soap_tmp___tmd__GetSerialPortConfigurationOptions, "-tmd:GetSerialPortConfigurationOptions", NULL))
  1286. return soap->error;
  1287. if (soap_body_end_in(soap)
  1288. || soap_envelope_end_in(soap)
  1289. || soap_end_recv(soap))
  1290. return soap->error;
  1291. soap->error = soap->GetSerialPortConfigurationOptions(soap_tmp___tmd__GetSerialPortConfigurationOptions.tmd__GetSerialPortConfigurationOptions, &tmd__GetSerialPortConfigurationOptionsResponse);
  1292. if (soap->error)
  1293. return soap->error;
  1294. soap->encodingStyle = NULL;
  1295. soap_serializeheader(soap);
  1296. tmd__GetSerialPortConfigurationOptionsResponse.soap_serialize(soap);
  1297. if (soap_begin_count(soap))
  1298. return soap->error;
  1299. if (soap->mode & SOAP_IO_LENGTH)
  1300. { if (soap_envelope_begin_out(soap)
  1301. || soap_putheader(soap)
  1302. || soap_body_begin_out(soap)
  1303. || tmd__GetSerialPortConfigurationOptionsResponse.soap_put(soap, "tmd:GetSerialPortConfigurationOptionsResponse", "")
  1304. || soap_body_end_out(soap)
  1305. || soap_envelope_end_out(soap))
  1306. return soap->error;
  1307. };
  1308. if (soap_end_count(soap)
  1309. || soap_response(soap, SOAP_OK)
  1310. || soap_envelope_begin_out(soap)
  1311. || soap_putheader(soap)
  1312. || soap_body_begin_out(soap)
  1313. || tmd__GetSerialPortConfigurationOptionsResponse.soap_put(soap, "tmd:GetSerialPortConfigurationOptionsResponse", "")
  1314. || soap_body_end_out(soap)
  1315. || soap_envelope_end_out(soap)
  1316. || soap_end_send(soap))
  1317. return soap->error;
  1318. return soap_closesock(soap);
  1319. }
  1320. static int serve___tmd__SendReceiveSerialCommand(DeviceIOBindingService *soap)
  1321. { struct __tmd__SendReceiveSerialCommand soap_tmp___tmd__SendReceiveSerialCommand;
  1322. _tmd__SendReceiveSerialCommandResponse tmd__SendReceiveSerialCommandResponse;
  1323. tmd__SendReceiveSerialCommandResponse.soap_default(soap);
  1324. soap_default___tmd__SendReceiveSerialCommand(soap, &soap_tmp___tmd__SendReceiveSerialCommand);
  1325. if (!soap_get___tmd__SendReceiveSerialCommand(soap, &soap_tmp___tmd__SendReceiveSerialCommand, "-tmd:SendReceiveSerialCommand", NULL))
  1326. return soap->error;
  1327. if (soap_body_end_in(soap)
  1328. || soap_envelope_end_in(soap)
  1329. || soap_end_recv(soap))
  1330. return soap->error;
  1331. soap->error = soap->SendReceiveSerialCommand(soap_tmp___tmd__SendReceiveSerialCommand.tmd__SendReceiveSerialCommand, &tmd__SendReceiveSerialCommandResponse);
  1332. if (soap->error)
  1333. return soap->error;
  1334. soap->encodingStyle = NULL;
  1335. soap_serializeheader(soap);
  1336. tmd__SendReceiveSerialCommandResponse.soap_serialize(soap);
  1337. if (soap_begin_count(soap))
  1338. return soap->error;
  1339. if (soap->mode & SOAP_IO_LENGTH)
  1340. { if (soap_envelope_begin_out(soap)
  1341. || soap_putheader(soap)
  1342. || soap_body_begin_out(soap)
  1343. || tmd__SendReceiveSerialCommandResponse.soap_put(soap, "tmd:SendReceiveSerialCommandResponse", "")
  1344. || soap_body_end_out(soap)
  1345. || soap_envelope_end_out(soap))
  1346. return soap->error;
  1347. };
  1348. if (soap_end_count(soap)
  1349. || soap_response(soap, SOAP_OK)
  1350. || soap_envelope_begin_out(soap)
  1351. || soap_putheader(soap)
  1352. || soap_body_begin_out(soap)
  1353. || tmd__SendReceiveSerialCommandResponse.soap_put(soap, "tmd:SendReceiveSerialCommandResponse", "")
  1354. || soap_body_end_out(soap)
  1355. || soap_envelope_end_out(soap)
  1356. || soap_end_send(soap))
  1357. return soap->error;
  1358. return soap_closesock(soap);
  1359. }
  1360. /* End of server object code */