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.

1592 lines
67 KiB

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /* soapDeviceIOBindingProxy.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 "soapDeviceIOBindingProxy.h"
  10. DeviceIOBindingProxy::DeviceIOBindingProxy()
  11. { DeviceIOBindingProxy_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
  12. }
  13. DeviceIOBindingProxy::DeviceIOBindingProxy(const struct soap &_soap) : soap(_soap)
  14. { }
  15. DeviceIOBindingProxy::DeviceIOBindingProxy(const char *url)
  16. { DeviceIOBindingProxy_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
  17. soap_endpoint = url;
  18. }
  19. DeviceIOBindingProxy::DeviceIOBindingProxy(soap_mode iomode)
  20. { DeviceIOBindingProxy_init(iomode, iomode);
  21. }
  22. DeviceIOBindingProxy::DeviceIOBindingProxy(const char *url, soap_mode iomode)
  23. { DeviceIOBindingProxy_init(iomode, iomode);
  24. soap_endpoint = url;
  25. }
  26. DeviceIOBindingProxy::DeviceIOBindingProxy(soap_mode imode, soap_mode omode)
  27. { DeviceIOBindingProxy_init(imode, omode);
  28. }
  29. DeviceIOBindingProxy::~DeviceIOBindingProxy()
  30. { }
  31. void DeviceIOBindingProxy::DeviceIOBindingProxy_init(soap_mode imode, soap_mode omode)
  32. { soap_imode(this, imode);
  33. soap_omode(this, omode);
  34. soap_endpoint = NULL;
  35. static const struct Namespace namespaces[] =
  36. {
  37. {"SOAP-ENV", "http://www.w3.org/2003/05/soap-envelope", "http://schemas.xmlsoap.org/soap/envelope/", NULL},
  38. {"SOAP-ENC", "http://www.w3.org/2003/05/soap-encoding", "http://schemas.xmlsoap.org/soap/encoding/", NULL},
  39. {"xsi", "http://www.w3.org/2001/XMLSchema-instance", "http://www.w3.org/*/XMLSchema-instance", NULL},
  40. {"xsd", "http://www.w3.org/2001/XMLSchema", "http://www.w3.org/*/XMLSchema", NULL},
  41. {"c14n", "http://www.w3.org/2001/10/xml-exc-c14n#", NULL, NULL},
  42. {"wsu", "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd", NULL, NULL},
  43. {"xenc", "http://www.w3.org/2001/04/xmlenc#", NULL, NULL},
  44. {"wsc", "http://schemas.xmlsoap.org/ws/2005/02/sc", NULL, NULL},
  45. {"ds", "http://www.w3.org/2000/09/xmldsig#", NULL, NULL},
  46. {"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},
  47. {"wsa", "http://schemas.xmlsoap.org/ws/2004/08/addressing", NULL, NULL},
  48. {"wsdd", "http://schemas.xmlsoap.org/ws/2005/04/discovery", NULL, NULL},
  49. {"chan", "http://schemas.microsoft.com/ws/2005/02/duplex", NULL, NULL},
  50. {"wsa5", "http://www.w3.org/2005/08/addressing", "http://schemas.xmlsoap.org/ws/2004/08/addressing", NULL},
  51. {"xmime", "http://tempuri.org/xmime.xsd", NULL, NULL},
  52. {"xop", "http://www.w3.org/2004/08/xop/include", NULL, NULL},
  53. {"tt", "http://www.onvif.org/ver10/schema", NULL, NULL},
  54. {"wsrfbf", "http://docs.oasis-open.org/wsrf/bf-2", NULL, NULL},
  55. {"wstop", "http://docs.oasis-open.org/wsn/t-1", NULL, NULL},
  56. {"wsrfr", "http://docs.oasis-open.org/wsrf/r-2", NULL, NULL},
  57. {"tdn", "http://www.onvif.org/ver10/network/wsdl", NULL, NULL},
  58. {"tds", "http://www.onvif.org/ver10/device/wsdl", NULL, NULL},
  59. {"tev", "http://www.onvif.org/ver10/events/wsdl", NULL, NULL},
  60. {"wsnt", "http://docs.oasis-open.org/wsn/b-2", NULL, NULL},
  61. {"timg", "http://www.onvif.org/ver20/imaging/wsdl", NULL, NULL},
  62. {"tls", "http://www.onvif.org/ver10/display/wsdl", NULL, NULL},
  63. {"tmd", "http://www.onvif.org/ver10/deviceIO/wsdl", NULL, NULL},
  64. {"tptz", "http://www.onvif.org/ver20/ptz/wsdl", NULL, NULL},
  65. {"trc", "http://www.onvif.org/ver10/recording/wsdl", NULL, NULL},
  66. {"trp", "http://www.onvif.org/ver10/replay/wsdl", NULL, NULL},
  67. {"trt", "http://www.onvif.org/ver10/media/wsdl", NULL, NULL},
  68. {"trv", "http://www.onvif.org/ver10/receiver/wsdl", NULL, NULL},
  69. {"tse", "http://www.onvif.org/ver10/search/wsdl", NULL, NULL},
  70. {NULL, NULL, NULL, NULL}
  71. };
  72. soap_set_namespaces(this, namespaces);
  73. }
  74. void DeviceIOBindingProxy::destroy()
  75. { soap_destroy(this);
  76. soap_end(this);
  77. }
  78. void DeviceIOBindingProxy::reset()
  79. { destroy();
  80. soap_done(this);
  81. soap_initialize(this);
  82. DeviceIOBindingProxy_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
  83. }
  84. void DeviceIOBindingProxy::soap_noheader()
  85. { this->header = NULL;
  86. }
  87. void DeviceIOBindingProxy::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)
  88. { ::soap_header(this);
  89. this->header->wsse__Security = wsse__Security;
  90. this->header->wsa__MessageID = wsa__MessageID;
  91. this->header->wsa__RelatesTo = wsa__RelatesTo;
  92. this->header->wsa__From = wsa__From;
  93. this->header->wsa__ReplyTo = wsa__ReplyTo;
  94. this->header->wsa__FaultTo = wsa__FaultTo;
  95. this->header->wsa__To = wsa__To;
  96. this->header->wsa__Action = wsa__Action;
  97. this->header->wsdd__AppSequence = wsdd__AppSequence;
  98. this->header->wsa5__MessageID = wsa5__MessageID;
  99. this->header->wsa5__RelatesTo = wsa5__RelatesTo;
  100. this->header->wsa5__From = wsa5__From;
  101. this->header->wsa5__ReplyTo = wsa5__ReplyTo;
  102. this->header->wsa5__FaultTo = wsa5__FaultTo;
  103. this->header->wsa5__To = wsa5__To;
  104. this->header->wsa5__Action = wsa5__Action;
  105. this->header->chan__ChannelInstance = chan__ChannelInstance;
  106. }
  107. const SOAP_ENV__Header *DeviceIOBindingProxy::soap_header()
  108. { return this->header;
  109. }
  110. const SOAP_ENV__Fault *DeviceIOBindingProxy::soap_fault()
  111. { return this->fault;
  112. }
  113. const char *DeviceIOBindingProxy::soap_fault_string()
  114. { return *soap_faultstring(this);
  115. }
  116. const char *DeviceIOBindingProxy::soap_fault_detail()
  117. { return *soap_faultdetail(this);
  118. }
  119. int DeviceIOBindingProxy::soap_close_socket()
  120. { return soap_closesock(this);
  121. }
  122. int DeviceIOBindingProxy::soap_force_close_socket()
  123. { return soap_force_closesock(this);
  124. }
  125. void DeviceIOBindingProxy::soap_print_fault(FILE *fd)
  126. { ::soap_print_fault(this, fd);
  127. }
  128. #ifndef WITH_LEAN
  129. #ifndef WITH_COMPAT
  130. void DeviceIOBindingProxy::soap_stream_fault(std::ostream& os)
  131. { ::soap_stream_fault(this, os);
  132. }
  133. #endif
  134. char *DeviceIOBindingProxy::soap_sprint_fault(char *buf, size_t len)
  135. { return ::soap_sprint_fault(this, buf, len);
  136. }
  137. #endif
  138. int DeviceIOBindingProxy::GetServiceCapabilities(const char *endpoint, const char *soap_action, _tmd__GetServiceCapabilities *tmd__GetServiceCapabilities, _tmd__GetServiceCapabilitiesResponse *tmd__GetServiceCapabilitiesResponse)
  139. { struct soap *soap = this;
  140. struct __tmd__GetServiceCapabilities soap_tmp___tmd__GetServiceCapabilities;
  141. if (endpoint)
  142. soap_endpoint = endpoint;
  143. if (soap_action == NULL)
  144. soap_action = "http://www.onvif.org/ver10/deviceio/wsdl/GetServiceCapabilities";
  145. soap_begin(soap);
  146. soap->encodingStyle = NULL;
  147. soap_tmp___tmd__GetServiceCapabilities.tmd__GetServiceCapabilities = tmd__GetServiceCapabilities;
  148. soap_set_version(soap, 2); /* SOAP1.2 */
  149. soap_serializeheader(soap);
  150. soap_serialize___tmd__GetServiceCapabilities(soap, &soap_tmp___tmd__GetServiceCapabilities);
  151. if (soap_begin_count(soap))
  152. return soap->error;
  153. if (soap->mode & SOAP_IO_LENGTH)
  154. { if (soap_envelope_begin_out(soap)
  155. || soap_putheader(soap)
  156. || soap_body_begin_out(soap)
  157. || soap_put___tmd__GetServiceCapabilities(soap, &soap_tmp___tmd__GetServiceCapabilities, "-tmd:GetServiceCapabilities", NULL)
  158. || soap_body_end_out(soap)
  159. || soap_envelope_end_out(soap))
  160. return soap->error;
  161. }
  162. if (soap_end_count(soap))
  163. return soap->error;
  164. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  165. || soap_envelope_begin_out(soap)
  166. || soap_putheader(soap)
  167. || soap_body_begin_out(soap)
  168. || soap_put___tmd__GetServiceCapabilities(soap, &soap_tmp___tmd__GetServiceCapabilities, "-tmd:GetServiceCapabilities", NULL)
  169. || soap_body_end_out(soap)
  170. || soap_envelope_end_out(soap)
  171. || soap_end_send(soap))
  172. return soap_closesock(soap);
  173. if (!tmd__GetServiceCapabilitiesResponse)
  174. return soap_closesock(soap);
  175. tmd__GetServiceCapabilitiesResponse->soap_default(soap);
  176. if (soap_begin_recv(soap)
  177. || soap_envelope_begin_in(soap)
  178. || soap_recv_header(soap)
  179. || soap_body_begin_in(soap))
  180. return soap_closesock(soap);
  181. tmd__GetServiceCapabilitiesResponse->soap_get(soap, "tmd:GetServiceCapabilitiesResponse", "");
  182. if (soap->error)
  183. return soap_recv_fault(soap, 0);
  184. if (soap_body_end_in(soap)
  185. || soap_envelope_end_in(soap)
  186. || soap_end_recv(soap))
  187. return soap_closesock(soap);
  188. return soap_closesock(soap);
  189. }
  190. int DeviceIOBindingProxy::GetRelayOutputOptions(const char *endpoint, const char *soap_action, _tmd__GetRelayOutputOptions *tmd__GetRelayOutputOptions, _tmd__GetRelayOutputOptionsResponse *tmd__GetRelayOutputOptionsResponse)
  191. { struct soap *soap = this;
  192. struct __tmd__GetRelayOutputOptions soap_tmp___tmd__GetRelayOutputOptions;
  193. if (endpoint)
  194. soap_endpoint = endpoint;
  195. if (soap_action == NULL)
  196. soap_action = "http://www.onvif.org/ver10/deviceio/wsdl/GetRelayOutputOptions";
  197. soap_begin(soap);
  198. soap->encodingStyle = NULL;
  199. soap_tmp___tmd__GetRelayOutputOptions.tmd__GetRelayOutputOptions = tmd__GetRelayOutputOptions;
  200. soap_set_version(soap, 2); /* SOAP1.2 */
  201. soap_serializeheader(soap);
  202. soap_serialize___tmd__GetRelayOutputOptions(soap, &soap_tmp___tmd__GetRelayOutputOptions);
  203. if (soap_begin_count(soap))
  204. return soap->error;
  205. if (soap->mode & SOAP_IO_LENGTH)
  206. { if (soap_envelope_begin_out(soap)
  207. || soap_putheader(soap)
  208. || soap_body_begin_out(soap)
  209. || soap_put___tmd__GetRelayOutputOptions(soap, &soap_tmp___tmd__GetRelayOutputOptions, "-tmd:GetRelayOutputOptions", NULL)
  210. || soap_body_end_out(soap)
  211. || soap_envelope_end_out(soap))
  212. return soap->error;
  213. }
  214. if (soap_end_count(soap))
  215. return soap->error;
  216. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  217. || soap_envelope_begin_out(soap)
  218. || soap_putheader(soap)
  219. || soap_body_begin_out(soap)
  220. || soap_put___tmd__GetRelayOutputOptions(soap, &soap_tmp___tmd__GetRelayOutputOptions, "-tmd:GetRelayOutputOptions", NULL)
  221. || soap_body_end_out(soap)
  222. || soap_envelope_end_out(soap)
  223. || soap_end_send(soap))
  224. return soap_closesock(soap);
  225. if (!tmd__GetRelayOutputOptionsResponse)
  226. return soap_closesock(soap);
  227. tmd__GetRelayOutputOptionsResponse->soap_default(soap);
  228. if (soap_begin_recv(soap)
  229. || soap_envelope_begin_in(soap)
  230. || soap_recv_header(soap)
  231. || soap_body_begin_in(soap))
  232. return soap_closesock(soap);
  233. tmd__GetRelayOutputOptionsResponse->soap_get(soap, "tmd:GetRelayOutputOptionsResponse", "");
  234. if (soap->error)
  235. return soap_recv_fault(soap, 0);
  236. if (soap_body_end_in(soap)
  237. || soap_envelope_end_in(soap)
  238. || soap_end_recv(soap))
  239. return soap_closesock(soap);
  240. return soap_closesock(soap);
  241. }
  242. int DeviceIOBindingProxy::GetAudioSources(const char *endpoint, const char *soap_action, _trt__GetAudioSources *trt__GetAudioSources, _trt__GetAudioSourcesResponse *trt__GetAudioSourcesResponse)
  243. { struct soap *soap = this;
  244. struct __tmd__GetAudioSources soap_tmp___tmd__GetAudioSources;
  245. if (endpoint)
  246. soap_endpoint = endpoint;
  247. if (soap_action == NULL)
  248. soap_action = "http://www.onvif.org/ver10/deviceio/wsdl/GetAudioSources";
  249. soap_begin(soap);
  250. soap->encodingStyle = NULL;
  251. soap_tmp___tmd__GetAudioSources.trt__GetAudioSources = trt__GetAudioSources;
  252. soap_set_version(soap, 2); /* SOAP1.2 */
  253. soap_serializeheader(soap);
  254. soap_serialize___tmd__GetAudioSources(soap, &soap_tmp___tmd__GetAudioSources);
  255. if (soap_begin_count(soap))
  256. return soap->error;
  257. if (soap->mode & SOAP_IO_LENGTH)
  258. { if (soap_envelope_begin_out(soap)
  259. || soap_putheader(soap)
  260. || soap_body_begin_out(soap)
  261. || soap_put___tmd__GetAudioSources(soap, &soap_tmp___tmd__GetAudioSources, "-tmd:GetAudioSources", NULL)
  262. || soap_body_end_out(soap)
  263. || soap_envelope_end_out(soap))
  264. return soap->error;
  265. }
  266. if (soap_end_count(soap))
  267. return soap->error;
  268. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  269. || soap_envelope_begin_out(soap)
  270. || soap_putheader(soap)
  271. || soap_body_begin_out(soap)
  272. || soap_put___tmd__GetAudioSources(soap, &soap_tmp___tmd__GetAudioSources, "-tmd:GetAudioSources", NULL)
  273. || soap_body_end_out(soap)
  274. || soap_envelope_end_out(soap)
  275. || soap_end_send(soap))
  276. return soap_closesock(soap);
  277. if (!trt__GetAudioSourcesResponse)
  278. return soap_closesock(soap);
  279. trt__GetAudioSourcesResponse->soap_default(soap);
  280. if (soap_begin_recv(soap)
  281. || soap_envelope_begin_in(soap)
  282. || soap_recv_header(soap)
  283. || soap_body_begin_in(soap))
  284. return soap_closesock(soap);
  285. trt__GetAudioSourcesResponse->soap_get(soap, "trt:GetAudioSourcesResponse", "");
  286. if (soap->error)
  287. return soap_recv_fault(soap, 0);
  288. if (soap_body_end_in(soap)
  289. || soap_envelope_end_in(soap)
  290. || soap_end_recv(soap))
  291. return soap_closesock(soap);
  292. return soap_closesock(soap);
  293. }
  294. int DeviceIOBindingProxy::GetAudioOutputs(const char *endpoint, const char *soap_action, _trt__GetAudioOutputs *trt__GetAudioOutputs, _trt__GetAudioOutputsResponse *trt__GetAudioOutputsResponse)
  295. { struct soap *soap = this;
  296. struct __tmd__GetAudioOutputs soap_tmp___tmd__GetAudioOutputs;
  297. if (endpoint)
  298. soap_endpoint = endpoint;
  299. if (soap_action == NULL)
  300. soap_action = "http://www.onvif.org/ver10/deviceio/wsdl/GetAudioOutputs";
  301. soap_begin(soap);
  302. soap->encodingStyle = NULL;
  303. soap_tmp___tmd__GetAudioOutputs.trt__GetAudioOutputs = trt__GetAudioOutputs;
  304. soap_set_version(soap, 2); /* SOAP1.2 */
  305. soap_serializeheader(soap);
  306. soap_serialize___tmd__GetAudioOutputs(soap, &soap_tmp___tmd__GetAudioOutputs);
  307. if (soap_begin_count(soap))
  308. return soap->error;
  309. if (soap->mode & SOAP_IO_LENGTH)
  310. { if (soap_envelope_begin_out(soap)
  311. || soap_putheader(soap)
  312. || soap_body_begin_out(soap)
  313. || soap_put___tmd__GetAudioOutputs(soap, &soap_tmp___tmd__GetAudioOutputs, "-tmd:GetAudioOutputs", NULL)
  314. || soap_body_end_out(soap)
  315. || soap_envelope_end_out(soap))
  316. return soap->error;
  317. }
  318. if (soap_end_count(soap))
  319. return soap->error;
  320. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  321. || soap_envelope_begin_out(soap)
  322. || soap_putheader(soap)
  323. || soap_body_begin_out(soap)
  324. || soap_put___tmd__GetAudioOutputs(soap, &soap_tmp___tmd__GetAudioOutputs, "-tmd:GetAudioOutputs", NULL)
  325. || soap_body_end_out(soap)
  326. || soap_envelope_end_out(soap)
  327. || soap_end_send(soap))
  328. return soap_closesock(soap);
  329. if (!trt__GetAudioOutputsResponse)
  330. return soap_closesock(soap);
  331. trt__GetAudioOutputsResponse->soap_default(soap);
  332. if (soap_begin_recv(soap)
  333. || soap_envelope_begin_in(soap)
  334. || soap_recv_header(soap)
  335. || soap_body_begin_in(soap))
  336. return soap_closesock(soap);
  337. trt__GetAudioOutputsResponse->soap_get(soap, "trt:GetAudioOutputsResponse", "");
  338. if (soap->error)
  339. return soap_recv_fault(soap, 0);
  340. if (soap_body_end_in(soap)
  341. || soap_envelope_end_in(soap)
  342. || soap_end_recv(soap))
  343. return soap_closesock(soap);
  344. return soap_closesock(soap);
  345. }
  346. int DeviceIOBindingProxy::GetVideoSources(const char *endpoint, const char *soap_action, _trt__GetVideoSources *trt__GetVideoSources, _trt__GetVideoSourcesResponse *trt__GetVideoSourcesResponse)
  347. { struct soap *soap = this;
  348. struct __tmd__GetVideoSources soap_tmp___tmd__GetVideoSources;
  349. if (endpoint)
  350. soap_endpoint = endpoint;
  351. if (soap_action == NULL)
  352. soap_action = "http://www.onvif.org/ver10/deviceio/wsdl/GetVideoSources";
  353. soap_begin(soap);
  354. soap->encodingStyle = NULL;
  355. soap_tmp___tmd__GetVideoSources.trt__GetVideoSources = trt__GetVideoSources;
  356. soap_set_version(soap, 2); /* SOAP1.2 */
  357. soap_serializeheader(soap);
  358. soap_serialize___tmd__GetVideoSources(soap, &soap_tmp___tmd__GetVideoSources);
  359. if (soap_begin_count(soap))
  360. return soap->error;
  361. if (soap->mode & SOAP_IO_LENGTH)
  362. { if (soap_envelope_begin_out(soap)
  363. || soap_putheader(soap)
  364. || soap_body_begin_out(soap)
  365. || soap_put___tmd__GetVideoSources(soap, &soap_tmp___tmd__GetVideoSources, "-tmd:GetVideoSources", NULL)
  366. || soap_body_end_out(soap)
  367. || soap_envelope_end_out(soap))
  368. return soap->error;
  369. }
  370. if (soap_end_count(soap))
  371. return soap->error;
  372. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  373. || soap_envelope_begin_out(soap)
  374. || soap_putheader(soap)
  375. || soap_body_begin_out(soap)
  376. || soap_put___tmd__GetVideoSources(soap, &soap_tmp___tmd__GetVideoSources, "-tmd:GetVideoSources", NULL)
  377. || soap_body_end_out(soap)
  378. || soap_envelope_end_out(soap)
  379. || soap_end_send(soap))
  380. return soap_closesock(soap);
  381. if (!trt__GetVideoSourcesResponse)
  382. return soap_closesock(soap);
  383. trt__GetVideoSourcesResponse->soap_default(soap);
  384. if (soap_begin_recv(soap)
  385. || soap_envelope_begin_in(soap)
  386. || soap_recv_header(soap)
  387. || soap_body_begin_in(soap))
  388. return soap_closesock(soap);
  389. trt__GetVideoSourcesResponse->soap_get(soap, "trt:GetVideoSourcesResponse", "");
  390. if (soap->error)
  391. return soap_recv_fault(soap, 0);
  392. if (soap_body_end_in(soap)
  393. || soap_envelope_end_in(soap)
  394. || soap_end_recv(soap))
  395. return soap_closesock(soap);
  396. return soap_closesock(soap);
  397. }
  398. int DeviceIOBindingProxy::GetVideoOutputs(const char *endpoint, const char *soap_action, _tmd__GetVideoOutputs *tmd__GetVideoOutputs, _tmd__GetVideoOutputsResponse *tmd__GetVideoOutputsResponse)
  399. { struct soap *soap = this;
  400. struct __tmd__GetVideoOutputs soap_tmp___tmd__GetVideoOutputs;
  401. if (endpoint)
  402. soap_endpoint = endpoint;
  403. if (soap_action == NULL)
  404. soap_action = "http://www.onvif.org/ver10/deviceio/wsdl/GetVideoOutputs";
  405. soap_begin(soap);
  406. soap->encodingStyle = NULL;
  407. soap_tmp___tmd__GetVideoOutputs.tmd__GetVideoOutputs = tmd__GetVideoOutputs;
  408. soap_set_version(soap, 2); /* SOAP1.2 */
  409. soap_serializeheader(soap);
  410. soap_serialize___tmd__GetVideoOutputs(soap, &soap_tmp___tmd__GetVideoOutputs);
  411. if (soap_begin_count(soap))
  412. return soap->error;
  413. if (soap->mode & SOAP_IO_LENGTH)
  414. { if (soap_envelope_begin_out(soap)
  415. || soap_putheader(soap)
  416. || soap_body_begin_out(soap)
  417. || soap_put___tmd__GetVideoOutputs(soap, &soap_tmp___tmd__GetVideoOutputs, "-tmd:GetVideoOutputs", NULL)
  418. || soap_body_end_out(soap)
  419. || soap_envelope_end_out(soap))
  420. return soap->error;
  421. }
  422. if (soap_end_count(soap))
  423. return soap->error;
  424. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  425. || soap_envelope_begin_out(soap)
  426. || soap_putheader(soap)
  427. || soap_body_begin_out(soap)
  428. || soap_put___tmd__GetVideoOutputs(soap, &soap_tmp___tmd__GetVideoOutputs, "-tmd:GetVideoOutputs", NULL)
  429. || soap_body_end_out(soap)
  430. || soap_envelope_end_out(soap)
  431. || soap_end_send(soap))
  432. return soap_closesock(soap);
  433. if (!tmd__GetVideoOutputsResponse)
  434. return soap_closesock(soap);
  435. tmd__GetVideoOutputsResponse->soap_default(soap);
  436. if (soap_begin_recv(soap)
  437. || soap_envelope_begin_in(soap)
  438. || soap_recv_header(soap)
  439. || soap_body_begin_in(soap))
  440. return soap_closesock(soap);
  441. tmd__GetVideoOutputsResponse->soap_get(soap, "tmd:GetVideoOutputsResponse", "");
  442. if (soap->error)
  443. return soap_recv_fault(soap, 0);
  444. if (soap_body_end_in(soap)
  445. || soap_envelope_end_in(soap)
  446. || soap_end_recv(soap))
  447. return soap_closesock(soap);
  448. return soap_closesock(soap);
  449. }
  450. int DeviceIOBindingProxy::GetVideoSourceConfiguration(const char *endpoint, const char *soap_action, _tmd__GetVideoSourceConfiguration *tmd__GetVideoSourceConfiguration, _tmd__GetVideoSourceConfigurationResponse *tmd__GetVideoSourceConfigurationResponse)
  451. { struct soap *soap = this;
  452. struct __tmd__GetVideoSourceConfiguration soap_tmp___tmd__GetVideoSourceConfiguration;
  453. if (endpoint)
  454. soap_endpoint = endpoint;
  455. if (soap_action == NULL)
  456. soap_action = "http://www.onvif.org/ver10/deviceio/wsdl/GetVideoSourceConfiguration";
  457. soap_begin(soap);
  458. soap->encodingStyle = NULL;
  459. soap_tmp___tmd__GetVideoSourceConfiguration.tmd__GetVideoSourceConfiguration = tmd__GetVideoSourceConfiguration;
  460. soap_set_version(soap, 2); /* SOAP1.2 */
  461. soap_serializeheader(soap);
  462. soap_serialize___tmd__GetVideoSourceConfiguration(soap, &soap_tmp___tmd__GetVideoSourceConfiguration);
  463. if (soap_begin_count(soap))
  464. return soap->error;
  465. if (soap->mode & SOAP_IO_LENGTH)
  466. { if (soap_envelope_begin_out(soap)
  467. || soap_putheader(soap)
  468. || soap_body_begin_out(soap)
  469. || soap_put___tmd__GetVideoSourceConfiguration(soap, &soap_tmp___tmd__GetVideoSourceConfiguration, "-tmd:GetVideoSourceConfiguration", NULL)
  470. || soap_body_end_out(soap)
  471. || soap_envelope_end_out(soap))
  472. return soap->error;
  473. }
  474. if (soap_end_count(soap))
  475. return soap->error;
  476. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  477. || soap_envelope_begin_out(soap)
  478. || soap_putheader(soap)
  479. || soap_body_begin_out(soap)
  480. || soap_put___tmd__GetVideoSourceConfiguration(soap, &soap_tmp___tmd__GetVideoSourceConfiguration, "-tmd:GetVideoSourceConfiguration", NULL)
  481. || soap_body_end_out(soap)
  482. || soap_envelope_end_out(soap)
  483. || soap_end_send(soap))
  484. return soap_closesock(soap);
  485. if (!tmd__GetVideoSourceConfigurationResponse)
  486. return soap_closesock(soap);
  487. tmd__GetVideoSourceConfigurationResponse->soap_default(soap);
  488. if (soap_begin_recv(soap)
  489. || soap_envelope_begin_in(soap)
  490. || soap_recv_header(soap)
  491. || soap_body_begin_in(soap))
  492. return soap_closesock(soap);
  493. tmd__GetVideoSourceConfigurationResponse->soap_get(soap, "tmd:GetVideoSourceConfigurationResponse", "");
  494. if (soap->error)
  495. return soap_recv_fault(soap, 0);
  496. if (soap_body_end_in(soap)
  497. || soap_envelope_end_in(soap)
  498. || soap_end_recv(soap))
  499. return soap_closesock(soap);
  500. return soap_closesock(soap);
  501. }
  502. int DeviceIOBindingProxy::GetVideoOutputConfiguration(const char *endpoint, const char *soap_action, _tmd__GetVideoOutputConfiguration *tmd__GetVideoOutputConfiguration, _tmd__GetVideoOutputConfigurationResponse *tmd__GetVideoOutputConfigurationResponse)
  503. { struct soap *soap = this;
  504. struct __tmd__GetVideoOutputConfiguration soap_tmp___tmd__GetVideoOutputConfiguration;
  505. if (endpoint)
  506. soap_endpoint = endpoint;
  507. if (soap_action == NULL)
  508. soap_action = "http://www.onvif.org/ver10/deviceio/wsdl/GetVideoOutputConfiguration";
  509. soap_begin(soap);
  510. soap->encodingStyle = NULL;
  511. soap_tmp___tmd__GetVideoOutputConfiguration.tmd__GetVideoOutputConfiguration = tmd__GetVideoOutputConfiguration;
  512. soap_set_version(soap, 2); /* SOAP1.2 */
  513. soap_serializeheader(soap);
  514. soap_serialize___tmd__GetVideoOutputConfiguration(soap, &soap_tmp___tmd__GetVideoOutputConfiguration);
  515. if (soap_begin_count(soap))
  516. return soap->error;
  517. if (soap->mode & SOAP_IO_LENGTH)
  518. { if (soap_envelope_begin_out(soap)
  519. || soap_putheader(soap)
  520. || soap_body_begin_out(soap)
  521. || soap_put___tmd__GetVideoOutputConfiguration(soap, &soap_tmp___tmd__GetVideoOutputConfiguration, "-tmd:GetVideoOutputConfiguration", NULL)
  522. || soap_body_end_out(soap)
  523. || soap_envelope_end_out(soap))
  524. return soap->error;
  525. }
  526. if (soap_end_count(soap))
  527. return soap->error;
  528. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  529. || soap_envelope_begin_out(soap)
  530. || soap_putheader(soap)
  531. || soap_body_begin_out(soap)
  532. || soap_put___tmd__GetVideoOutputConfiguration(soap, &soap_tmp___tmd__GetVideoOutputConfiguration, "-tmd:GetVideoOutputConfiguration", NULL)
  533. || soap_body_end_out(soap)
  534. || soap_envelope_end_out(soap)
  535. || soap_end_send(soap))
  536. return soap_closesock(soap);
  537. if (!tmd__GetVideoOutputConfigurationResponse)
  538. return soap_closesock(soap);
  539. tmd__GetVideoOutputConfigurationResponse->soap_default(soap);
  540. if (soap_begin_recv(soap)
  541. || soap_envelope_begin_in(soap)
  542. || soap_recv_header(soap)
  543. || soap_body_begin_in(soap))
  544. return soap_closesock(soap);
  545. tmd__GetVideoOutputConfigurationResponse->soap_get(soap, "tmd:GetVideoOutputConfigurationResponse", "");
  546. if (soap->error)
  547. return soap_recv_fault(soap, 0);
  548. if (soap_body_end_in(soap)
  549. || soap_envelope_end_in(soap)
  550. || soap_end_recv(soap))
  551. return soap_closesock(soap);
  552. return soap_closesock(soap);
  553. }
  554. int DeviceIOBindingProxy::GetAudioSourceConfiguration(const char *endpoint, const char *soap_action, _tmd__GetAudioSourceConfiguration *tmd__GetAudioSourceConfiguration, _tmd__GetAudioSourceConfigurationResponse *tmd__GetAudioSourceConfigurationResponse)
  555. { struct soap *soap = this;
  556. struct __tmd__GetAudioSourceConfiguration soap_tmp___tmd__GetAudioSourceConfiguration;
  557. if (endpoint)
  558. soap_endpoint = endpoint;
  559. if (soap_action == NULL)
  560. soap_action = "http://www.onvif.org/ver10/deviceio/wsdl/GetAudioSourceConfiguration";
  561. soap_begin(soap);
  562. soap->encodingStyle = NULL;
  563. soap_tmp___tmd__GetAudioSourceConfiguration.tmd__GetAudioSourceConfiguration = tmd__GetAudioSourceConfiguration;
  564. soap_set_version(soap, 2); /* SOAP1.2 */
  565. soap_serializeheader(soap);
  566. soap_serialize___tmd__GetAudioSourceConfiguration(soap, &soap_tmp___tmd__GetAudioSourceConfiguration);
  567. if (soap_begin_count(soap))
  568. return soap->error;
  569. if (soap->mode & SOAP_IO_LENGTH)
  570. { if (soap_envelope_begin_out(soap)
  571. || soap_putheader(soap)
  572. || soap_body_begin_out(soap)
  573. || soap_put___tmd__GetAudioSourceConfiguration(soap, &soap_tmp___tmd__GetAudioSourceConfiguration, "-tmd:GetAudioSourceConfiguration", NULL)
  574. || soap_body_end_out(soap)
  575. || soap_envelope_end_out(soap))
  576. return soap->error;
  577. }
  578. if (soap_end_count(soap))
  579. return soap->error;
  580. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  581. || soap_envelope_begin_out(soap)
  582. || soap_putheader(soap)
  583. || soap_body_begin_out(soap)
  584. || soap_put___tmd__GetAudioSourceConfiguration(soap, &soap_tmp___tmd__GetAudioSourceConfiguration, "-tmd:GetAudioSourceConfiguration", NULL)
  585. || soap_body_end_out(soap)
  586. || soap_envelope_end_out(soap)
  587. || soap_end_send(soap))
  588. return soap_closesock(soap);
  589. if (!tmd__GetAudioSourceConfigurationResponse)
  590. return soap_closesock(soap);
  591. tmd__GetAudioSourceConfigurationResponse->soap_default(soap);
  592. if (soap_begin_recv(soap)
  593. || soap_envelope_begin_in(soap)
  594. || soap_recv_header(soap)
  595. || soap_body_begin_in(soap))
  596. return soap_closesock(soap);
  597. tmd__GetAudioSourceConfigurationResponse->soap_get(soap, "tmd:GetAudioSourceConfigurationResponse", "");
  598. if (soap->error)
  599. return soap_recv_fault(soap, 0);
  600. if (soap_body_end_in(soap)
  601. || soap_envelope_end_in(soap)
  602. || soap_end_recv(soap))
  603. return soap_closesock(soap);
  604. return soap_closesock(soap);
  605. }
  606. int DeviceIOBindingProxy::GetAudioOutputConfiguration(const char *endpoint, const char *soap_action, _tmd__GetAudioOutputConfiguration *tmd__GetAudioOutputConfiguration, _tmd__GetAudioOutputConfigurationResponse *tmd__GetAudioOutputConfigurationResponse)
  607. { struct soap *soap = this;
  608. struct __tmd__GetAudioOutputConfiguration soap_tmp___tmd__GetAudioOutputConfiguration;
  609. if (endpoint)
  610. soap_endpoint = endpoint;
  611. if (soap_action == NULL)
  612. soap_action = "http://www.onvif.org/ver10/deviceio/wsdl/GetAudioOutputConfiguration";
  613. soap_begin(soap);
  614. soap->encodingStyle = NULL;
  615. soap_tmp___tmd__GetAudioOutputConfiguration.tmd__GetAudioOutputConfiguration = tmd__GetAudioOutputConfiguration;
  616. soap_set_version(soap, 2); /* SOAP1.2 */
  617. soap_serializeheader(soap);
  618. soap_serialize___tmd__GetAudioOutputConfiguration(soap, &soap_tmp___tmd__GetAudioOutputConfiguration);
  619. if (soap_begin_count(soap))
  620. return soap->error;
  621. if (soap->mode & SOAP_IO_LENGTH)
  622. { if (soap_envelope_begin_out(soap)
  623. || soap_putheader(soap)
  624. || soap_body_begin_out(soap)
  625. || soap_put___tmd__GetAudioOutputConfiguration(soap, &soap_tmp___tmd__GetAudioOutputConfiguration, "-tmd:GetAudioOutputConfiguration", NULL)
  626. || soap_body_end_out(soap)
  627. || soap_envelope_end_out(soap))
  628. return soap->error;
  629. }
  630. if (soap_end_count(soap))
  631. return soap->error;
  632. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  633. || soap_envelope_begin_out(soap)
  634. || soap_putheader(soap)
  635. || soap_body_begin_out(soap)
  636. || soap_put___tmd__GetAudioOutputConfiguration(soap, &soap_tmp___tmd__GetAudioOutputConfiguration, "-tmd:GetAudioOutputConfiguration", NULL)
  637. || soap_body_end_out(soap)
  638. || soap_envelope_end_out(soap)
  639. || soap_end_send(soap))
  640. return soap_closesock(soap);
  641. if (!tmd__GetAudioOutputConfigurationResponse)
  642. return soap_closesock(soap);
  643. tmd__GetAudioOutputConfigurationResponse->soap_default(soap);
  644. if (soap_begin_recv(soap)
  645. || soap_envelope_begin_in(soap)
  646. || soap_recv_header(soap)
  647. || soap_body_begin_in(soap))
  648. return soap_closesock(soap);
  649. tmd__GetAudioOutputConfigurationResponse->soap_get(soap, "tmd:GetAudioOutputConfigurationResponse", "");
  650. if (soap->error)
  651. return soap_recv_fault(soap, 0);
  652. if (soap_body_end_in(soap)
  653. || soap_envelope_end_in(soap)
  654. || soap_end_recv(soap))
  655. return soap_closesock(soap);
  656. return soap_closesock(soap);
  657. }
  658. int DeviceIOBindingProxy::SetVideoSourceConfiguration(const char *endpoint, const char *soap_action, _tmd__SetVideoSourceConfiguration *tmd__SetVideoSourceConfiguration, _tmd__SetVideoSourceConfigurationResponse *tmd__SetVideoSourceConfigurationResponse)
  659. { struct soap *soap = this;
  660. struct __tmd__SetVideoSourceConfiguration soap_tmp___tmd__SetVideoSourceConfiguration;
  661. if (endpoint)
  662. soap_endpoint = endpoint;
  663. if (soap_action == NULL)
  664. soap_action = "http://www.onvif.org/ver10/deviceio/wsdl/SetVideoSourceConfiguration";
  665. soap_begin(soap);
  666. soap->encodingStyle = NULL;
  667. soap_tmp___tmd__SetVideoSourceConfiguration.tmd__SetVideoSourceConfiguration = tmd__SetVideoSourceConfiguration;
  668. soap_set_version(soap, 2); /* SOAP1.2 */
  669. soap_serializeheader(soap);
  670. soap_serialize___tmd__SetVideoSourceConfiguration(soap, &soap_tmp___tmd__SetVideoSourceConfiguration);
  671. if (soap_begin_count(soap))
  672. return soap->error;
  673. if (soap->mode & SOAP_IO_LENGTH)
  674. { if (soap_envelope_begin_out(soap)
  675. || soap_putheader(soap)
  676. || soap_body_begin_out(soap)
  677. || soap_put___tmd__SetVideoSourceConfiguration(soap, &soap_tmp___tmd__SetVideoSourceConfiguration, "-tmd:SetVideoSourceConfiguration", NULL)
  678. || soap_body_end_out(soap)
  679. || soap_envelope_end_out(soap))
  680. return soap->error;
  681. }
  682. if (soap_end_count(soap))
  683. return soap->error;
  684. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  685. || soap_envelope_begin_out(soap)
  686. || soap_putheader(soap)
  687. || soap_body_begin_out(soap)
  688. || soap_put___tmd__SetVideoSourceConfiguration(soap, &soap_tmp___tmd__SetVideoSourceConfiguration, "-tmd:SetVideoSourceConfiguration", NULL)
  689. || soap_body_end_out(soap)
  690. || soap_envelope_end_out(soap)
  691. || soap_end_send(soap))
  692. return soap_closesock(soap);
  693. if (!tmd__SetVideoSourceConfigurationResponse)
  694. return soap_closesock(soap);
  695. tmd__SetVideoSourceConfigurationResponse->soap_default(soap);
  696. if (soap_begin_recv(soap)
  697. || soap_envelope_begin_in(soap)
  698. || soap_recv_header(soap)
  699. || soap_body_begin_in(soap))
  700. return soap_closesock(soap);
  701. tmd__SetVideoSourceConfigurationResponse->soap_get(soap, "tmd:SetVideoSourceConfigurationResponse", "");
  702. if (soap->error)
  703. return soap_recv_fault(soap, 0);
  704. if (soap_body_end_in(soap)
  705. || soap_envelope_end_in(soap)
  706. || soap_end_recv(soap))
  707. return soap_closesock(soap);
  708. return soap_closesock(soap);
  709. }
  710. int DeviceIOBindingProxy::SetVideoOutputConfiguration(const char *endpoint, const char *soap_action, _tmd__SetVideoOutputConfiguration *tmd__SetVideoOutputConfiguration, _tmd__SetVideoOutputConfigurationResponse *tmd__SetVideoOutputConfigurationResponse)
  711. { struct soap *soap = this;
  712. struct __tmd__SetVideoOutputConfiguration soap_tmp___tmd__SetVideoOutputConfiguration;
  713. if (endpoint)
  714. soap_endpoint = endpoint;
  715. if (soap_action == NULL)
  716. soap_action = "http://www.onvif.org/ver10/deviceio/wsdl/SetVideoOutputConfiguration";
  717. soap_begin(soap);
  718. soap->encodingStyle = NULL;
  719. soap_tmp___tmd__SetVideoOutputConfiguration.tmd__SetVideoOutputConfiguration = tmd__SetVideoOutputConfiguration;
  720. soap_set_version(soap, 2); /* SOAP1.2 */
  721. soap_serializeheader(soap);
  722. soap_serialize___tmd__SetVideoOutputConfiguration(soap, &soap_tmp___tmd__SetVideoOutputConfiguration);
  723. if (soap_begin_count(soap))
  724. return soap->error;
  725. if (soap->mode & SOAP_IO_LENGTH)
  726. { if (soap_envelope_begin_out(soap)
  727. || soap_putheader(soap)
  728. || soap_body_begin_out(soap)
  729. || soap_put___tmd__SetVideoOutputConfiguration(soap, &soap_tmp___tmd__SetVideoOutputConfiguration, "-tmd:SetVideoOutputConfiguration", NULL)
  730. || soap_body_end_out(soap)
  731. || soap_envelope_end_out(soap))
  732. return soap->error;
  733. }
  734. if (soap_end_count(soap))
  735. return soap->error;
  736. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  737. || soap_envelope_begin_out(soap)
  738. || soap_putheader(soap)
  739. || soap_body_begin_out(soap)
  740. || soap_put___tmd__SetVideoOutputConfiguration(soap, &soap_tmp___tmd__SetVideoOutputConfiguration, "-tmd:SetVideoOutputConfiguration", NULL)
  741. || soap_body_end_out(soap)
  742. || soap_envelope_end_out(soap)
  743. || soap_end_send(soap))
  744. return soap_closesock(soap);
  745. if (!tmd__SetVideoOutputConfigurationResponse)
  746. return soap_closesock(soap);
  747. tmd__SetVideoOutputConfigurationResponse->soap_default(soap);
  748. if (soap_begin_recv(soap)
  749. || soap_envelope_begin_in(soap)
  750. || soap_recv_header(soap)
  751. || soap_body_begin_in(soap))
  752. return soap_closesock(soap);
  753. tmd__SetVideoOutputConfigurationResponse->soap_get(soap, "tmd:SetVideoOutputConfigurationResponse", "");
  754. if (soap->error)
  755. return soap_recv_fault(soap, 0);
  756. if (soap_body_end_in(soap)
  757. || soap_envelope_end_in(soap)
  758. || soap_end_recv(soap))
  759. return soap_closesock(soap);
  760. return soap_closesock(soap);
  761. }
  762. int DeviceIOBindingProxy::SetAudioSourceConfiguration(const char *endpoint, const char *soap_action, _tmd__SetAudioSourceConfiguration *tmd__SetAudioSourceConfiguration, _tmd__SetAudioSourceConfigurationResponse *tmd__SetAudioSourceConfigurationResponse)
  763. { struct soap *soap = this;
  764. struct __tmd__SetAudioSourceConfiguration soap_tmp___tmd__SetAudioSourceConfiguration;
  765. if (endpoint)
  766. soap_endpoint = endpoint;
  767. if (soap_action == NULL)
  768. soap_action = "http://www.onvif.org/ver10/deviceio/wsdl/SetAudioSourceConfiguration";
  769. soap_begin(soap);
  770. soap->encodingStyle = NULL;
  771. soap_tmp___tmd__SetAudioSourceConfiguration.tmd__SetAudioSourceConfiguration = tmd__SetAudioSourceConfiguration;
  772. soap_set_version(soap, 2); /* SOAP1.2 */
  773. soap_serializeheader(soap);
  774. soap_serialize___tmd__SetAudioSourceConfiguration(soap, &soap_tmp___tmd__SetAudioSourceConfiguration);
  775. if (soap_begin_count(soap))
  776. return soap->error;
  777. if (soap->mode & SOAP_IO_LENGTH)
  778. { if (soap_envelope_begin_out(soap)
  779. || soap_putheader(soap)
  780. || soap_body_begin_out(soap)
  781. || soap_put___tmd__SetAudioSourceConfiguration(soap, &soap_tmp___tmd__SetAudioSourceConfiguration, "-tmd:SetAudioSourceConfiguration", NULL)
  782. || soap_body_end_out(soap)
  783. || soap_envelope_end_out(soap))
  784. return soap->error;
  785. }
  786. if (soap_end_count(soap))
  787. return soap->error;
  788. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  789. || soap_envelope_begin_out(soap)
  790. || soap_putheader(soap)
  791. || soap_body_begin_out(soap)
  792. || soap_put___tmd__SetAudioSourceConfiguration(soap, &soap_tmp___tmd__SetAudioSourceConfiguration, "-tmd:SetAudioSourceConfiguration", NULL)
  793. || soap_body_end_out(soap)
  794. || soap_envelope_end_out(soap)
  795. || soap_end_send(soap))
  796. return soap_closesock(soap);
  797. if (!tmd__SetAudioSourceConfigurationResponse)
  798. return soap_closesock(soap);
  799. tmd__SetAudioSourceConfigurationResponse->soap_default(soap);
  800. if (soap_begin_recv(soap)
  801. || soap_envelope_begin_in(soap)
  802. || soap_recv_header(soap)
  803. || soap_body_begin_in(soap))
  804. return soap_closesock(soap);
  805. tmd__SetAudioSourceConfigurationResponse->soap_get(soap, "tmd:SetAudioSourceConfigurationResponse", "");
  806. if (soap->error)
  807. return soap_recv_fault(soap, 0);
  808. if (soap_body_end_in(soap)
  809. || soap_envelope_end_in(soap)
  810. || soap_end_recv(soap))
  811. return soap_closesock(soap);
  812. return soap_closesock(soap);
  813. }
  814. int DeviceIOBindingProxy::SetAudioOutputConfiguration(const char *endpoint, const char *soap_action, _tmd__SetAudioOutputConfiguration *tmd__SetAudioOutputConfiguration, _tmd__SetAudioOutputConfigurationResponse *tmd__SetAudioOutputConfigurationResponse)
  815. { struct soap *soap = this;
  816. struct __tmd__SetAudioOutputConfiguration soap_tmp___tmd__SetAudioOutputConfiguration;
  817. if (endpoint)
  818. soap_endpoint = endpoint;
  819. if (soap_action == NULL)
  820. soap_action = "http://www.onvif.org/ver10/deviceio/wsdl/SetAudioOutputConfiguration";
  821. soap_begin(soap);
  822. soap->encodingStyle = NULL;
  823. soap_tmp___tmd__SetAudioOutputConfiguration.tmd__SetAudioOutputConfiguration = tmd__SetAudioOutputConfiguration;
  824. soap_set_version(soap, 2); /* SOAP1.2 */
  825. soap_serializeheader(soap);
  826. soap_serialize___tmd__SetAudioOutputConfiguration(soap, &soap_tmp___tmd__SetAudioOutputConfiguration);
  827. if (soap_begin_count(soap))
  828. return soap->error;
  829. if (soap->mode & SOAP_IO_LENGTH)
  830. { if (soap_envelope_begin_out(soap)
  831. || soap_putheader(soap)
  832. || soap_body_begin_out(soap)
  833. || soap_put___tmd__SetAudioOutputConfiguration(soap, &soap_tmp___tmd__SetAudioOutputConfiguration, "-tmd:SetAudioOutputConfiguration", NULL)
  834. || soap_body_end_out(soap)
  835. || soap_envelope_end_out(soap))
  836. return soap->error;
  837. }
  838. if (soap_end_count(soap))
  839. return soap->error;
  840. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  841. || soap_envelope_begin_out(soap)
  842. || soap_putheader(soap)
  843. || soap_body_begin_out(soap)
  844. || soap_put___tmd__SetAudioOutputConfiguration(soap, &soap_tmp___tmd__SetAudioOutputConfiguration, "-tmd:SetAudioOutputConfiguration", NULL)
  845. || soap_body_end_out(soap)
  846. || soap_envelope_end_out(soap)
  847. || soap_end_send(soap))
  848. return soap_closesock(soap);
  849. if (!tmd__SetAudioOutputConfigurationResponse)
  850. return soap_closesock(soap);
  851. tmd__SetAudioOutputConfigurationResponse->soap_default(soap);
  852. if (soap_begin_recv(soap)
  853. || soap_envelope_begin_in(soap)
  854. || soap_recv_header(soap)
  855. || soap_body_begin_in(soap))
  856. return soap_closesock(soap);
  857. tmd__SetAudioOutputConfigurationResponse->soap_get(soap, "tmd:SetAudioOutputConfigurationResponse", "");
  858. if (soap->error)
  859. return soap_recv_fault(soap, 0);
  860. if (soap_body_end_in(soap)
  861. || soap_envelope_end_in(soap)
  862. || soap_end_recv(soap))
  863. return soap_closesock(soap);
  864. return soap_closesock(soap);
  865. }
  866. int DeviceIOBindingProxy::GetVideoSourceConfigurationOptions(const char *endpoint, const char *soap_action, _tmd__GetVideoSourceConfigurationOptions *tmd__GetVideoSourceConfigurationOptions, _tmd__GetVideoSourceConfigurationOptionsResponse *tmd__GetVideoSourceConfigurationOptionsResponse)
  867. { struct soap *soap = this;
  868. struct __tmd__GetVideoSourceConfigurationOptions soap_tmp___tmd__GetVideoSourceConfigurationOptions;
  869. if (endpoint)
  870. soap_endpoint = endpoint;
  871. if (soap_action == NULL)
  872. soap_action = "http://www.onvif.org/ver10/deviceio/wsdl/GetVideoSourceConfigurationOptions";
  873. soap_begin(soap);
  874. soap->encodingStyle = NULL;
  875. soap_tmp___tmd__GetVideoSourceConfigurationOptions.tmd__GetVideoSourceConfigurationOptions = tmd__GetVideoSourceConfigurationOptions;
  876. soap_set_version(soap, 2); /* SOAP1.2 */
  877. soap_serializeheader(soap);
  878. soap_serialize___tmd__GetVideoSourceConfigurationOptions(soap, &soap_tmp___tmd__GetVideoSourceConfigurationOptions);
  879. if (soap_begin_count(soap))
  880. return soap->error;
  881. if (soap->mode & SOAP_IO_LENGTH)
  882. { if (soap_envelope_begin_out(soap)
  883. || soap_putheader(soap)
  884. || soap_body_begin_out(soap)
  885. || soap_put___tmd__GetVideoSourceConfigurationOptions(soap, &soap_tmp___tmd__GetVideoSourceConfigurationOptions, "-tmd:GetVideoSourceConfigurationOptions", NULL)
  886. || soap_body_end_out(soap)
  887. || soap_envelope_end_out(soap))
  888. return soap->error;
  889. }
  890. if (soap_end_count(soap))
  891. return soap->error;
  892. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  893. || soap_envelope_begin_out(soap)
  894. || soap_putheader(soap)
  895. || soap_body_begin_out(soap)
  896. || soap_put___tmd__GetVideoSourceConfigurationOptions(soap, &soap_tmp___tmd__GetVideoSourceConfigurationOptions, "-tmd:GetVideoSourceConfigurationOptions", NULL)
  897. || soap_body_end_out(soap)
  898. || soap_envelope_end_out(soap)
  899. || soap_end_send(soap))
  900. return soap_closesock(soap);
  901. if (!tmd__GetVideoSourceConfigurationOptionsResponse)
  902. return soap_closesock(soap);
  903. tmd__GetVideoSourceConfigurationOptionsResponse->soap_default(soap);
  904. if (soap_begin_recv(soap)
  905. || soap_envelope_begin_in(soap)
  906. || soap_recv_header(soap)
  907. || soap_body_begin_in(soap))
  908. return soap_closesock(soap);
  909. tmd__GetVideoSourceConfigurationOptionsResponse->soap_get(soap, "tmd:GetVideoSourceConfigurationOptionsResponse", "");
  910. if (soap->error)
  911. return soap_recv_fault(soap, 0);
  912. if (soap_body_end_in(soap)
  913. || soap_envelope_end_in(soap)
  914. || soap_end_recv(soap))
  915. return soap_closesock(soap);
  916. return soap_closesock(soap);
  917. }
  918. int DeviceIOBindingProxy::GetVideoOutputConfigurationOptions(const char *endpoint, const char *soap_action, _tmd__GetVideoOutputConfigurationOptions *tmd__GetVideoOutputConfigurationOptions, _tmd__GetVideoOutputConfigurationOptionsResponse *tmd__GetVideoOutputConfigurationOptionsResponse)
  919. { struct soap *soap = this;
  920. struct __tmd__GetVideoOutputConfigurationOptions soap_tmp___tmd__GetVideoOutputConfigurationOptions;
  921. if (endpoint)
  922. soap_endpoint = endpoint;
  923. if (soap_action == NULL)
  924. soap_action = "http://www.onvif.org/ver10/deviceio/wsdl/GetVideoOutputConfigurationOptions";
  925. soap_begin(soap);
  926. soap->encodingStyle = NULL;
  927. soap_tmp___tmd__GetVideoOutputConfigurationOptions.tmd__GetVideoOutputConfigurationOptions = tmd__GetVideoOutputConfigurationOptions;
  928. soap_set_version(soap, 2); /* SOAP1.2 */
  929. soap_serializeheader(soap);
  930. soap_serialize___tmd__GetVideoOutputConfigurationOptions(soap, &soap_tmp___tmd__GetVideoOutputConfigurationOptions);
  931. if (soap_begin_count(soap))
  932. return soap->error;
  933. if (soap->mode & SOAP_IO_LENGTH)
  934. { if (soap_envelope_begin_out(soap)
  935. || soap_putheader(soap)
  936. || soap_body_begin_out(soap)
  937. || soap_put___tmd__GetVideoOutputConfigurationOptions(soap, &soap_tmp___tmd__GetVideoOutputConfigurationOptions, "-tmd:GetVideoOutputConfigurationOptions", NULL)
  938. || soap_body_end_out(soap)
  939. || soap_envelope_end_out(soap))
  940. return soap->error;
  941. }
  942. if (soap_end_count(soap))
  943. return soap->error;
  944. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  945. || soap_envelope_begin_out(soap)
  946. || soap_putheader(soap)
  947. || soap_body_begin_out(soap)
  948. || soap_put___tmd__GetVideoOutputConfigurationOptions(soap, &soap_tmp___tmd__GetVideoOutputConfigurationOptions, "-tmd:GetVideoOutputConfigurationOptions", NULL)
  949. || soap_body_end_out(soap)
  950. || soap_envelope_end_out(soap)
  951. || soap_end_send(soap))
  952. return soap_closesock(soap);
  953. if (!tmd__GetVideoOutputConfigurationOptionsResponse)
  954. return soap_closesock(soap);
  955. tmd__GetVideoOutputConfigurationOptionsResponse->soap_default(soap);
  956. if (soap_begin_recv(soap)
  957. || soap_envelope_begin_in(soap)
  958. || soap_recv_header(soap)
  959. || soap_body_begin_in(soap))
  960. return soap_closesock(soap);
  961. tmd__GetVideoOutputConfigurationOptionsResponse->soap_get(soap, "tmd:GetVideoOutputConfigurationOptionsResponse", "");
  962. if (soap->error)
  963. return soap_recv_fault(soap, 0);
  964. if (soap_body_end_in(soap)
  965. || soap_envelope_end_in(soap)
  966. || soap_end_recv(soap))
  967. return soap_closesock(soap);
  968. return soap_closesock(soap);
  969. }
  970. int DeviceIOBindingProxy::GetAudioSourceConfigurationOptions(const char *endpoint, const char *soap_action, _tmd__GetAudioSourceConfigurationOptions *tmd__GetAudioSourceConfigurationOptions, _tmd__GetAudioSourceConfigurationOptionsResponse *tmd__GetAudioSourceConfigurationOptionsResponse)
  971. { struct soap *soap = this;
  972. struct __tmd__GetAudioSourceConfigurationOptions soap_tmp___tmd__GetAudioSourceConfigurationOptions;
  973. if (endpoint)
  974. soap_endpoint = endpoint;
  975. if (soap_action == NULL)
  976. soap_action = "http://www.onvif.org/ver10/deviceio/wsdl/GetAudioSourceConfigurationOptions";
  977. soap_begin(soap);
  978. soap->encodingStyle = NULL;
  979. soap_tmp___tmd__GetAudioSourceConfigurationOptions.tmd__GetAudioSourceConfigurationOptions = tmd__GetAudioSourceConfigurationOptions;
  980. soap_set_version(soap, 2); /* SOAP1.2 */
  981. soap_serializeheader(soap);
  982. soap_serialize___tmd__GetAudioSourceConfigurationOptions(soap, &soap_tmp___tmd__GetAudioSourceConfigurationOptions);
  983. if (soap_begin_count(soap))
  984. return soap->error;
  985. if (soap->mode & SOAP_IO_LENGTH)
  986. { if (soap_envelope_begin_out(soap)
  987. || soap_putheader(soap)
  988. || soap_body_begin_out(soap)
  989. || soap_put___tmd__GetAudioSourceConfigurationOptions(soap, &soap_tmp___tmd__GetAudioSourceConfigurationOptions, "-tmd:GetAudioSourceConfigurationOptions", NULL)
  990. || soap_body_end_out(soap)
  991. || soap_envelope_end_out(soap))
  992. return soap->error;
  993. }
  994. if (soap_end_count(soap))
  995. return soap->error;
  996. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  997. || soap_envelope_begin_out(soap)
  998. || soap_putheader(soap)
  999. || soap_body_begin_out(soap)
  1000. || soap_put___tmd__GetAudioSourceConfigurationOptions(soap, &soap_tmp___tmd__GetAudioSourceConfigurationOptions, "-tmd:GetAudioSourceConfigurationOptions", NULL)
  1001. || soap_body_end_out(soap)
  1002. || soap_envelope_end_out(soap)
  1003. || soap_end_send(soap))
  1004. return soap_closesock(soap);
  1005. if (!tmd__GetAudioSourceConfigurationOptionsResponse)
  1006. return soap_closesock(soap);
  1007. tmd__GetAudioSourceConfigurationOptionsResponse->soap_default(soap);
  1008. if (soap_begin_recv(soap)
  1009. || soap_envelope_begin_in(soap)
  1010. || soap_recv_header(soap)
  1011. || soap_body_begin_in(soap))
  1012. return soap_closesock(soap);
  1013. tmd__GetAudioSourceConfigurationOptionsResponse->soap_get(soap, "tmd:GetAudioSourceConfigurationOptionsResponse", "");
  1014. if (soap->error)
  1015. return soap_recv_fault(soap, 0);
  1016. if (soap_body_end_in(soap)
  1017. || soap_envelope_end_in(soap)
  1018. || soap_end_recv(soap))
  1019. return soap_closesock(soap);
  1020. return soap_closesock(soap);
  1021. }
  1022. int DeviceIOBindingProxy::GetAudioOutputConfigurationOptions(const char *endpoint, const char *soap_action, _tmd__GetAudioOutputConfigurationOptions *tmd__GetAudioOutputConfigurationOptions, _tmd__GetAudioOutputConfigurationOptionsResponse *tmd__GetAudioOutputConfigurationOptionsResponse)
  1023. { struct soap *soap = this;
  1024. struct __tmd__GetAudioOutputConfigurationOptions soap_tmp___tmd__GetAudioOutputConfigurationOptions;
  1025. if (endpoint)
  1026. soap_endpoint = endpoint;
  1027. if (soap_action == NULL)
  1028. soap_action = "http://www.onvif.org/ver10/deviceio/wsdl/GetAudioOutputConfigurationOptions";
  1029. soap_begin(soap);
  1030. soap->encodingStyle = NULL;
  1031. soap_tmp___tmd__GetAudioOutputConfigurationOptions.tmd__GetAudioOutputConfigurationOptions = tmd__GetAudioOutputConfigurationOptions;
  1032. soap_set_version(soap, 2); /* SOAP1.2 */
  1033. soap_serializeheader(soap);
  1034. soap_serialize___tmd__GetAudioOutputConfigurationOptions(soap, &soap_tmp___tmd__GetAudioOutputConfigurationOptions);
  1035. if (soap_begin_count(soap))
  1036. return soap->error;
  1037. if (soap->mode & SOAP_IO_LENGTH)
  1038. { if (soap_envelope_begin_out(soap)
  1039. || soap_putheader(soap)
  1040. || soap_body_begin_out(soap)
  1041. || soap_put___tmd__GetAudioOutputConfigurationOptions(soap, &soap_tmp___tmd__GetAudioOutputConfigurationOptions, "-tmd:GetAudioOutputConfigurationOptions", NULL)
  1042. || soap_body_end_out(soap)
  1043. || soap_envelope_end_out(soap))
  1044. return soap->error;
  1045. }
  1046. if (soap_end_count(soap))
  1047. return soap->error;
  1048. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  1049. || soap_envelope_begin_out(soap)
  1050. || soap_putheader(soap)
  1051. || soap_body_begin_out(soap)
  1052. || soap_put___tmd__GetAudioOutputConfigurationOptions(soap, &soap_tmp___tmd__GetAudioOutputConfigurationOptions, "-tmd:GetAudioOutputConfigurationOptions", NULL)
  1053. || soap_body_end_out(soap)
  1054. || soap_envelope_end_out(soap)
  1055. || soap_end_send(soap))
  1056. return soap_closesock(soap);
  1057. if (!tmd__GetAudioOutputConfigurationOptionsResponse)
  1058. return soap_closesock(soap);
  1059. tmd__GetAudioOutputConfigurationOptionsResponse->soap_default(soap);
  1060. if (soap_begin_recv(soap)
  1061. || soap_envelope_begin_in(soap)
  1062. || soap_recv_header(soap)
  1063. || soap_body_begin_in(soap))
  1064. return soap_closesock(soap);
  1065. tmd__GetAudioOutputConfigurationOptionsResponse->soap_get(soap, "tmd:GetAudioOutputConfigurationOptionsResponse", "");
  1066. if (soap->error)
  1067. return soap_recv_fault(soap, 0);
  1068. if (soap_body_end_in(soap)
  1069. || soap_envelope_end_in(soap)
  1070. || soap_end_recv(soap))
  1071. return soap_closesock(soap);
  1072. return soap_closesock(soap);
  1073. }
  1074. int DeviceIOBindingProxy::GetRelayOutputs(const char *endpoint, const char *soap_action, _tds__GetRelayOutputs *tds__GetRelayOutputs, _tds__GetRelayOutputsResponse *tds__GetRelayOutputsResponse)
  1075. { struct soap *soap = this;
  1076. struct __tmd__GetRelayOutputs soap_tmp___tmd__GetRelayOutputs;
  1077. if (endpoint)
  1078. soap_endpoint = endpoint;
  1079. if (soap_action == NULL)
  1080. soap_action = "http://www.onvif.org/ver10/deviceio/wsdl/GetRelayOutputs";
  1081. soap_begin(soap);
  1082. soap->encodingStyle = NULL;
  1083. soap_tmp___tmd__GetRelayOutputs.tds__GetRelayOutputs = tds__GetRelayOutputs;
  1084. soap_set_version(soap, 2); /* SOAP1.2 */
  1085. soap_serializeheader(soap);
  1086. soap_serialize___tmd__GetRelayOutputs(soap, &soap_tmp___tmd__GetRelayOutputs);
  1087. if (soap_begin_count(soap))
  1088. return soap->error;
  1089. if (soap->mode & SOAP_IO_LENGTH)
  1090. { if (soap_envelope_begin_out(soap)
  1091. || soap_putheader(soap)
  1092. || soap_body_begin_out(soap)
  1093. || soap_put___tmd__GetRelayOutputs(soap, &soap_tmp___tmd__GetRelayOutputs, "-tmd:GetRelayOutputs", NULL)
  1094. || soap_body_end_out(soap)
  1095. || soap_envelope_end_out(soap))
  1096. return soap->error;
  1097. }
  1098. if (soap_end_count(soap))
  1099. return soap->error;
  1100. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  1101. || soap_envelope_begin_out(soap)
  1102. || soap_putheader(soap)
  1103. || soap_body_begin_out(soap)
  1104. || soap_put___tmd__GetRelayOutputs(soap, &soap_tmp___tmd__GetRelayOutputs, "-tmd:GetRelayOutputs", NULL)
  1105. || soap_body_end_out(soap)
  1106. || soap_envelope_end_out(soap)
  1107. || soap_end_send(soap))
  1108. return soap_closesock(soap);
  1109. if (!tds__GetRelayOutputsResponse)
  1110. return soap_closesock(soap);
  1111. tds__GetRelayOutputsResponse->soap_default(soap);
  1112. if (soap_begin_recv(soap)
  1113. || soap_envelope_begin_in(soap)
  1114. || soap_recv_header(soap)
  1115. || soap_body_begin_in(soap))
  1116. return soap_closesock(soap);
  1117. tds__GetRelayOutputsResponse->soap_get(soap, "tds:GetRelayOutputsResponse", "");
  1118. if (soap->error)
  1119. return soap_recv_fault(soap, 0);
  1120. if (soap_body_end_in(soap)
  1121. || soap_envelope_end_in(soap)
  1122. || soap_end_recv(soap))
  1123. return soap_closesock(soap);
  1124. return soap_closesock(soap);
  1125. }
  1126. int DeviceIOBindingProxy::SetRelayOutputSettings(const char *endpoint, const char *soap_action, _tmd__SetRelayOutputSettings *tmd__SetRelayOutputSettings, _tmd__SetRelayOutputSettingsResponse *tmd__SetRelayOutputSettingsResponse)
  1127. { struct soap *soap = this;
  1128. struct __tmd__SetRelayOutputSettings soap_tmp___tmd__SetRelayOutputSettings;
  1129. if (endpoint)
  1130. soap_endpoint = endpoint;
  1131. if (soap_action == NULL)
  1132. soap_action = "http://www.onvif.org/ver10/deviceio/wsdl/SetRelayOutputSettings";
  1133. soap_begin(soap);
  1134. soap->encodingStyle = NULL;
  1135. soap_tmp___tmd__SetRelayOutputSettings.tmd__SetRelayOutputSettings = tmd__SetRelayOutputSettings;
  1136. soap_set_version(soap, 2); /* SOAP1.2 */
  1137. soap_serializeheader(soap);
  1138. soap_serialize___tmd__SetRelayOutputSettings(soap, &soap_tmp___tmd__SetRelayOutputSettings);
  1139. if (soap_begin_count(soap))
  1140. return soap->error;
  1141. if (soap->mode & SOAP_IO_LENGTH)
  1142. { if (soap_envelope_begin_out(soap)
  1143. || soap_putheader(soap)
  1144. || soap_body_begin_out(soap)
  1145. || soap_put___tmd__SetRelayOutputSettings(soap, &soap_tmp___tmd__SetRelayOutputSettings, "-tmd:SetRelayOutputSettings", NULL)
  1146. || soap_body_end_out(soap)
  1147. || soap_envelope_end_out(soap))
  1148. return soap->error;
  1149. }
  1150. if (soap_end_count(soap))
  1151. return soap->error;
  1152. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  1153. || soap_envelope_begin_out(soap)
  1154. || soap_putheader(soap)
  1155. || soap_body_begin_out(soap)
  1156. || soap_put___tmd__SetRelayOutputSettings(soap, &soap_tmp___tmd__SetRelayOutputSettings, "-tmd:SetRelayOutputSettings", NULL)
  1157. || soap_body_end_out(soap)
  1158. || soap_envelope_end_out(soap)
  1159. || soap_end_send(soap))
  1160. return soap_closesock(soap);
  1161. if (!tmd__SetRelayOutputSettingsResponse)
  1162. return soap_closesock(soap);
  1163. tmd__SetRelayOutputSettingsResponse->soap_default(soap);
  1164. if (soap_begin_recv(soap)
  1165. || soap_envelope_begin_in(soap)
  1166. || soap_recv_header(soap)
  1167. || soap_body_begin_in(soap))
  1168. return soap_closesock(soap);
  1169. tmd__SetRelayOutputSettingsResponse->soap_get(soap, "tmd:SetRelayOutputSettingsResponse", "");
  1170. if (soap->error)
  1171. return soap_recv_fault(soap, 0);
  1172. if (soap_body_end_in(soap)
  1173. || soap_envelope_end_in(soap)
  1174. || soap_end_recv(soap))
  1175. return soap_closesock(soap);
  1176. return soap_closesock(soap);
  1177. }
  1178. int DeviceIOBindingProxy::SetRelayOutputState(const char *endpoint, const char *soap_action, _tds__SetRelayOutputState *tds__SetRelayOutputState, _tds__SetRelayOutputStateResponse *tds__SetRelayOutputStateResponse)
  1179. { struct soap *soap = this;
  1180. struct __tmd__SetRelayOutputState soap_tmp___tmd__SetRelayOutputState;
  1181. if (endpoint)
  1182. soap_endpoint = endpoint;
  1183. if (soap_action == NULL)
  1184. soap_action = "http://www.onvif.org/ver10/deviceio/wsdl/SetRelayOutputState";
  1185. soap_begin(soap);
  1186. soap->encodingStyle = NULL;
  1187. soap_tmp___tmd__SetRelayOutputState.tds__SetRelayOutputState = tds__SetRelayOutputState;
  1188. soap_set_version(soap, 2); /* SOAP1.2 */
  1189. soap_serializeheader(soap);
  1190. soap_serialize___tmd__SetRelayOutputState(soap, &soap_tmp___tmd__SetRelayOutputState);
  1191. if (soap_begin_count(soap))
  1192. return soap->error;
  1193. if (soap->mode & SOAP_IO_LENGTH)
  1194. { if (soap_envelope_begin_out(soap)
  1195. || soap_putheader(soap)
  1196. || soap_body_begin_out(soap)
  1197. || soap_put___tmd__SetRelayOutputState(soap, &soap_tmp___tmd__SetRelayOutputState, "-tmd:SetRelayOutputState", NULL)
  1198. || soap_body_end_out(soap)
  1199. || soap_envelope_end_out(soap))
  1200. return soap->error;
  1201. }
  1202. if (soap_end_count(soap))
  1203. return soap->error;
  1204. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  1205. || soap_envelope_begin_out(soap)
  1206. || soap_putheader(soap)
  1207. || soap_body_begin_out(soap)
  1208. || soap_put___tmd__SetRelayOutputState(soap, &soap_tmp___tmd__SetRelayOutputState, "-tmd:SetRelayOutputState", NULL)
  1209. || soap_body_end_out(soap)
  1210. || soap_envelope_end_out(soap)
  1211. || soap_end_send(soap))
  1212. return soap_closesock(soap);
  1213. if (!tds__SetRelayOutputStateResponse)
  1214. return soap_closesock(soap);
  1215. tds__SetRelayOutputStateResponse->soap_default(soap);
  1216. if (soap_begin_recv(soap)
  1217. || soap_envelope_begin_in(soap)
  1218. || soap_recv_header(soap)
  1219. || soap_body_begin_in(soap))
  1220. return soap_closesock(soap);
  1221. tds__SetRelayOutputStateResponse->soap_get(soap, "tds:SetRelayOutputStateResponse", "");
  1222. if (soap->error)
  1223. return soap_recv_fault(soap, 0);
  1224. if (soap_body_end_in(soap)
  1225. || soap_envelope_end_in(soap)
  1226. || soap_end_recv(soap))
  1227. return soap_closesock(soap);
  1228. return soap_closesock(soap);
  1229. }
  1230. int DeviceIOBindingProxy::GetDigitalInputs(const char *endpoint, const char *soap_action, _tmd__GetDigitalInputs *tmd__GetDigitalInputs, _tmd__GetDigitalInputsResponse *tmd__GetDigitalInputsResponse)
  1231. { struct soap *soap = this;
  1232. struct __tmd__GetDigitalInputs soap_tmp___tmd__GetDigitalInputs;
  1233. if (endpoint)
  1234. soap_endpoint = endpoint;
  1235. if (soap_action == NULL)
  1236. soap_action = "http://www.onvif.org/ver10/deviceio/wsdl/GetDigitalInputs";
  1237. soap_begin(soap);
  1238. soap->encodingStyle = NULL;
  1239. soap_tmp___tmd__GetDigitalInputs.tmd__GetDigitalInputs = tmd__GetDigitalInputs;
  1240. soap_set_version(soap, 2); /* SOAP1.2 */
  1241. soap_serializeheader(soap);
  1242. soap_serialize___tmd__GetDigitalInputs(soap, &soap_tmp___tmd__GetDigitalInputs);
  1243. if (soap_begin_count(soap))
  1244. return soap->error;
  1245. if (soap->mode & SOAP_IO_LENGTH)
  1246. { if (soap_envelope_begin_out(soap)
  1247. || soap_putheader(soap)
  1248. || soap_body_begin_out(soap)
  1249. || soap_put___tmd__GetDigitalInputs(soap, &soap_tmp___tmd__GetDigitalInputs, "-tmd:GetDigitalInputs", NULL)
  1250. || soap_body_end_out(soap)
  1251. || soap_envelope_end_out(soap))
  1252. return soap->error;
  1253. }
  1254. if (soap_end_count(soap))
  1255. return soap->error;
  1256. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  1257. || soap_envelope_begin_out(soap)
  1258. || soap_putheader(soap)
  1259. || soap_body_begin_out(soap)
  1260. || soap_put___tmd__GetDigitalInputs(soap, &soap_tmp___tmd__GetDigitalInputs, "-tmd:GetDigitalInputs", NULL)
  1261. || soap_body_end_out(soap)
  1262. || soap_envelope_end_out(soap)
  1263. || soap_end_send(soap))
  1264. return soap_closesock(soap);
  1265. if (!tmd__GetDigitalInputsResponse)
  1266. return soap_closesock(soap);
  1267. tmd__GetDigitalInputsResponse->soap_default(soap);
  1268. if (soap_begin_recv(soap)
  1269. || soap_envelope_begin_in(soap)
  1270. || soap_recv_header(soap)
  1271. || soap_body_begin_in(soap))
  1272. return soap_closesock(soap);
  1273. tmd__GetDigitalInputsResponse->soap_get(soap, "tmd:GetDigitalInputsResponse", "");
  1274. if (soap->error)
  1275. return soap_recv_fault(soap, 0);
  1276. if (soap_body_end_in(soap)
  1277. || soap_envelope_end_in(soap)
  1278. || soap_end_recv(soap))
  1279. return soap_closesock(soap);
  1280. return soap_closesock(soap);
  1281. }
  1282. int DeviceIOBindingProxy::GetSerialPorts(const char *endpoint, const char *soap_action, _tmd__GetSerialPorts *tmd__GetSerialPorts, _tmd__GetSerialPortsResponse *tmd__GetSerialPortsResponse)
  1283. { struct soap *soap = this;
  1284. struct __tmd__GetSerialPorts soap_tmp___tmd__GetSerialPorts;
  1285. if (endpoint)
  1286. soap_endpoint = endpoint;
  1287. if (soap_action == NULL)
  1288. soap_action = "http://www.onvif.org/ver10/deviceio/wsdl/GetSerialPorts";
  1289. soap_begin(soap);
  1290. soap->encodingStyle = NULL;
  1291. soap_tmp___tmd__GetSerialPorts.tmd__GetSerialPorts = tmd__GetSerialPorts;
  1292. soap_set_version(soap, 2); /* SOAP1.2 */
  1293. soap_serializeheader(soap);
  1294. soap_serialize___tmd__GetSerialPorts(soap, &soap_tmp___tmd__GetSerialPorts);
  1295. if (soap_begin_count(soap))
  1296. return soap->error;
  1297. if (soap->mode & SOAP_IO_LENGTH)
  1298. { if (soap_envelope_begin_out(soap)
  1299. || soap_putheader(soap)
  1300. || soap_body_begin_out(soap)
  1301. || soap_put___tmd__GetSerialPorts(soap, &soap_tmp___tmd__GetSerialPorts, "-tmd:GetSerialPorts", NULL)
  1302. || soap_body_end_out(soap)
  1303. || soap_envelope_end_out(soap))
  1304. return soap->error;
  1305. }
  1306. if (soap_end_count(soap))
  1307. return soap->error;
  1308. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  1309. || soap_envelope_begin_out(soap)
  1310. || soap_putheader(soap)
  1311. || soap_body_begin_out(soap)
  1312. || soap_put___tmd__GetSerialPorts(soap, &soap_tmp___tmd__GetSerialPorts, "-tmd:GetSerialPorts", NULL)
  1313. || soap_body_end_out(soap)
  1314. || soap_envelope_end_out(soap)
  1315. || soap_end_send(soap))
  1316. return soap_closesock(soap);
  1317. if (!tmd__GetSerialPortsResponse)
  1318. return soap_closesock(soap);
  1319. tmd__GetSerialPortsResponse->soap_default(soap);
  1320. if (soap_begin_recv(soap)
  1321. || soap_envelope_begin_in(soap)
  1322. || soap_recv_header(soap)
  1323. || soap_body_begin_in(soap))
  1324. return soap_closesock(soap);
  1325. tmd__GetSerialPortsResponse->soap_get(soap, "tmd:GetSerialPortsResponse", "");
  1326. if (soap->error)
  1327. return soap_recv_fault(soap, 0);
  1328. if (soap_body_end_in(soap)
  1329. || soap_envelope_end_in(soap)
  1330. || soap_end_recv(soap))
  1331. return soap_closesock(soap);
  1332. return soap_closesock(soap);
  1333. }
  1334. int DeviceIOBindingProxy::GetSerialPortConfiguration(const char *endpoint, const char *soap_action, _tmd__GetSerialPortConfiguration *tmd__GetSerialPortConfiguration, _tmd__GetSerialPortConfigurationResponse *tmd__GetSerialPortConfigurationResponse)
  1335. { struct soap *soap = this;
  1336. struct __tmd__GetSerialPortConfiguration soap_tmp___tmd__GetSerialPortConfiguration;
  1337. if (endpoint)
  1338. soap_endpoint = endpoint;
  1339. if (soap_action == NULL)
  1340. soap_action = "http://www.onvif.org/ver10/deviceio/wsdl/GetSerialPortConfigurations";
  1341. soap_begin(soap);
  1342. soap->encodingStyle = NULL;
  1343. soap_tmp___tmd__GetSerialPortConfiguration.tmd__GetSerialPortConfiguration = tmd__GetSerialPortConfiguration;
  1344. soap_set_version(soap, 2); /* SOAP1.2 */
  1345. soap_serializeheader(soap);
  1346. soap_serialize___tmd__GetSerialPortConfiguration(soap, &soap_tmp___tmd__GetSerialPortConfiguration);
  1347. if (soap_begin_count(soap))
  1348. return soap->error;
  1349. if (soap->mode & SOAP_IO_LENGTH)
  1350. { if (soap_envelope_begin_out(soap)
  1351. || soap_putheader(soap)
  1352. || soap_body_begin_out(soap)
  1353. || soap_put___tmd__GetSerialPortConfiguration(soap, &soap_tmp___tmd__GetSerialPortConfiguration, "-tmd:GetSerialPortConfiguration", NULL)
  1354. || soap_body_end_out(soap)
  1355. || soap_envelope_end_out(soap))
  1356. return soap->error;
  1357. }
  1358. if (soap_end_count(soap))
  1359. return soap->error;
  1360. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  1361. || soap_envelope_begin_out(soap)
  1362. || soap_putheader(soap)
  1363. || soap_body_begin_out(soap)
  1364. || soap_put___tmd__GetSerialPortConfiguration(soap, &soap_tmp___tmd__GetSerialPortConfiguration, "-tmd:GetSerialPortConfiguration", NULL)
  1365. || soap_body_end_out(soap)
  1366. || soap_envelope_end_out(soap)
  1367. || soap_end_send(soap))
  1368. return soap_closesock(soap);
  1369. if (!tmd__GetSerialPortConfigurationResponse)
  1370. return soap_closesock(soap);
  1371. tmd__GetSerialPortConfigurationResponse->soap_default(soap);
  1372. if (soap_begin_recv(soap)
  1373. || soap_envelope_begin_in(soap)
  1374. || soap_recv_header(soap)
  1375. || soap_body_begin_in(soap))
  1376. return soap_closesock(soap);
  1377. tmd__GetSerialPortConfigurationResponse->soap_get(soap, "tmd:GetSerialPortConfigurationResponse", "");
  1378. if (soap->error)
  1379. return soap_recv_fault(soap, 0);
  1380. if (soap_body_end_in(soap)
  1381. || soap_envelope_end_in(soap)
  1382. || soap_end_recv(soap))
  1383. return soap_closesock(soap);
  1384. return soap_closesock(soap);
  1385. }
  1386. int DeviceIOBindingProxy::SetSerialPortConfiguration(const char *endpoint, const char *soap_action, _tmd__SetSerialPortConfiguration *tmd__SetSerialPortConfiguration, _tmd__SetSerialPortConfigurationResponse *tmd__SetSerialPortConfigurationResponse)
  1387. { struct soap *soap = this;
  1388. struct __tmd__SetSerialPortConfiguration soap_tmp___tmd__SetSerialPortConfiguration;
  1389. if (endpoint)
  1390. soap_endpoint = endpoint;
  1391. if (soap_action == NULL)
  1392. soap_action = "http://www.onvif.org/ver10/deviceio/wsdl/SetSerialPortConfiguration";
  1393. soap_begin(soap);
  1394. soap->encodingStyle = NULL;
  1395. soap_tmp___tmd__SetSerialPortConfiguration.tmd__SetSerialPortConfiguration = tmd__SetSerialPortConfiguration;
  1396. soap_set_version(soap, 2); /* SOAP1.2 */
  1397. soap_serializeheader(soap);
  1398. soap_serialize___tmd__SetSerialPortConfiguration(soap, &soap_tmp___tmd__SetSerialPortConfiguration);
  1399. if (soap_begin_count(soap))
  1400. return soap->error;
  1401. if (soap->mode & SOAP_IO_LENGTH)
  1402. { if (soap_envelope_begin_out(soap)
  1403. || soap_putheader(soap)
  1404. || soap_body_begin_out(soap)
  1405. || soap_put___tmd__SetSerialPortConfiguration(soap, &soap_tmp___tmd__SetSerialPortConfiguration, "-tmd:SetSerialPortConfiguration", NULL)
  1406. || soap_body_end_out(soap)
  1407. || soap_envelope_end_out(soap))
  1408. return soap->error;
  1409. }
  1410. if (soap_end_count(soap))
  1411. return soap->error;
  1412. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  1413. || soap_envelope_begin_out(soap)
  1414. || soap_putheader(soap)
  1415. || soap_body_begin_out(soap)
  1416. || soap_put___tmd__SetSerialPortConfiguration(soap, &soap_tmp___tmd__SetSerialPortConfiguration, "-tmd:SetSerialPortConfiguration", NULL)
  1417. || soap_body_end_out(soap)
  1418. || soap_envelope_end_out(soap)
  1419. || soap_end_send(soap))
  1420. return soap_closesock(soap);
  1421. if (!tmd__SetSerialPortConfigurationResponse)
  1422. return soap_closesock(soap);
  1423. tmd__SetSerialPortConfigurationResponse->soap_default(soap);
  1424. if (soap_begin_recv(soap)
  1425. || soap_envelope_begin_in(soap)
  1426. || soap_recv_header(soap)
  1427. || soap_body_begin_in(soap))
  1428. return soap_closesock(soap);
  1429. tmd__SetSerialPortConfigurationResponse->soap_get(soap, "tmd:SetSerialPortConfigurationResponse", "");
  1430. if (soap->error)
  1431. return soap_recv_fault(soap, 0);
  1432. if (soap_body_end_in(soap)
  1433. || soap_envelope_end_in(soap)
  1434. || soap_end_recv(soap))
  1435. return soap_closesock(soap);
  1436. return soap_closesock(soap);
  1437. }
  1438. int DeviceIOBindingProxy::GetSerialPortConfigurationOptions(const char *endpoint, const char *soap_action, _tmd__GetSerialPortConfigurationOptions *tmd__GetSerialPortConfigurationOptions, _tmd__GetSerialPortConfigurationOptionsResponse *tmd__GetSerialPortConfigurationOptionsResponse)
  1439. { struct soap *soap = this;
  1440. struct __tmd__GetSerialPortConfigurationOptions soap_tmp___tmd__GetSerialPortConfigurationOptions;
  1441. if (endpoint)
  1442. soap_endpoint = endpoint;
  1443. if (soap_action == NULL)
  1444. soap_action = "http://www.onvif.org/ver10/deviceio/wsdl/GetSerialPortConfigurationOptions";
  1445. soap_begin(soap);
  1446. soap->encodingStyle = NULL;
  1447. soap_tmp___tmd__GetSerialPortConfigurationOptions.tmd__GetSerialPortConfigurationOptions = tmd__GetSerialPortConfigurationOptions;
  1448. soap_set_version(soap, 2); /* SOAP1.2 */
  1449. soap_serializeheader(soap);
  1450. soap_serialize___tmd__GetSerialPortConfigurationOptions(soap, &soap_tmp___tmd__GetSerialPortConfigurationOptions);
  1451. if (soap_begin_count(soap))
  1452. return soap->error;
  1453. if (soap->mode & SOAP_IO_LENGTH)
  1454. { if (soap_envelope_begin_out(soap)
  1455. || soap_putheader(soap)
  1456. || soap_body_begin_out(soap)
  1457. || soap_put___tmd__GetSerialPortConfigurationOptions(soap, &soap_tmp___tmd__GetSerialPortConfigurationOptions, "-tmd:GetSerialPortConfigurationOptions", NULL)
  1458. || soap_body_end_out(soap)
  1459. || soap_envelope_end_out(soap))
  1460. return soap->error;
  1461. }
  1462. if (soap_end_count(soap))
  1463. return soap->error;
  1464. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  1465. || soap_envelope_begin_out(soap)
  1466. || soap_putheader(soap)
  1467. || soap_body_begin_out(soap)
  1468. || soap_put___tmd__GetSerialPortConfigurationOptions(soap, &soap_tmp___tmd__GetSerialPortConfigurationOptions, "-tmd:GetSerialPortConfigurationOptions", NULL)
  1469. || soap_body_end_out(soap)
  1470. || soap_envelope_end_out(soap)
  1471. || soap_end_send(soap))
  1472. return soap_closesock(soap);
  1473. if (!tmd__GetSerialPortConfigurationOptionsResponse)
  1474. return soap_closesock(soap);
  1475. tmd__GetSerialPortConfigurationOptionsResponse->soap_default(soap);
  1476. if (soap_begin_recv(soap)
  1477. || soap_envelope_begin_in(soap)
  1478. || soap_recv_header(soap)
  1479. || soap_body_begin_in(soap))
  1480. return soap_closesock(soap);
  1481. tmd__GetSerialPortConfigurationOptionsResponse->soap_get(soap, "tmd:GetSerialPortConfigurationOptionsResponse", "");
  1482. if (soap->error)
  1483. return soap_recv_fault(soap, 0);
  1484. if (soap_body_end_in(soap)
  1485. || soap_envelope_end_in(soap)
  1486. || soap_end_recv(soap))
  1487. return soap_closesock(soap);
  1488. return soap_closesock(soap);
  1489. }
  1490. int DeviceIOBindingProxy::SendReceiveSerialCommand(const char *endpoint, const char *soap_action, _tmd__SendReceiveSerialCommand *tmd__SendReceiveSerialCommand, _tmd__SendReceiveSerialCommandResponse *tmd__SendReceiveSerialCommandResponse)
  1491. { struct soap *soap = this;
  1492. struct __tmd__SendReceiveSerialCommand soap_tmp___tmd__SendReceiveSerialCommand;
  1493. if (endpoint)
  1494. soap_endpoint = endpoint;
  1495. if (soap_action == NULL)
  1496. soap_action = "http://www.onvif.org/ver10/deviceio/wsdl/SendReceiveSerialCommand";
  1497. soap_begin(soap);
  1498. soap->encodingStyle = NULL;
  1499. soap_tmp___tmd__SendReceiveSerialCommand.tmd__SendReceiveSerialCommand = tmd__SendReceiveSerialCommand;
  1500. soap_set_version(soap, 2); /* SOAP1.2 */
  1501. soap_serializeheader(soap);
  1502. soap_serialize___tmd__SendReceiveSerialCommand(soap, &soap_tmp___tmd__SendReceiveSerialCommand);
  1503. if (soap_begin_count(soap))
  1504. return soap->error;
  1505. if (soap->mode & SOAP_IO_LENGTH)
  1506. { if (soap_envelope_begin_out(soap)
  1507. || soap_putheader(soap)
  1508. || soap_body_begin_out(soap)
  1509. || soap_put___tmd__SendReceiveSerialCommand(soap, &soap_tmp___tmd__SendReceiveSerialCommand, "-tmd:SendReceiveSerialCommand", NULL)
  1510. || soap_body_end_out(soap)
  1511. || soap_envelope_end_out(soap))
  1512. return soap->error;
  1513. }
  1514. if (soap_end_count(soap))
  1515. return soap->error;
  1516. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  1517. || soap_envelope_begin_out(soap)
  1518. || soap_putheader(soap)
  1519. || soap_body_begin_out(soap)
  1520. || soap_put___tmd__SendReceiveSerialCommand(soap, &soap_tmp___tmd__SendReceiveSerialCommand, "-tmd:SendReceiveSerialCommand", NULL)
  1521. || soap_body_end_out(soap)
  1522. || soap_envelope_end_out(soap)
  1523. || soap_end_send(soap))
  1524. return soap_closesock(soap);
  1525. if (!tmd__SendReceiveSerialCommandResponse)
  1526. return soap_closesock(soap);
  1527. tmd__SendReceiveSerialCommandResponse->soap_default(soap);
  1528. if (soap_begin_recv(soap)
  1529. || soap_envelope_begin_in(soap)
  1530. || soap_recv_header(soap)
  1531. || soap_body_begin_in(soap))
  1532. return soap_closesock(soap);
  1533. tmd__SendReceiveSerialCommandResponse->soap_get(soap, "tmd:SendReceiveSerialCommandResponse", "");
  1534. if (soap->error)
  1535. return soap_recv_fault(soap, 0);
  1536. if (soap_body_end_in(soap)
  1537. || soap_envelope_end_in(soap)
  1538. || soap_end_recv(soap))
  1539. return soap_closesock(soap);
  1540. return soap_closesock(soap);
  1541. }
  1542. /* End of client proxy code */