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.

1182 lines
46 KiB

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /* soapPullPointSubscriptionBindingProxy.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 "soapPullPointSubscriptionBindingProxy.h"
  10. PullPointSubscriptionBindingProxy::PullPointSubscriptionBindingProxy()
  11. { PullPointSubscriptionBindingProxy_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
  12. }
  13. PullPointSubscriptionBindingProxy::PullPointSubscriptionBindingProxy(const struct soap &_soap) : soap(_soap)
  14. { }
  15. PullPointSubscriptionBindingProxy::PullPointSubscriptionBindingProxy(const char *url)
  16. { PullPointSubscriptionBindingProxy_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
  17. soap_endpoint = url;
  18. }
  19. PullPointSubscriptionBindingProxy::PullPointSubscriptionBindingProxy(soap_mode iomode)
  20. { PullPointSubscriptionBindingProxy_init(iomode, iomode);
  21. }
  22. PullPointSubscriptionBindingProxy::PullPointSubscriptionBindingProxy(const char *url, soap_mode iomode)
  23. { PullPointSubscriptionBindingProxy_init(iomode, iomode);
  24. soap_endpoint = url;
  25. }
  26. PullPointSubscriptionBindingProxy::PullPointSubscriptionBindingProxy(soap_mode imode, soap_mode omode)
  27. { PullPointSubscriptionBindingProxy_init(imode, omode);
  28. }
  29. PullPointSubscriptionBindingProxy::~PullPointSubscriptionBindingProxy()
  30. { }
  31. void PullPointSubscriptionBindingProxy::PullPointSubscriptionBindingProxy_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 PullPointSubscriptionBindingProxy::destroy()
  75. { soap_destroy(this);
  76. soap_end(this);
  77. }
  78. void PullPointSubscriptionBindingProxy::reset()
  79. { destroy();
  80. soap_done(this);
  81. soap_initialize(this);
  82. PullPointSubscriptionBindingProxy_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
  83. }
  84. void PullPointSubscriptionBindingProxy::soap_noheader()
  85. { this->header = NULL;
  86. }
  87. void PullPointSubscriptionBindingProxy::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 *PullPointSubscriptionBindingProxy::soap_header()
  108. { return this->header;
  109. }
  110. const SOAP_ENV__Fault *PullPointSubscriptionBindingProxy::soap_fault()
  111. { return this->fault;
  112. }
  113. const char *PullPointSubscriptionBindingProxy::soap_fault_string()
  114. { return *soap_faultstring(this);
  115. }
  116. const char *PullPointSubscriptionBindingProxy::soap_fault_detail()
  117. { return *soap_faultdetail(this);
  118. }
  119. int PullPointSubscriptionBindingProxy::soap_close_socket()
  120. { return soap_closesock(this);
  121. }
  122. int PullPointSubscriptionBindingProxy::soap_force_close_socket()
  123. { return soap_force_closesock(this);
  124. }
  125. void PullPointSubscriptionBindingProxy::soap_print_fault(FILE *fd)
  126. { ::soap_print_fault(this, fd);
  127. }
  128. #ifndef WITH_LEAN
  129. #ifndef WITH_COMPAT
  130. void PullPointSubscriptionBindingProxy::soap_stream_fault(std::ostream& os)
  131. { ::soap_stream_fault(this, os);
  132. }
  133. #endif
  134. char *PullPointSubscriptionBindingProxy::soap_sprint_fault(char *buf, size_t len)
  135. { return ::soap_sprint_fault(this, buf, len);
  136. }
  137. #endif
  138. int PullPointSubscriptionBindingProxy::PullMessages(const char *endpoint, const char *soap_action, _tev__PullMessages *tev__PullMessages, _tev__PullMessagesResponse *tev__PullMessagesResponse)
  139. { struct soap *soap = this;
  140. struct __tev__PullMessages soap_tmp___tev__PullMessages;
  141. if (endpoint)
  142. soap_endpoint = endpoint;
  143. if (soap_action == NULL)
  144. soap_action = "http://www.onvif.org/ver10/events/wsdl/PullPointSubscription/PullMessagesRequest";
  145. soap_begin(soap);
  146. soap->encodingStyle = NULL;
  147. soap_tmp___tev__PullMessages.tev__PullMessages = tev__PullMessages;
  148. soap_set_version(soap, 2); /* SOAP1.2 */
  149. soap_serializeheader(soap);
  150. soap_serialize___tev__PullMessages(soap, &soap_tmp___tev__PullMessages);
  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___tev__PullMessages(soap, &soap_tmp___tev__PullMessages, "-tev:PullMessages", 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___tev__PullMessages(soap, &soap_tmp___tev__PullMessages, "-tev:PullMessages", 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 (!tev__PullMessagesResponse)
  174. return soap_closesock(soap);
  175. tev__PullMessagesResponse->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. tev__PullMessagesResponse->soap_get(soap, "tev:PullMessagesResponse", "");
  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 PullPointSubscriptionBindingProxy::Seek(const char *endpoint, const char *soap_action, _tev__Seek *tev__Seek, _tev__SeekResponse *tev__SeekResponse)
  191. { struct soap *soap = this;
  192. struct __tev__Seek soap_tmp___tev__Seek;
  193. if (endpoint)
  194. soap_endpoint = endpoint;
  195. if (soap_action == NULL)
  196. soap_action = "http://www.onvif.org/ver10/events/wsdl/PullPointSubscription/SeekRequest";
  197. soap_begin(soap);
  198. soap->encodingStyle = NULL;
  199. soap_tmp___tev__Seek.tev__Seek = tev__Seek;
  200. soap_set_version(soap, 2); /* SOAP1.2 */
  201. soap_serializeheader(soap);
  202. soap_serialize___tev__Seek(soap, &soap_tmp___tev__Seek);
  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___tev__Seek(soap, &soap_tmp___tev__Seek, "-tev:Seek", 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___tev__Seek(soap, &soap_tmp___tev__Seek, "-tev:Seek", 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 (!tev__SeekResponse)
  226. return soap_closesock(soap);
  227. tev__SeekResponse->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. tev__SeekResponse->soap_get(soap, "tev:SeekResponse", "");
  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 PullPointSubscriptionBindingProxy::SetSynchronizationPoint(const char *endpoint, const char *soap_action, _tev__SetSynchronizationPoint *tev__SetSynchronizationPoint, _tev__SetSynchronizationPointResponse *tev__SetSynchronizationPointResponse)
  243. { struct soap *soap = this;
  244. struct __tev__SetSynchronizationPoint soap_tmp___tev__SetSynchronizationPoint;
  245. if (endpoint)
  246. soap_endpoint = endpoint;
  247. if (soap_action == NULL)
  248. soap_action = "http://www.onvif.org/ver10/events/wsdl/PullPointSubscription/SetSynchronizationPointRequest";
  249. soap_begin(soap);
  250. soap->encodingStyle = NULL;
  251. soap_tmp___tev__SetSynchronizationPoint.tev__SetSynchronizationPoint = tev__SetSynchronizationPoint;
  252. soap_set_version(soap, 2); /* SOAP1.2 */
  253. soap_serializeheader(soap);
  254. soap_serialize___tev__SetSynchronizationPoint(soap, &soap_tmp___tev__SetSynchronizationPoint);
  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___tev__SetSynchronizationPoint(soap, &soap_tmp___tev__SetSynchronizationPoint, "-tev:SetSynchronizationPoint", 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___tev__SetSynchronizationPoint(soap, &soap_tmp___tev__SetSynchronizationPoint, "-tev:SetSynchronizationPoint", 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 (!tev__SetSynchronizationPointResponse)
  278. return soap_closesock(soap);
  279. tev__SetSynchronizationPointResponse->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. tev__SetSynchronizationPointResponse->soap_get(soap, "tev:SetSynchronizationPointResponse", "");
  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 PullPointSubscriptionBindingProxy::GetServiceCapabilities(const char *endpoint, const char *soap_action, _tev__GetServiceCapabilities *tev__GetServiceCapabilities, _tev__GetServiceCapabilitiesResponse *tev__GetServiceCapabilitiesResponse)
  295. { struct soap *soap = this;
  296. struct __tev__GetServiceCapabilities soap_tmp___tev__GetServiceCapabilities;
  297. if (endpoint)
  298. soap_endpoint = endpoint;
  299. if (soap_action == NULL)
  300. soap_action = "http://www.onvif.org/ver10/events/wsdl/EventPortType/GetServiceCapabilities";
  301. soap_begin(soap);
  302. soap->encodingStyle = NULL;
  303. soap_tmp___tev__GetServiceCapabilities.tev__GetServiceCapabilities = tev__GetServiceCapabilities;
  304. soap_set_version(soap, 2); /* SOAP1.2 */
  305. soap_serializeheader(soap);
  306. soap_serialize___tev__GetServiceCapabilities(soap, &soap_tmp___tev__GetServiceCapabilities);
  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___tev__GetServiceCapabilities(soap, &soap_tmp___tev__GetServiceCapabilities, "-tev:GetServiceCapabilities", 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___tev__GetServiceCapabilities(soap, &soap_tmp___tev__GetServiceCapabilities, "-tev:GetServiceCapabilities", 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 (!tev__GetServiceCapabilitiesResponse)
  330. return soap_closesock(soap);
  331. tev__GetServiceCapabilitiesResponse->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. tev__GetServiceCapabilitiesResponse->soap_get(soap, "tev:GetServiceCapabilitiesResponse", "");
  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 PullPointSubscriptionBindingProxy::CreatePullPointSubscription(const char *endpoint, const char *soap_action, _tev__CreatePullPointSubscription *tev__CreatePullPointSubscription, _tev__CreatePullPointSubscriptionResponse *tev__CreatePullPointSubscriptionResponse)
  347. { struct soap *soap = this;
  348. struct __tev__CreatePullPointSubscription soap_tmp___tev__CreatePullPointSubscription;
  349. if (endpoint)
  350. soap_endpoint = endpoint;
  351. if (soap_action == NULL)
  352. soap_action = "http://www.onvif.org/ver10/events/wsdl/EventPortType/CreatePullPointSubscriptionRequest";
  353. soap_begin(soap);
  354. soap->encodingStyle = NULL;
  355. soap_tmp___tev__CreatePullPointSubscription.tev__CreatePullPointSubscription = tev__CreatePullPointSubscription;
  356. soap_set_version(soap, 2); /* SOAP1.2 */
  357. soap_serializeheader(soap);
  358. soap_serialize___tev__CreatePullPointSubscription(soap, &soap_tmp___tev__CreatePullPointSubscription);
  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___tev__CreatePullPointSubscription(soap, &soap_tmp___tev__CreatePullPointSubscription, "-tev:CreatePullPointSubscription", 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___tev__CreatePullPointSubscription(soap, &soap_tmp___tev__CreatePullPointSubscription, "-tev:CreatePullPointSubscription", 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 (!tev__CreatePullPointSubscriptionResponse)
  382. return soap_closesock(soap);
  383. tev__CreatePullPointSubscriptionResponse->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. tev__CreatePullPointSubscriptionResponse->soap_get(soap, "tev:CreatePullPointSubscriptionResponse", "");
  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 PullPointSubscriptionBindingProxy::GetEventProperties(const char *endpoint, const char *soap_action, _tev__GetEventProperties *tev__GetEventProperties, _tev__GetEventPropertiesResponse *tev__GetEventPropertiesResponse)
  399. { struct soap *soap = this;
  400. struct __tev__GetEventProperties soap_tmp___tev__GetEventProperties;
  401. if (endpoint)
  402. soap_endpoint = endpoint;
  403. if (soap_action == NULL)
  404. soap_action = "http://www.onvif.org/ver10/events/wsdl/EventPortType/GetEventPropertiesRequest";
  405. soap_begin(soap);
  406. soap->encodingStyle = NULL;
  407. soap_tmp___tev__GetEventProperties.tev__GetEventProperties = tev__GetEventProperties;
  408. soap_set_version(soap, 2); /* SOAP1.2 */
  409. soap_serializeheader(soap);
  410. soap_serialize___tev__GetEventProperties(soap, &soap_tmp___tev__GetEventProperties);
  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___tev__GetEventProperties(soap, &soap_tmp___tev__GetEventProperties, "-tev:GetEventProperties", 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___tev__GetEventProperties(soap, &soap_tmp___tev__GetEventProperties, "-tev:GetEventProperties", 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 (!tev__GetEventPropertiesResponse)
  434. return soap_closesock(soap);
  435. tev__GetEventPropertiesResponse->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. tev__GetEventPropertiesResponse->soap_get(soap, "tev:GetEventPropertiesResponse", "");
  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 PullPointSubscriptionBindingProxy::Renew(const char *endpoint, const char *soap_action, _wsnt__Renew *wsnt__Renew, _wsnt__RenewResponse *wsnt__RenewResponse)
  451. { struct soap *soap = this;
  452. struct __tev__Renew soap_tmp___tev__Renew;
  453. if (endpoint)
  454. soap_endpoint = endpoint;
  455. if (soap_action == NULL)
  456. soap_action = "http://docs.oasis-open.org/wsn/bw-2/SubscriptionManager/RenewRequest";
  457. soap_begin(soap);
  458. soap->encodingStyle = NULL;
  459. soap_tmp___tev__Renew.wsnt__Renew = wsnt__Renew;
  460. soap_set_version(soap, 2); /* SOAP1.2 */
  461. soap_serializeheader(soap);
  462. soap_serialize___tev__Renew(soap, &soap_tmp___tev__Renew);
  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___tev__Renew(soap, &soap_tmp___tev__Renew, "-tev:Renew", 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___tev__Renew(soap, &soap_tmp___tev__Renew, "-tev:Renew", 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 (!wsnt__RenewResponse)
  486. return soap_closesock(soap);
  487. wsnt__RenewResponse->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. wsnt__RenewResponse->soap_get(soap, "wsnt:RenewResponse", "");
  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 PullPointSubscriptionBindingProxy::Unsubscribe(const char *endpoint, const char *soap_action, _wsnt__Unsubscribe *wsnt__Unsubscribe, _wsnt__UnsubscribeResponse *wsnt__UnsubscribeResponse)
  503. { struct soap *soap = this;
  504. struct __tev__Unsubscribe soap_tmp___tev__Unsubscribe;
  505. if (endpoint)
  506. soap_endpoint = endpoint;
  507. if (soap_action == NULL)
  508. soap_action = "http://docs.oasis-open.org/wsn/bw-2/SubscriptionManager/UnsubscribeRequest";
  509. soap_begin(soap);
  510. soap->encodingStyle = NULL;
  511. soap_tmp___tev__Unsubscribe.wsnt__Unsubscribe = wsnt__Unsubscribe;
  512. soap_set_version(soap, 2); /* SOAP1.2 */
  513. soap_serializeheader(soap);
  514. soap_serialize___tev__Unsubscribe(soap, &soap_tmp___tev__Unsubscribe);
  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___tev__Unsubscribe(soap, &soap_tmp___tev__Unsubscribe, "-tev:Unsubscribe", 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___tev__Unsubscribe(soap, &soap_tmp___tev__Unsubscribe, "-tev:Unsubscribe", 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 (!wsnt__UnsubscribeResponse)
  538. return soap_closesock(soap);
  539. wsnt__UnsubscribeResponse->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. wsnt__UnsubscribeResponse->soap_get(soap, "wsnt:UnsubscribeResponse", "");
  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 PullPointSubscriptionBindingProxy::Subscribe(const char *endpoint, const char *soap_action, _wsnt__Subscribe *wsnt__Subscribe, _wsnt__SubscribeResponse *wsnt__SubscribeResponse)
  555. { struct soap *soap = this;
  556. struct __tev__Subscribe soap_tmp___tev__Subscribe;
  557. if (endpoint)
  558. soap_endpoint = endpoint;
  559. if (soap_action == NULL)
  560. soap_action = "http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/SubscribeRequest";
  561. soap_begin(soap);
  562. soap->encodingStyle = NULL;
  563. soap_tmp___tev__Subscribe.wsnt__Subscribe = wsnt__Subscribe;
  564. soap_set_version(soap, 2); /* SOAP1.2 */
  565. soap_serializeheader(soap);
  566. soap_serialize___tev__Subscribe(soap, &soap_tmp___tev__Subscribe);
  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___tev__Subscribe(soap, &soap_tmp___tev__Subscribe, "-tev:Subscribe", 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___tev__Subscribe(soap, &soap_tmp___tev__Subscribe, "-tev:Subscribe", 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 (!wsnt__SubscribeResponse)
  590. return soap_closesock(soap);
  591. wsnt__SubscribeResponse->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. wsnt__SubscribeResponse->soap_get(soap, "wsnt:SubscribeResponse", "");
  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 PullPointSubscriptionBindingProxy::GetCurrentMessage(const char *endpoint, const char *soap_action, _wsnt__GetCurrentMessage *wsnt__GetCurrentMessage, _wsnt__GetCurrentMessageResponse *wsnt__GetCurrentMessageResponse)
  607. { struct soap *soap = this;
  608. struct __tev__GetCurrentMessage soap_tmp___tev__GetCurrentMessage;
  609. if (endpoint)
  610. soap_endpoint = endpoint;
  611. if (soap_action == NULL)
  612. soap_action = "http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/GetCurrentMessageRequest";
  613. soap_begin(soap);
  614. soap->encodingStyle = NULL;
  615. soap_tmp___tev__GetCurrentMessage.wsnt__GetCurrentMessage = wsnt__GetCurrentMessage;
  616. soap_set_version(soap, 2); /* SOAP1.2 */
  617. soap_serializeheader(soap);
  618. soap_serialize___tev__GetCurrentMessage(soap, &soap_tmp___tev__GetCurrentMessage);
  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___tev__GetCurrentMessage(soap, &soap_tmp___tev__GetCurrentMessage, "-tev:GetCurrentMessage", 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___tev__GetCurrentMessage(soap, &soap_tmp___tev__GetCurrentMessage, "-tev:GetCurrentMessage", 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 (!wsnt__GetCurrentMessageResponse)
  642. return soap_closesock(soap);
  643. wsnt__GetCurrentMessageResponse->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. wsnt__GetCurrentMessageResponse->soap_get(soap, "wsnt:GetCurrentMessageResponse", "");
  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 PullPointSubscriptionBindingProxy::send_Notify(const char *endpoint, const char *soap_action, _wsnt__Notify *wsnt__Notify)
  659. { struct soap *soap = this;
  660. struct __tev__Notify soap_tmp___tev__Notify;
  661. if (endpoint)
  662. soap_endpoint = endpoint;
  663. if (soap_action == NULL)
  664. soap_action = "http://docs.oasis-open.org/wsn/bw-2/NotificationConsumer/Notify";
  665. soap_begin(soap);
  666. soap->encodingStyle = NULL;
  667. soap_tmp___tev__Notify.wsnt__Notify = wsnt__Notify;
  668. soap_set_version(soap, 2); /* SOAP1.2 */
  669. soap_serializeheader(soap);
  670. soap_serialize___tev__Notify(soap, &soap_tmp___tev__Notify);
  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___tev__Notify(soap, &soap_tmp___tev__Notify, "-tev:Notify", 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___tev__Notify(soap, &soap_tmp___tev__Notify, "-tev:Notify", NULL)
  689. || soap_body_end_out(soap)
  690. || soap_envelope_end_out(soap)
  691. || soap_end_send(soap))
  692. return soap_closesock(soap);
  693. return SOAP_OK;
  694. }
  695. int PullPointSubscriptionBindingProxy::recv_Notify(struct __tev__Notify& tmp)
  696. { struct soap *soap = this;
  697. struct __tev__Notify *_param_9 = &tmp;
  698. soap_default___tev__Notify(soap, _param_9);
  699. soap_begin(soap);
  700. if (soap_begin_recv(soap)
  701. || soap_envelope_begin_in(soap)
  702. || soap_recv_header(soap)
  703. || soap_body_begin_in(soap))
  704. return soap_closesock(soap);
  705. soap_get___tev__Notify(soap, _param_9, "-tev:Notify", NULL);
  706. if (soap->error == SOAP_TAG_MISMATCH && soap->level == 2)
  707. soap->error = SOAP_OK;
  708. if (soap->error
  709. || soap_body_end_in(soap)
  710. || soap_envelope_end_in(soap)
  711. || soap_end_recv(soap))
  712. return soap_closesock(soap);
  713. return soap_closesock(soap);
  714. }
  715. int PullPointSubscriptionBindingProxy::GetMessages(const char *endpoint, const char *soap_action, _wsnt__GetMessages *wsnt__GetMessages, _wsnt__GetMessagesResponse *wsnt__GetMessagesResponse)
  716. { struct soap *soap = this;
  717. struct __tev__GetMessages soap_tmp___tev__GetMessages;
  718. if (endpoint)
  719. soap_endpoint = endpoint;
  720. if (soap_action == NULL)
  721. soap_action = "http://docs.oasis-open.org/wsn/bw-2/PullPoint/GetMessagesRequest";
  722. soap_begin(soap);
  723. soap->encodingStyle = NULL;
  724. soap_tmp___tev__GetMessages.wsnt__GetMessages = wsnt__GetMessages;
  725. soap_set_version(soap, 2); /* SOAP1.2 */
  726. soap_serializeheader(soap);
  727. soap_serialize___tev__GetMessages(soap, &soap_tmp___tev__GetMessages);
  728. if (soap_begin_count(soap))
  729. return soap->error;
  730. if (soap->mode & SOAP_IO_LENGTH)
  731. { if (soap_envelope_begin_out(soap)
  732. || soap_putheader(soap)
  733. || soap_body_begin_out(soap)
  734. || soap_put___tev__GetMessages(soap, &soap_tmp___tev__GetMessages, "-tev:GetMessages", NULL)
  735. || soap_body_end_out(soap)
  736. || soap_envelope_end_out(soap))
  737. return soap->error;
  738. }
  739. if (soap_end_count(soap))
  740. return soap->error;
  741. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  742. || soap_envelope_begin_out(soap)
  743. || soap_putheader(soap)
  744. || soap_body_begin_out(soap)
  745. || soap_put___tev__GetMessages(soap, &soap_tmp___tev__GetMessages, "-tev:GetMessages", NULL)
  746. || soap_body_end_out(soap)
  747. || soap_envelope_end_out(soap)
  748. || soap_end_send(soap))
  749. return soap_closesock(soap);
  750. if (!wsnt__GetMessagesResponse)
  751. return soap_closesock(soap);
  752. wsnt__GetMessagesResponse->soap_default(soap);
  753. if (soap_begin_recv(soap)
  754. || soap_envelope_begin_in(soap)
  755. || soap_recv_header(soap)
  756. || soap_body_begin_in(soap))
  757. return soap_closesock(soap);
  758. wsnt__GetMessagesResponse->soap_get(soap, "wsnt:GetMessagesResponse", "");
  759. if (soap->error)
  760. return soap_recv_fault(soap, 0);
  761. if (soap_body_end_in(soap)
  762. || soap_envelope_end_in(soap)
  763. || soap_end_recv(soap))
  764. return soap_closesock(soap);
  765. return soap_closesock(soap);
  766. }
  767. int PullPointSubscriptionBindingProxy::DestroyPullPoint(const char *endpoint, const char *soap_action, _wsnt__DestroyPullPoint *wsnt__DestroyPullPoint, _wsnt__DestroyPullPointResponse *wsnt__DestroyPullPointResponse)
  768. { struct soap *soap = this;
  769. struct __tev__DestroyPullPoint soap_tmp___tev__DestroyPullPoint;
  770. if (endpoint)
  771. soap_endpoint = endpoint;
  772. if (soap_action == NULL)
  773. soap_action = "http://docs.oasis-open.org/wsn/bw-2/PullPoint/DestroyPullPointRequest";
  774. soap_begin(soap);
  775. soap->encodingStyle = NULL;
  776. soap_tmp___tev__DestroyPullPoint.wsnt__DestroyPullPoint = wsnt__DestroyPullPoint;
  777. soap_set_version(soap, 2); /* SOAP1.2 */
  778. soap_serializeheader(soap);
  779. soap_serialize___tev__DestroyPullPoint(soap, &soap_tmp___tev__DestroyPullPoint);
  780. if (soap_begin_count(soap))
  781. return soap->error;
  782. if (soap->mode & SOAP_IO_LENGTH)
  783. { if (soap_envelope_begin_out(soap)
  784. || soap_putheader(soap)
  785. || soap_body_begin_out(soap)
  786. || soap_put___tev__DestroyPullPoint(soap, &soap_tmp___tev__DestroyPullPoint, "-tev:DestroyPullPoint", NULL)
  787. || soap_body_end_out(soap)
  788. || soap_envelope_end_out(soap))
  789. return soap->error;
  790. }
  791. if (soap_end_count(soap))
  792. return soap->error;
  793. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  794. || soap_envelope_begin_out(soap)
  795. || soap_putheader(soap)
  796. || soap_body_begin_out(soap)
  797. || soap_put___tev__DestroyPullPoint(soap, &soap_tmp___tev__DestroyPullPoint, "-tev:DestroyPullPoint", NULL)
  798. || soap_body_end_out(soap)
  799. || soap_envelope_end_out(soap)
  800. || soap_end_send(soap))
  801. return soap_closesock(soap);
  802. if (!wsnt__DestroyPullPointResponse)
  803. return soap_closesock(soap);
  804. wsnt__DestroyPullPointResponse->soap_default(soap);
  805. if (soap_begin_recv(soap)
  806. || soap_envelope_begin_in(soap)
  807. || soap_recv_header(soap)
  808. || soap_body_begin_in(soap))
  809. return soap_closesock(soap);
  810. wsnt__DestroyPullPointResponse->soap_get(soap, "wsnt:DestroyPullPointResponse", "");
  811. if (soap->error)
  812. return soap_recv_fault(soap, 0);
  813. if (soap_body_end_in(soap)
  814. || soap_envelope_end_in(soap)
  815. || soap_end_recv(soap))
  816. return soap_closesock(soap);
  817. return soap_closesock(soap);
  818. }
  819. int PullPointSubscriptionBindingProxy::send_Notify_(const char *endpoint, const char *soap_action, _wsnt__Notify *wsnt__Notify)
  820. { struct soap *soap = this;
  821. struct __tev__Notify_ soap_tmp___tev__Notify_;
  822. if (endpoint)
  823. soap_endpoint = endpoint;
  824. if (soap_action == NULL)
  825. soap_action = "http://docs.oasis-open.org/wsn/bw-2/PullPoint/Notify";
  826. soap_begin(soap);
  827. soap->encodingStyle = NULL;
  828. soap_tmp___tev__Notify_.wsnt__Notify = wsnt__Notify;
  829. soap_set_version(soap, 2); /* SOAP1.2 */
  830. soap_serializeheader(soap);
  831. soap_serialize___tev__Notify_(soap, &soap_tmp___tev__Notify_);
  832. if (soap_begin_count(soap))
  833. return soap->error;
  834. if (soap->mode & SOAP_IO_LENGTH)
  835. { if (soap_envelope_begin_out(soap)
  836. || soap_putheader(soap)
  837. || soap_body_begin_out(soap)
  838. || soap_put___tev__Notify_(soap, &soap_tmp___tev__Notify_, "-tev:Notify", NULL)
  839. || soap_body_end_out(soap)
  840. || soap_envelope_end_out(soap))
  841. return soap->error;
  842. }
  843. if (soap_end_count(soap))
  844. return soap->error;
  845. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  846. || soap_envelope_begin_out(soap)
  847. || soap_putheader(soap)
  848. || soap_body_begin_out(soap)
  849. || soap_put___tev__Notify_(soap, &soap_tmp___tev__Notify_, "-tev:Notify", NULL)
  850. || soap_body_end_out(soap)
  851. || soap_envelope_end_out(soap)
  852. || soap_end_send(soap))
  853. return soap_closesock(soap);
  854. return SOAP_OK;
  855. }
  856. int PullPointSubscriptionBindingProxy::recv_Notify_(struct __tev__Notify_& tmp)
  857. { struct soap *soap = this;
  858. struct __tev__Notify_ *_param_10 = &tmp;
  859. soap_default___tev__Notify_(soap, _param_10);
  860. soap_begin(soap);
  861. if (soap_begin_recv(soap)
  862. || soap_envelope_begin_in(soap)
  863. || soap_recv_header(soap)
  864. || soap_body_begin_in(soap))
  865. return soap_closesock(soap);
  866. soap_get___tev__Notify_(soap, _param_10, "-tev:Notify", NULL);
  867. if (soap->error == SOAP_TAG_MISMATCH && soap->level == 2)
  868. soap->error = SOAP_OK;
  869. if (soap->error
  870. || soap_body_end_in(soap)
  871. || soap_envelope_end_in(soap)
  872. || soap_end_recv(soap))
  873. return soap_closesock(soap);
  874. return soap_closesock(soap);
  875. }
  876. int PullPointSubscriptionBindingProxy::CreatePullPoint(const char *endpoint, const char *soap_action, _wsnt__CreatePullPoint *wsnt__CreatePullPoint, _wsnt__CreatePullPointResponse *wsnt__CreatePullPointResponse)
  877. { struct soap *soap = this;
  878. struct __tev__CreatePullPoint soap_tmp___tev__CreatePullPoint;
  879. if (endpoint)
  880. soap_endpoint = endpoint;
  881. if (soap_action == NULL)
  882. soap_action = "http://docs.oasis-open.org/wsn/bw-2/CreatePullPoint/CreatePullPointRequest";
  883. soap_begin(soap);
  884. soap->encodingStyle = NULL;
  885. soap_tmp___tev__CreatePullPoint.wsnt__CreatePullPoint = wsnt__CreatePullPoint;
  886. soap_set_version(soap, 2); /* SOAP1.2 */
  887. soap_serializeheader(soap);
  888. soap_serialize___tev__CreatePullPoint(soap, &soap_tmp___tev__CreatePullPoint);
  889. if (soap_begin_count(soap))
  890. return soap->error;
  891. if (soap->mode & SOAP_IO_LENGTH)
  892. { if (soap_envelope_begin_out(soap)
  893. || soap_putheader(soap)
  894. || soap_body_begin_out(soap)
  895. || soap_put___tev__CreatePullPoint(soap, &soap_tmp___tev__CreatePullPoint, "-tev:CreatePullPoint", NULL)
  896. || soap_body_end_out(soap)
  897. || soap_envelope_end_out(soap))
  898. return soap->error;
  899. }
  900. if (soap_end_count(soap))
  901. return soap->error;
  902. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  903. || soap_envelope_begin_out(soap)
  904. || soap_putheader(soap)
  905. || soap_body_begin_out(soap)
  906. || soap_put___tev__CreatePullPoint(soap, &soap_tmp___tev__CreatePullPoint, "-tev:CreatePullPoint", NULL)
  907. || soap_body_end_out(soap)
  908. || soap_envelope_end_out(soap)
  909. || soap_end_send(soap))
  910. return soap_closesock(soap);
  911. if (!wsnt__CreatePullPointResponse)
  912. return soap_closesock(soap);
  913. wsnt__CreatePullPointResponse->soap_default(soap);
  914. if (soap_begin_recv(soap)
  915. || soap_envelope_begin_in(soap)
  916. || soap_recv_header(soap)
  917. || soap_body_begin_in(soap))
  918. return soap_closesock(soap);
  919. wsnt__CreatePullPointResponse->soap_get(soap, "wsnt:CreatePullPointResponse", "");
  920. if (soap->error)
  921. return soap_recv_fault(soap, 0);
  922. if (soap_body_end_in(soap)
  923. || soap_envelope_end_in(soap)
  924. || soap_end_recv(soap))
  925. return soap_closesock(soap);
  926. return soap_closesock(soap);
  927. }
  928. int PullPointSubscriptionBindingProxy::Renew_(const char *endpoint, const char *soap_action, _wsnt__Renew *wsnt__Renew, _wsnt__RenewResponse *wsnt__RenewResponse)
  929. { struct soap *soap = this;
  930. struct __tev__Renew_ soap_tmp___tev__Renew_;
  931. if (endpoint)
  932. soap_endpoint = endpoint;
  933. if (soap_action == NULL)
  934. soap_action = "http://docs.oasis-open.org/wsn/bw-2/PausableSubscriptionManager/RenewRequest";
  935. soap_begin(soap);
  936. soap->encodingStyle = NULL;
  937. soap_tmp___tev__Renew_.wsnt__Renew = wsnt__Renew;
  938. soap_set_version(soap, 2); /* SOAP1.2 */
  939. soap_serializeheader(soap);
  940. soap_serialize___tev__Renew_(soap, &soap_tmp___tev__Renew_);
  941. if (soap_begin_count(soap))
  942. return soap->error;
  943. if (soap->mode & SOAP_IO_LENGTH)
  944. { if (soap_envelope_begin_out(soap)
  945. || soap_putheader(soap)
  946. || soap_body_begin_out(soap)
  947. || soap_put___tev__Renew_(soap, &soap_tmp___tev__Renew_, "-tev:Renew", NULL)
  948. || soap_body_end_out(soap)
  949. || soap_envelope_end_out(soap))
  950. return soap->error;
  951. }
  952. if (soap_end_count(soap))
  953. return soap->error;
  954. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  955. || soap_envelope_begin_out(soap)
  956. || soap_putheader(soap)
  957. || soap_body_begin_out(soap)
  958. || soap_put___tev__Renew_(soap, &soap_tmp___tev__Renew_, "-tev:Renew", NULL)
  959. || soap_body_end_out(soap)
  960. || soap_envelope_end_out(soap)
  961. || soap_end_send(soap))
  962. return soap_closesock(soap);
  963. if (!wsnt__RenewResponse)
  964. return soap_closesock(soap);
  965. wsnt__RenewResponse->soap_default(soap);
  966. if (soap_begin_recv(soap)
  967. || soap_envelope_begin_in(soap)
  968. || soap_recv_header(soap)
  969. || soap_body_begin_in(soap))
  970. return soap_closesock(soap);
  971. wsnt__RenewResponse->soap_get(soap, "wsnt:RenewResponse", "");
  972. if (soap->error)
  973. return soap_recv_fault(soap, 0);
  974. if (soap_body_end_in(soap)
  975. || soap_envelope_end_in(soap)
  976. || soap_end_recv(soap))
  977. return soap_closesock(soap);
  978. return soap_closesock(soap);
  979. }
  980. int PullPointSubscriptionBindingProxy::Unsubscribe_(const char *endpoint, const char *soap_action, _wsnt__Unsubscribe *wsnt__Unsubscribe, _wsnt__UnsubscribeResponse *wsnt__UnsubscribeResponse)
  981. { struct soap *soap = this;
  982. struct __tev__Unsubscribe_ soap_tmp___tev__Unsubscribe_;
  983. if (endpoint)
  984. soap_endpoint = endpoint;
  985. if (soap_action == NULL)
  986. soap_action = "http://docs.oasis-open.org/wsn/bw-2/PausableSubscriptionManager/UnsubscribeRequest";
  987. soap_begin(soap);
  988. soap->encodingStyle = NULL;
  989. soap_tmp___tev__Unsubscribe_.wsnt__Unsubscribe = wsnt__Unsubscribe;
  990. soap_set_version(soap, 2); /* SOAP1.2 */
  991. soap_serializeheader(soap);
  992. soap_serialize___tev__Unsubscribe_(soap, &soap_tmp___tev__Unsubscribe_);
  993. if (soap_begin_count(soap))
  994. return soap->error;
  995. if (soap->mode & SOAP_IO_LENGTH)
  996. { if (soap_envelope_begin_out(soap)
  997. || soap_putheader(soap)
  998. || soap_body_begin_out(soap)
  999. || soap_put___tev__Unsubscribe_(soap, &soap_tmp___tev__Unsubscribe_, "-tev:Unsubscribe", NULL)
  1000. || soap_body_end_out(soap)
  1001. || soap_envelope_end_out(soap))
  1002. return soap->error;
  1003. }
  1004. if (soap_end_count(soap))
  1005. return soap->error;
  1006. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  1007. || soap_envelope_begin_out(soap)
  1008. || soap_putheader(soap)
  1009. || soap_body_begin_out(soap)
  1010. || soap_put___tev__Unsubscribe_(soap, &soap_tmp___tev__Unsubscribe_, "-tev:Unsubscribe", NULL)
  1011. || soap_body_end_out(soap)
  1012. || soap_envelope_end_out(soap)
  1013. || soap_end_send(soap))
  1014. return soap_closesock(soap);
  1015. if (!wsnt__UnsubscribeResponse)
  1016. return soap_closesock(soap);
  1017. wsnt__UnsubscribeResponse->soap_default(soap);
  1018. if (soap_begin_recv(soap)
  1019. || soap_envelope_begin_in(soap)
  1020. || soap_recv_header(soap)
  1021. || soap_body_begin_in(soap))
  1022. return soap_closesock(soap);
  1023. wsnt__UnsubscribeResponse->soap_get(soap, "wsnt:UnsubscribeResponse", "");
  1024. if (soap->error)
  1025. return soap_recv_fault(soap, 0);
  1026. if (soap_body_end_in(soap)
  1027. || soap_envelope_end_in(soap)
  1028. || soap_end_recv(soap))
  1029. return soap_closesock(soap);
  1030. return soap_closesock(soap);
  1031. }
  1032. int PullPointSubscriptionBindingProxy::PauseSubscription(const char *endpoint, const char *soap_action, _wsnt__PauseSubscription *wsnt__PauseSubscription, _wsnt__PauseSubscriptionResponse *wsnt__PauseSubscriptionResponse)
  1033. { struct soap *soap = this;
  1034. struct __tev__PauseSubscription soap_tmp___tev__PauseSubscription;
  1035. if (endpoint)
  1036. soap_endpoint = endpoint;
  1037. if (soap_action == NULL)
  1038. soap_action = "http://docs.oasis-open.org/wsn/bw-2/PausableSubscriptionManager/PauseSubscriptionRequest";
  1039. soap_begin(soap);
  1040. soap->encodingStyle = NULL;
  1041. soap_tmp___tev__PauseSubscription.wsnt__PauseSubscription = wsnt__PauseSubscription;
  1042. soap_set_version(soap, 2); /* SOAP1.2 */
  1043. soap_serializeheader(soap);
  1044. soap_serialize___tev__PauseSubscription(soap, &soap_tmp___tev__PauseSubscription);
  1045. if (soap_begin_count(soap))
  1046. return soap->error;
  1047. if (soap->mode & SOAP_IO_LENGTH)
  1048. { if (soap_envelope_begin_out(soap)
  1049. || soap_putheader(soap)
  1050. || soap_body_begin_out(soap)
  1051. || soap_put___tev__PauseSubscription(soap, &soap_tmp___tev__PauseSubscription, "-tev:PauseSubscription", NULL)
  1052. || soap_body_end_out(soap)
  1053. || soap_envelope_end_out(soap))
  1054. return soap->error;
  1055. }
  1056. if (soap_end_count(soap))
  1057. return soap->error;
  1058. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  1059. || soap_envelope_begin_out(soap)
  1060. || soap_putheader(soap)
  1061. || soap_body_begin_out(soap)
  1062. || soap_put___tev__PauseSubscription(soap, &soap_tmp___tev__PauseSubscription, "-tev:PauseSubscription", NULL)
  1063. || soap_body_end_out(soap)
  1064. || soap_envelope_end_out(soap)
  1065. || soap_end_send(soap))
  1066. return soap_closesock(soap);
  1067. if (!wsnt__PauseSubscriptionResponse)
  1068. return soap_closesock(soap);
  1069. wsnt__PauseSubscriptionResponse->soap_default(soap);
  1070. if (soap_begin_recv(soap)
  1071. || soap_envelope_begin_in(soap)
  1072. || soap_recv_header(soap)
  1073. || soap_body_begin_in(soap))
  1074. return soap_closesock(soap);
  1075. wsnt__PauseSubscriptionResponse->soap_get(soap, "wsnt:PauseSubscriptionResponse", "");
  1076. if (soap->error)
  1077. return soap_recv_fault(soap, 0);
  1078. if (soap_body_end_in(soap)
  1079. || soap_envelope_end_in(soap)
  1080. || soap_end_recv(soap))
  1081. return soap_closesock(soap);
  1082. return soap_closesock(soap);
  1083. }
  1084. int PullPointSubscriptionBindingProxy::ResumeSubscription(const char *endpoint, const char *soap_action, _wsnt__ResumeSubscription *wsnt__ResumeSubscription, _wsnt__ResumeSubscriptionResponse *wsnt__ResumeSubscriptionResponse)
  1085. { struct soap *soap = this;
  1086. struct __tev__ResumeSubscription soap_tmp___tev__ResumeSubscription;
  1087. if (endpoint)
  1088. soap_endpoint = endpoint;
  1089. if (soap_action == NULL)
  1090. soap_action = "http://docs.oasis-open.org/wsn/bw-2/PausableSubscriptionManager/ResumeSubscriptionRequest";
  1091. soap_begin(soap);
  1092. soap->encodingStyle = NULL;
  1093. soap_tmp___tev__ResumeSubscription.wsnt__ResumeSubscription = wsnt__ResumeSubscription;
  1094. soap_set_version(soap, 2); /* SOAP1.2 */
  1095. soap_serializeheader(soap);
  1096. soap_serialize___tev__ResumeSubscription(soap, &soap_tmp___tev__ResumeSubscription);
  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. || soap_put___tev__ResumeSubscription(soap, &soap_tmp___tev__ResumeSubscription, "-tev:ResumeSubscription", NULL)
  1104. || soap_body_end_out(soap)
  1105. || soap_envelope_end_out(soap))
  1106. return soap->error;
  1107. }
  1108. if (soap_end_count(soap))
  1109. return soap->error;
  1110. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  1111. || soap_envelope_begin_out(soap)
  1112. || soap_putheader(soap)
  1113. || soap_body_begin_out(soap)
  1114. || soap_put___tev__ResumeSubscription(soap, &soap_tmp___tev__ResumeSubscription, "-tev:ResumeSubscription", NULL)
  1115. || soap_body_end_out(soap)
  1116. || soap_envelope_end_out(soap)
  1117. || soap_end_send(soap))
  1118. return soap_closesock(soap);
  1119. if (!wsnt__ResumeSubscriptionResponse)
  1120. return soap_closesock(soap);
  1121. wsnt__ResumeSubscriptionResponse->soap_default(soap);
  1122. if (soap_begin_recv(soap)
  1123. || soap_envelope_begin_in(soap)
  1124. || soap_recv_header(soap)
  1125. || soap_body_begin_in(soap))
  1126. return soap_closesock(soap);
  1127. wsnt__ResumeSubscriptionResponse->soap_get(soap, "wsnt:ResumeSubscriptionResponse", "");
  1128. if (soap->error)
  1129. return soap_recv_fault(soap, 0);
  1130. if (soap_body_end_in(soap)
  1131. || soap_envelope_end_in(soap)
  1132. || soap_end_recv(soap))
  1133. return soap_closesock(soap);
  1134. return soap_closesock(soap);
  1135. }
  1136. /* End of client proxy code */