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.

521 lines
18 KiB

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /* soapwsddProxy.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 "soapwsddProxy.h"
  10. wsddProxy::wsddProxy()
  11. { wsddProxy_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
  12. }
  13. wsddProxy::wsddProxy(const struct soap &_soap) : soap(_soap)
  14. { }
  15. wsddProxy::wsddProxy(const char *url)
  16. { wsddProxy_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
  17. soap_endpoint = url;
  18. }
  19. wsddProxy::wsddProxy(soap_mode iomode)
  20. { wsddProxy_init(iomode, iomode);
  21. }
  22. wsddProxy::wsddProxy(const char *url, soap_mode iomode)
  23. { wsddProxy_init(iomode, iomode);
  24. soap_endpoint = url;
  25. }
  26. wsddProxy::wsddProxy(soap_mode imode, soap_mode omode)
  27. { wsddProxy_init(imode, omode);
  28. }
  29. wsddProxy::~wsddProxy()
  30. { }
  31. void wsddProxy::wsddProxy_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 wsddProxy::destroy()
  75. { soap_destroy(this);
  76. soap_end(this);
  77. }
  78. void wsddProxy::reset()
  79. { destroy();
  80. soap_done(this);
  81. soap_initialize(this);
  82. wsddProxy_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
  83. }
  84. void wsddProxy::soap_noheader()
  85. { this->header = NULL;
  86. }
  87. void wsddProxy::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 *wsddProxy::soap_header()
  108. { return this->header;
  109. }
  110. const SOAP_ENV__Fault *wsddProxy::soap_fault()
  111. { return this->fault;
  112. }
  113. const char *wsddProxy::soap_fault_string()
  114. { return *soap_faultstring(this);
  115. }
  116. const char *wsddProxy::soap_fault_detail()
  117. { return *soap_faultdetail(this);
  118. }
  119. int wsddProxy::soap_close_socket()
  120. { return soap_closesock(this);
  121. }
  122. int wsddProxy::soap_force_close_socket()
  123. { return soap_force_closesock(this);
  124. }
  125. void wsddProxy::soap_print_fault(FILE *fd)
  126. { ::soap_print_fault(this, fd);
  127. }
  128. #ifndef WITH_LEAN
  129. #ifndef WITH_COMPAT
  130. void wsddProxy::soap_stream_fault(std::ostream& os)
  131. { ::soap_stream_fault(this, os);
  132. }
  133. #endif
  134. char *wsddProxy::soap_sprint_fault(char *buf, size_t len)
  135. { return ::soap_sprint_fault(this, buf, len);
  136. }
  137. #endif
  138. int wsddProxy::send_Hello(const char *endpoint, const char *soap_action, struct wsdd__HelloType *wsdd__Hello)
  139. { struct soap *soap = this;
  140. struct __wsdd__Hello soap_tmp___wsdd__Hello;
  141. if (endpoint)
  142. soap_endpoint = endpoint;
  143. if (soap_action == NULL)
  144. soap_action = "http://docs.oasis-open.org/ws-dd/ns/discovery/2009/01/Hello";
  145. soap_begin(soap);
  146. soap->encodingStyle = NULL;
  147. soap_tmp___wsdd__Hello.wsdd__Hello = wsdd__Hello;
  148. soap_set_version(soap, 2); /* SOAP1.2 */
  149. soap_serializeheader(soap);
  150. soap_serialize___wsdd__Hello(soap, &soap_tmp___wsdd__Hello);
  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___wsdd__Hello(soap, &soap_tmp___wsdd__Hello, "-wsdd:Hello", 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___wsdd__Hello(soap, &soap_tmp___wsdd__Hello, "-wsdd:Hello", NULL)
  169. || soap_body_end_out(soap)
  170. || soap_envelope_end_out(soap)
  171. || soap_end_send(soap))
  172. return soap_closesock(soap);
  173. return SOAP_OK;
  174. }
  175. int wsddProxy::recv_Hello(struct __wsdd__Hello& tmp)
  176. { struct soap *soap = this;
  177. struct __wsdd__Hello *_param_2 = &tmp;
  178. soap_default___wsdd__Hello(soap, _param_2);
  179. soap_begin(soap);
  180. if (soap_begin_recv(soap)
  181. || soap_envelope_begin_in(soap)
  182. || soap_recv_header(soap)
  183. || soap_body_begin_in(soap))
  184. return soap_closesock(soap);
  185. soap_get___wsdd__Hello(soap, _param_2, "-wsdd:Hello", NULL);
  186. if (soap->error == SOAP_TAG_MISMATCH && soap->level == 2)
  187. soap->error = SOAP_OK;
  188. if (soap->error
  189. || soap_body_end_in(soap)
  190. || soap_envelope_end_in(soap)
  191. || soap_end_recv(soap))
  192. return soap_closesock(soap);
  193. return soap_closesock(soap);
  194. }
  195. int wsddProxy::send_Bye(const char *endpoint, const char *soap_action, struct wsdd__ByeType *wsdd__Bye)
  196. { struct soap *soap = this;
  197. struct __wsdd__Bye soap_tmp___wsdd__Bye;
  198. if (endpoint)
  199. soap_endpoint = endpoint;
  200. if (soap_action == NULL)
  201. soap_action = "http://docs.oasis-open.org/ws-dd/ns/discovery/2009/01/Bye";
  202. soap_begin(soap);
  203. soap->encodingStyle = NULL;
  204. soap_tmp___wsdd__Bye.wsdd__Bye = wsdd__Bye;
  205. soap_set_version(soap, 2); /* SOAP1.2 */
  206. soap_serializeheader(soap);
  207. soap_serialize___wsdd__Bye(soap, &soap_tmp___wsdd__Bye);
  208. if (soap_begin_count(soap))
  209. return soap->error;
  210. if (soap->mode & SOAP_IO_LENGTH)
  211. { if (soap_envelope_begin_out(soap)
  212. || soap_putheader(soap)
  213. || soap_body_begin_out(soap)
  214. || soap_put___wsdd__Bye(soap, &soap_tmp___wsdd__Bye, "-wsdd:Bye", NULL)
  215. || soap_body_end_out(soap)
  216. || soap_envelope_end_out(soap))
  217. return soap->error;
  218. }
  219. if (soap_end_count(soap))
  220. return soap->error;
  221. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  222. || soap_envelope_begin_out(soap)
  223. || soap_putheader(soap)
  224. || soap_body_begin_out(soap)
  225. || soap_put___wsdd__Bye(soap, &soap_tmp___wsdd__Bye, "-wsdd:Bye", NULL)
  226. || soap_body_end_out(soap)
  227. || soap_envelope_end_out(soap)
  228. || soap_end_send(soap))
  229. return soap_closesock(soap);
  230. return SOAP_OK;
  231. }
  232. int wsddProxy::recv_Bye(struct __wsdd__Bye& tmp)
  233. { struct soap *soap = this;
  234. struct __wsdd__Bye *_param_3 = &tmp;
  235. soap_default___wsdd__Bye(soap, _param_3);
  236. soap_begin(soap);
  237. if (soap_begin_recv(soap)
  238. || soap_envelope_begin_in(soap)
  239. || soap_recv_header(soap)
  240. || soap_body_begin_in(soap))
  241. return soap_closesock(soap);
  242. soap_get___wsdd__Bye(soap, _param_3, "-wsdd:Bye", NULL);
  243. if (soap->error == SOAP_TAG_MISMATCH && soap->level == 2)
  244. soap->error = SOAP_OK;
  245. if (soap->error
  246. || soap_body_end_in(soap)
  247. || soap_envelope_end_in(soap)
  248. || soap_end_recv(soap))
  249. return soap_closesock(soap);
  250. return soap_closesock(soap);
  251. }
  252. int wsddProxy::send_Probe(const char *endpoint, const char *soap_action, struct wsdd__ProbeType *wsdd__Probe)
  253. { struct soap *soap = this;
  254. struct __wsdd__Probe soap_tmp___wsdd__Probe;
  255. if (endpoint)
  256. soap_endpoint = endpoint;
  257. if (soap_action == NULL)
  258. soap_action = "http://docs.oasis-open.org/ws-dd/ns/discovery/2009/01/Probe";
  259. soap_begin(soap);
  260. soap->encodingStyle = NULL;
  261. soap_tmp___wsdd__Probe.wsdd__Probe = wsdd__Probe;
  262. soap_set_version(soap, 2); /* SOAP1.2 */
  263. soap_serializeheader(soap);
  264. soap_serialize___wsdd__Probe(soap, &soap_tmp___wsdd__Probe);
  265. if (soap_begin_count(soap))
  266. return soap->error;
  267. if (soap->mode & SOAP_IO_LENGTH)
  268. { if (soap_envelope_begin_out(soap)
  269. || soap_putheader(soap)
  270. || soap_body_begin_out(soap)
  271. || soap_put___wsdd__Probe(soap, &soap_tmp___wsdd__Probe, "-wsdd:Probe", NULL)
  272. || soap_body_end_out(soap)
  273. || soap_envelope_end_out(soap))
  274. return soap->error;
  275. }
  276. if (soap_end_count(soap))
  277. return soap->error;
  278. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  279. || soap_envelope_begin_out(soap)
  280. || soap_putheader(soap)
  281. || soap_body_begin_out(soap)
  282. || soap_put___wsdd__Probe(soap, &soap_tmp___wsdd__Probe, "-wsdd:Probe", NULL)
  283. || soap_body_end_out(soap)
  284. || soap_envelope_end_out(soap)
  285. || soap_end_send(soap))
  286. return soap_closesock(soap);
  287. return SOAP_OK;
  288. }
  289. int wsddProxy::recv_Probe(struct __wsdd__Probe& tmp)
  290. { struct soap *soap = this;
  291. struct __wsdd__Probe *_param_4 = &tmp;
  292. soap_default___wsdd__Probe(soap, _param_4);
  293. soap_begin(soap);
  294. if (soap_begin_recv(soap)
  295. || soap_envelope_begin_in(soap)
  296. || soap_recv_header(soap)
  297. || soap_body_begin_in(soap))
  298. return soap_closesock(soap);
  299. soap_get___wsdd__Probe(soap, _param_4, "-wsdd:Probe", NULL);
  300. if (soap->error == SOAP_TAG_MISMATCH && soap->level == 2)
  301. soap->error = SOAP_OK;
  302. if (soap->error
  303. || soap_body_end_in(soap)
  304. || soap_envelope_end_in(soap)
  305. || soap_end_recv(soap))
  306. return soap_closesock(soap);
  307. return soap_closesock(soap);
  308. }
  309. int wsddProxy::send_ProbeMatches(const char *endpoint, const char *soap_action, struct wsdd__ProbeMatchesType *wsdd__ProbeMatches)
  310. { struct soap *soap = this;
  311. struct __wsdd__ProbeMatches soap_tmp___wsdd__ProbeMatches;
  312. if (endpoint)
  313. soap_endpoint = endpoint;
  314. if (soap_action == NULL)
  315. soap_action = "http://docs.oasis-open.org/ws-dd/ns/discovery/2009/01/ProbeMatches";
  316. soap_begin(soap);
  317. soap->encodingStyle = NULL;
  318. soap_tmp___wsdd__ProbeMatches.wsdd__ProbeMatches = wsdd__ProbeMatches;
  319. soap_set_version(soap, 2); /* SOAP1.2 */
  320. soap_serializeheader(soap);
  321. soap_serialize___wsdd__ProbeMatches(soap, &soap_tmp___wsdd__ProbeMatches);
  322. if (soap_begin_count(soap))
  323. return soap->error;
  324. if (soap->mode & SOAP_IO_LENGTH)
  325. { if (soap_envelope_begin_out(soap)
  326. || soap_putheader(soap)
  327. || soap_body_begin_out(soap)
  328. || soap_put___wsdd__ProbeMatches(soap, &soap_tmp___wsdd__ProbeMatches, "-wsdd:ProbeMatches", NULL)
  329. || soap_body_end_out(soap)
  330. || soap_envelope_end_out(soap))
  331. return soap->error;
  332. }
  333. if (soap_end_count(soap))
  334. return soap->error;
  335. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  336. || soap_envelope_begin_out(soap)
  337. || soap_putheader(soap)
  338. || soap_body_begin_out(soap)
  339. || soap_put___wsdd__ProbeMatches(soap, &soap_tmp___wsdd__ProbeMatches, "-wsdd:ProbeMatches", NULL)
  340. || soap_body_end_out(soap)
  341. || soap_envelope_end_out(soap)
  342. || soap_end_send(soap))
  343. return soap_closesock(soap);
  344. return SOAP_OK;
  345. }
  346. int wsddProxy::recv_ProbeMatches(struct __wsdd__ProbeMatches& tmp)
  347. { struct soap *soap = this;
  348. struct __wsdd__ProbeMatches *_param_5 = &tmp;
  349. soap_default___wsdd__ProbeMatches(soap, _param_5);
  350. soap_begin(soap);
  351. if (soap_begin_recv(soap)
  352. || soap_envelope_begin_in(soap)
  353. || soap_recv_header(soap)
  354. || soap_body_begin_in(soap))
  355. return soap_closesock(soap);
  356. soap_get___wsdd__ProbeMatches(soap, _param_5, "-wsdd:ProbeMatches", NULL);
  357. if (soap->error == SOAP_TAG_MISMATCH && soap->level == 2)
  358. soap->error = SOAP_OK;
  359. if (soap->error
  360. || soap_body_end_in(soap)
  361. || soap_envelope_end_in(soap)
  362. || soap_end_recv(soap))
  363. return soap_closesock(soap);
  364. return soap_closesock(soap);
  365. }
  366. int wsddProxy::send_Resolve(const char *endpoint, const char *soap_action, struct wsdd__ResolveType *wsdd__Resolve)
  367. { struct soap *soap = this;
  368. struct __wsdd__Resolve soap_tmp___wsdd__Resolve;
  369. if (endpoint)
  370. soap_endpoint = endpoint;
  371. if (soap_action == NULL)
  372. soap_action = "http://docs.oasis-open.org/ws-dd/ns/discovery/2009/01/Resolve";
  373. soap_begin(soap);
  374. soap->encodingStyle = NULL;
  375. soap_tmp___wsdd__Resolve.wsdd__Resolve = wsdd__Resolve;
  376. soap_set_version(soap, 2); /* SOAP1.2 */
  377. soap_serializeheader(soap);
  378. soap_serialize___wsdd__Resolve(soap, &soap_tmp___wsdd__Resolve);
  379. if (soap_begin_count(soap))
  380. return soap->error;
  381. if (soap->mode & SOAP_IO_LENGTH)
  382. { if (soap_envelope_begin_out(soap)
  383. || soap_putheader(soap)
  384. || soap_body_begin_out(soap)
  385. || soap_put___wsdd__Resolve(soap, &soap_tmp___wsdd__Resolve, "-wsdd:Resolve", NULL)
  386. || soap_body_end_out(soap)
  387. || soap_envelope_end_out(soap))
  388. return soap->error;
  389. }
  390. if (soap_end_count(soap))
  391. return soap->error;
  392. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  393. || soap_envelope_begin_out(soap)
  394. || soap_putheader(soap)
  395. || soap_body_begin_out(soap)
  396. || soap_put___wsdd__Resolve(soap, &soap_tmp___wsdd__Resolve, "-wsdd:Resolve", NULL)
  397. || soap_body_end_out(soap)
  398. || soap_envelope_end_out(soap)
  399. || soap_end_send(soap))
  400. return soap_closesock(soap);
  401. return SOAP_OK;
  402. }
  403. int wsddProxy::recv_Resolve(struct __wsdd__Resolve& tmp)
  404. { struct soap *soap = this;
  405. struct __wsdd__Resolve *_param_6 = &tmp;
  406. soap_default___wsdd__Resolve(soap, _param_6);
  407. soap_begin(soap);
  408. if (soap_begin_recv(soap)
  409. || soap_envelope_begin_in(soap)
  410. || soap_recv_header(soap)
  411. || soap_body_begin_in(soap))
  412. return soap_closesock(soap);
  413. soap_get___wsdd__Resolve(soap, _param_6, "-wsdd:Resolve", NULL);
  414. if (soap->error == SOAP_TAG_MISMATCH && soap->level == 2)
  415. soap->error = SOAP_OK;
  416. if (soap->error
  417. || soap_body_end_in(soap)
  418. || soap_envelope_end_in(soap)
  419. || soap_end_recv(soap))
  420. return soap_closesock(soap);
  421. return soap_closesock(soap);
  422. }
  423. int wsddProxy::send_ResolveMatches(const char *endpoint, const char *soap_action, struct wsdd__ResolveMatchesType *wsdd__ResolveMatches)
  424. { struct soap *soap = this;
  425. struct __wsdd__ResolveMatches soap_tmp___wsdd__ResolveMatches;
  426. if (endpoint)
  427. soap_endpoint = endpoint;
  428. if (soap_action == NULL)
  429. soap_action = "http://docs.oasis-open.org/ws-dd/ns/discovery/2009/01/ResolveMatches";
  430. soap_begin(soap);
  431. soap->encodingStyle = NULL;
  432. soap_tmp___wsdd__ResolveMatches.wsdd__ResolveMatches = wsdd__ResolveMatches;
  433. soap_set_version(soap, 2); /* SOAP1.2 */
  434. soap_serializeheader(soap);
  435. soap_serialize___wsdd__ResolveMatches(soap, &soap_tmp___wsdd__ResolveMatches);
  436. if (soap_begin_count(soap))
  437. return soap->error;
  438. if (soap->mode & SOAP_IO_LENGTH)
  439. { if (soap_envelope_begin_out(soap)
  440. || soap_putheader(soap)
  441. || soap_body_begin_out(soap)
  442. || soap_put___wsdd__ResolveMatches(soap, &soap_tmp___wsdd__ResolveMatches, "-wsdd:ResolveMatches", NULL)
  443. || soap_body_end_out(soap)
  444. || soap_envelope_end_out(soap))
  445. return soap->error;
  446. }
  447. if (soap_end_count(soap))
  448. return soap->error;
  449. if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
  450. || soap_envelope_begin_out(soap)
  451. || soap_putheader(soap)
  452. || soap_body_begin_out(soap)
  453. || soap_put___wsdd__ResolveMatches(soap, &soap_tmp___wsdd__ResolveMatches, "-wsdd:ResolveMatches", NULL)
  454. || soap_body_end_out(soap)
  455. || soap_envelope_end_out(soap)
  456. || soap_end_send(soap))
  457. return soap_closesock(soap);
  458. return SOAP_OK;
  459. }
  460. int wsddProxy::recv_ResolveMatches(struct __wsdd__ResolveMatches& tmp)
  461. { struct soap *soap = this;
  462. struct __wsdd__ResolveMatches *_param_7 = &tmp;
  463. soap_default___wsdd__ResolveMatches(soap, _param_7);
  464. soap_begin(soap);
  465. if (soap_begin_recv(soap)
  466. || soap_envelope_begin_in(soap)
  467. || soap_recv_header(soap)
  468. || soap_body_begin_in(soap))
  469. return soap_closesock(soap);
  470. soap_get___wsdd__ResolveMatches(soap, _param_7, "-wsdd:ResolveMatches", NULL);
  471. if (soap->error == SOAP_TAG_MISMATCH && soap->level == 2)
  472. soap->error = SOAP_OK;
  473. if (soap->error
  474. || soap_body_end_in(soap)
  475. || soap_envelope_end_in(soap)
  476. || soap_end_recv(soap))
  477. return soap_closesock(soap);
  478. return soap_closesock(soap);
  479. }
  480. /* End of client proxy code */