/* soapSearchBindingProxy.cpp Generated by gSOAP 2.8.17r from onvif.h Copyright(C) 2000-2013, Robert van Engelen, Genivia Inc. All Rights Reserved. The generated code is released under one of the following licenses: GPL or Genivia's license for commercial use. This program is released under the GPL with the additional exemption that compiling, linking, and/or using OpenSSL is allowed. */ #include "soapSearchBindingProxy.h" SearchBindingProxy::SearchBindingProxy() { SearchBindingProxy_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT); } SearchBindingProxy::SearchBindingProxy(const struct soap &_soap) : soap(_soap) { } SearchBindingProxy::SearchBindingProxy(const char *url) { SearchBindingProxy_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT); soap_endpoint = url; } SearchBindingProxy::SearchBindingProxy(soap_mode iomode) { SearchBindingProxy_init(iomode, iomode); } SearchBindingProxy::SearchBindingProxy(const char *url, soap_mode iomode) { SearchBindingProxy_init(iomode, iomode); soap_endpoint = url; } SearchBindingProxy::SearchBindingProxy(soap_mode imode, soap_mode omode) { SearchBindingProxy_init(imode, omode); } SearchBindingProxy::~SearchBindingProxy() { } void SearchBindingProxy::SearchBindingProxy_init(soap_mode imode, soap_mode omode) { soap_imode(this, imode); soap_omode(this, omode); soap_endpoint = NULL; static const struct Namespace namespaces[] = { {"SOAP-ENV", "http://www.w3.org/2003/05/soap-envelope", "http://schemas.xmlsoap.org/soap/envelope/", NULL}, {"SOAP-ENC", "http://www.w3.org/2003/05/soap-encoding", "http://schemas.xmlsoap.org/soap/encoding/", NULL}, {"xsi", "http://www.w3.org/2001/XMLSchema-instance", "http://www.w3.org/*/XMLSchema-instance", NULL}, {"xsd", "http://www.w3.org/2001/XMLSchema", "http://www.w3.org/*/XMLSchema", NULL}, {"c14n", "http://www.w3.org/2001/10/xml-exc-c14n#", NULL, NULL}, {"wsu", "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd", NULL, NULL}, {"xenc", "http://www.w3.org/2001/04/xmlenc#", NULL, NULL}, {"wsc", "http://schemas.xmlsoap.org/ws/2005/02/sc", NULL, NULL}, {"ds", "http://www.w3.org/2000/09/xmldsig#", NULL, NULL}, {"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}, {"wsa", "http://schemas.xmlsoap.org/ws/2004/08/addressing", NULL, NULL}, {"wsdd", "http://schemas.xmlsoap.org/ws/2005/04/discovery", NULL, NULL}, {"chan", "http://schemas.microsoft.com/ws/2005/02/duplex", NULL, NULL}, {"wsa5", "http://www.w3.org/2005/08/addressing", "http://schemas.xmlsoap.org/ws/2004/08/addressing", NULL}, {"xmime", "http://tempuri.org/xmime.xsd", NULL, NULL}, {"xop", "http://www.w3.org/2004/08/xop/include", NULL, NULL}, {"tt", "http://www.onvif.org/ver10/schema", NULL, NULL}, {"wsrfbf", "http://docs.oasis-open.org/wsrf/bf-2", NULL, NULL}, {"wstop", "http://docs.oasis-open.org/wsn/t-1", NULL, NULL}, {"wsrfr", "http://docs.oasis-open.org/wsrf/r-2", NULL, NULL}, {"tdn", "http://www.onvif.org/ver10/network/wsdl", NULL, NULL}, {"tds", "http://www.onvif.org/ver10/device/wsdl", NULL, NULL}, {"tev", "http://www.onvif.org/ver10/events/wsdl", NULL, NULL}, {"wsnt", "http://docs.oasis-open.org/wsn/b-2", NULL, NULL}, {"timg", "http://www.onvif.org/ver20/imaging/wsdl", NULL, NULL}, {"tls", "http://www.onvif.org/ver10/display/wsdl", NULL, NULL}, {"tmd", "http://www.onvif.org/ver10/deviceIO/wsdl", NULL, NULL}, {"tptz", "http://www.onvif.org/ver20/ptz/wsdl", NULL, NULL}, {"trc", "http://www.onvif.org/ver10/recording/wsdl", NULL, NULL}, {"trp", "http://www.onvif.org/ver10/replay/wsdl", NULL, NULL}, {"trt", "http://www.onvif.org/ver10/media/wsdl", NULL, NULL}, {"trv", "http://www.onvif.org/ver10/receiver/wsdl", NULL, NULL}, {"tse", "http://www.onvif.org/ver10/search/wsdl", NULL, NULL}, {NULL, NULL, NULL, NULL} }; soap_set_namespaces(this, namespaces); } void SearchBindingProxy::destroy() { soap_destroy(this); soap_end(this); } void SearchBindingProxy::reset() { destroy(); soap_done(this); soap_initialize(this); SearchBindingProxy_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT); } void SearchBindingProxy::soap_noheader() { this->header = NULL; } void SearchBindingProxy::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) { ::soap_header(this); this->header->wsse__Security = wsse__Security; this->header->wsa__MessageID = wsa__MessageID; this->header->wsa__RelatesTo = wsa__RelatesTo; this->header->wsa__From = wsa__From; this->header->wsa__ReplyTo = wsa__ReplyTo; this->header->wsa__FaultTo = wsa__FaultTo; this->header->wsa__To = wsa__To; this->header->wsa__Action = wsa__Action; this->header->wsdd__AppSequence = wsdd__AppSequence; this->header->wsa5__MessageID = wsa5__MessageID; this->header->wsa5__RelatesTo = wsa5__RelatesTo; this->header->wsa5__From = wsa5__From; this->header->wsa5__ReplyTo = wsa5__ReplyTo; this->header->wsa5__FaultTo = wsa5__FaultTo; this->header->wsa5__To = wsa5__To; this->header->wsa5__Action = wsa5__Action; this->header->chan__ChannelInstance = chan__ChannelInstance; } const SOAP_ENV__Header *SearchBindingProxy::soap_header() { return this->header; } const SOAP_ENV__Fault *SearchBindingProxy::soap_fault() { return this->fault; } const char *SearchBindingProxy::soap_fault_string() { return *soap_faultstring(this); } const char *SearchBindingProxy::soap_fault_detail() { return *soap_faultdetail(this); } int SearchBindingProxy::soap_close_socket() { return soap_closesock(this); } int SearchBindingProxy::soap_force_close_socket() { return soap_force_closesock(this); } void SearchBindingProxy::soap_print_fault(FILE *fd) { ::soap_print_fault(this, fd); } #ifndef WITH_LEAN #ifndef WITH_COMPAT void SearchBindingProxy::soap_stream_fault(std::ostream& os) { ::soap_stream_fault(this, os); } #endif char *SearchBindingProxy::soap_sprint_fault(char *buf, size_t len) { return ::soap_sprint_fault(this, buf, len); } #endif int SearchBindingProxy::GetServiceCapabilities(const char *endpoint, const char *soap_action, _tse__GetServiceCapabilities *tse__GetServiceCapabilities, _tse__GetServiceCapabilitiesResponse *tse__GetServiceCapabilitiesResponse) { struct soap *soap = this; struct __tse__GetServiceCapabilities soap_tmp___tse__GetServiceCapabilities; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/search/wsdl/GetServiceCapabilities"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___tse__GetServiceCapabilities.tse__GetServiceCapabilities = tse__GetServiceCapabilities; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___tse__GetServiceCapabilities(soap, &soap_tmp___tse__GetServiceCapabilities); if (soap_begin_count(soap)) return soap->error; if (soap->mode & SOAP_IO_LENGTH) { if (soap_envelope_begin_out(soap) || soap_putheader(soap) || soap_body_begin_out(soap) || soap_put___tse__GetServiceCapabilities(soap, &soap_tmp___tse__GetServiceCapabilities, "-tse:GetServiceCapabilities", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap)) return soap->error; } if (soap_end_count(soap)) return soap->error; if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action) || soap_envelope_begin_out(soap) || soap_putheader(soap) || soap_body_begin_out(soap) || soap_put___tse__GetServiceCapabilities(soap, &soap_tmp___tse__GetServiceCapabilities, "-tse:GetServiceCapabilities", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!tse__GetServiceCapabilitiesResponse) return soap_closesock(soap); tse__GetServiceCapabilitiesResponse->soap_default(soap); if (soap_begin_recv(soap) || soap_envelope_begin_in(soap) || soap_recv_header(soap) || soap_body_begin_in(soap)) return soap_closesock(soap); tse__GetServiceCapabilitiesResponse->soap_get(soap, "tse:GetServiceCapabilitiesResponse", ""); if (soap->error) return soap_recv_fault(soap, 0); if (soap_body_end_in(soap) || soap_envelope_end_in(soap) || soap_end_recv(soap)) return soap_closesock(soap); return soap_closesock(soap); } int SearchBindingProxy::GetRecordingSummary(const char *endpoint, const char *soap_action, _tse__GetRecordingSummary *tse__GetRecordingSummary, _tse__GetRecordingSummaryResponse *tse__GetRecordingSummaryResponse) { struct soap *soap = this; struct __tse__GetRecordingSummary soap_tmp___tse__GetRecordingSummary; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/search/wsdl/GetRecordingSummary"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___tse__GetRecordingSummary.tse__GetRecordingSummary = tse__GetRecordingSummary; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___tse__GetRecordingSummary(soap, &soap_tmp___tse__GetRecordingSummary); if (soap_begin_count(soap)) return soap->error; if (soap->mode & SOAP_IO_LENGTH) { if (soap_envelope_begin_out(soap) || soap_putheader(soap) || soap_body_begin_out(soap) || soap_put___tse__GetRecordingSummary(soap, &soap_tmp___tse__GetRecordingSummary, "-tse:GetRecordingSummary", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap)) return soap->error; } if (soap_end_count(soap)) return soap->error; if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action) || soap_envelope_begin_out(soap) || soap_putheader(soap) || soap_body_begin_out(soap) || soap_put___tse__GetRecordingSummary(soap, &soap_tmp___tse__GetRecordingSummary, "-tse:GetRecordingSummary", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!tse__GetRecordingSummaryResponse) return soap_closesock(soap); tse__GetRecordingSummaryResponse->soap_default(soap); if (soap_begin_recv(soap) || soap_envelope_begin_in(soap) || soap_recv_header(soap) || soap_body_begin_in(soap)) return soap_closesock(soap); tse__GetRecordingSummaryResponse->soap_get(soap, "tse:GetRecordingSummaryResponse", ""); if (soap->error) return soap_recv_fault(soap, 0); if (soap_body_end_in(soap) || soap_envelope_end_in(soap) || soap_end_recv(soap)) return soap_closesock(soap); return soap_closesock(soap); } int SearchBindingProxy::GetRecordingInformation(const char *endpoint, const char *soap_action, _tse__GetRecordingInformation *tse__GetRecordingInformation, _tse__GetRecordingInformationResponse *tse__GetRecordingInformationResponse) { struct soap *soap = this; struct __tse__GetRecordingInformation soap_tmp___tse__GetRecordingInformation; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/search/wsdl/GetRecordingInformation"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___tse__GetRecordingInformation.tse__GetRecordingInformation = tse__GetRecordingInformation; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___tse__GetRecordingInformation(soap, &soap_tmp___tse__GetRecordingInformation); if (soap_begin_count(soap)) return soap->error; if (soap->mode & SOAP_IO_LENGTH) { if (soap_envelope_begin_out(soap) || soap_putheader(soap) || soap_body_begin_out(soap) || soap_put___tse__GetRecordingInformation(soap, &soap_tmp___tse__GetRecordingInformation, "-tse:GetRecordingInformation", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap)) return soap->error; } if (soap_end_count(soap)) return soap->error; if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action) || soap_envelope_begin_out(soap) || soap_putheader(soap) || soap_body_begin_out(soap) || soap_put___tse__GetRecordingInformation(soap, &soap_tmp___tse__GetRecordingInformation, "-tse:GetRecordingInformation", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!tse__GetRecordingInformationResponse) return soap_closesock(soap); tse__GetRecordingInformationResponse->soap_default(soap); if (soap_begin_recv(soap) || soap_envelope_begin_in(soap) || soap_recv_header(soap) || soap_body_begin_in(soap)) return soap_closesock(soap); tse__GetRecordingInformationResponse->soap_get(soap, "tse:GetRecordingInformationResponse", ""); if (soap->error) return soap_recv_fault(soap, 0); if (soap_body_end_in(soap) || soap_envelope_end_in(soap) || soap_end_recv(soap)) return soap_closesock(soap); return soap_closesock(soap); } int SearchBindingProxy::GetMediaAttributes(const char *endpoint, const char *soap_action, _tse__GetMediaAttributes *tse__GetMediaAttributes, _tse__GetMediaAttributesResponse *tse__GetMediaAttributesResponse) { struct soap *soap = this; struct __tse__GetMediaAttributes soap_tmp___tse__GetMediaAttributes; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/search/wsdl/GetMediaAttributes"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___tse__GetMediaAttributes.tse__GetMediaAttributes = tse__GetMediaAttributes; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___tse__GetMediaAttributes(soap, &soap_tmp___tse__GetMediaAttributes); if (soap_begin_count(soap)) return soap->error; if (soap->mode & SOAP_IO_LENGTH) { if (soap_envelope_begin_out(soap) || soap_putheader(soap) || soap_body_begin_out(soap) || soap_put___tse__GetMediaAttributes(soap, &soap_tmp___tse__GetMediaAttributes, "-tse:GetMediaAttributes", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap)) return soap->error; } if (soap_end_count(soap)) return soap->error; if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action) || soap_envelope_begin_out(soap) || soap_putheader(soap) || soap_body_begin_out(soap) || soap_put___tse__GetMediaAttributes(soap, &soap_tmp___tse__GetMediaAttributes, "-tse:GetMediaAttributes", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!tse__GetMediaAttributesResponse) return soap_closesock(soap); tse__GetMediaAttributesResponse->soap_default(soap); if (soap_begin_recv(soap) || soap_envelope_begin_in(soap) || soap_recv_header(soap) || soap_body_begin_in(soap)) return soap_closesock(soap); tse__GetMediaAttributesResponse->soap_get(soap, "tse:GetMediaAttributesResponse", ""); if (soap->error) return soap_recv_fault(soap, 0); if (soap_body_end_in(soap) || soap_envelope_end_in(soap) || soap_end_recv(soap)) return soap_closesock(soap); return soap_closesock(soap); } int SearchBindingProxy::FindRecordings(const char *endpoint, const char *soap_action, _tse__FindRecordings *tse__FindRecordings, _tse__FindRecordingsResponse *tse__FindRecordingsResponse) { struct soap *soap = this; struct __tse__FindRecordings soap_tmp___tse__FindRecordings; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/search/wsdl/FindRecordings"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___tse__FindRecordings.tse__FindRecordings = tse__FindRecordings; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___tse__FindRecordings(soap, &soap_tmp___tse__FindRecordings); if (soap_begin_count(soap)) return soap->error; if (soap->mode & SOAP_IO_LENGTH) { if (soap_envelope_begin_out(soap) || soap_putheader(soap) || soap_body_begin_out(soap) || soap_put___tse__FindRecordings(soap, &soap_tmp___tse__FindRecordings, "-tse:FindRecordings", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap)) return soap->error; } if (soap_end_count(soap)) return soap->error; if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action) || soap_envelope_begin_out(soap) || soap_putheader(soap) || soap_body_begin_out(soap) || soap_put___tse__FindRecordings(soap, &soap_tmp___tse__FindRecordings, "-tse:FindRecordings", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!tse__FindRecordingsResponse) return soap_closesock(soap); tse__FindRecordingsResponse->soap_default(soap); if (soap_begin_recv(soap) || soap_envelope_begin_in(soap) || soap_recv_header(soap) || soap_body_begin_in(soap)) return soap_closesock(soap); tse__FindRecordingsResponse->soap_get(soap, "tse:FindRecordingsResponse", ""); if (soap->error) return soap_recv_fault(soap, 0); if (soap_body_end_in(soap) || soap_envelope_end_in(soap) || soap_end_recv(soap)) return soap_closesock(soap); return soap_closesock(soap); } int SearchBindingProxy::GetRecordingSearchResults(const char *endpoint, const char *soap_action, _tse__GetRecordingSearchResults *tse__GetRecordingSearchResults, _tse__GetRecordingSearchResultsResponse *tse__GetRecordingSearchResultsResponse) { struct soap *soap = this; struct __tse__GetRecordingSearchResults soap_tmp___tse__GetRecordingSearchResults; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/search/wsdl/GetRecordingSearchResults"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___tse__GetRecordingSearchResults.tse__GetRecordingSearchResults = tse__GetRecordingSearchResults; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___tse__GetRecordingSearchResults(soap, &soap_tmp___tse__GetRecordingSearchResults); if (soap_begin_count(soap)) return soap->error; if (soap->mode & SOAP_IO_LENGTH) { if (soap_envelope_begin_out(soap) || soap_putheader(soap) || soap_body_begin_out(soap) || soap_put___tse__GetRecordingSearchResults(soap, &soap_tmp___tse__GetRecordingSearchResults, "-tse:GetRecordingSearchResults", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap)) return soap->error; } if (soap_end_count(soap)) return soap->error; if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action) || soap_envelope_begin_out(soap) || soap_putheader(soap) || soap_body_begin_out(soap) || soap_put___tse__GetRecordingSearchResults(soap, &soap_tmp___tse__GetRecordingSearchResults, "-tse:GetRecordingSearchResults", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!tse__GetRecordingSearchResultsResponse) return soap_closesock(soap); tse__GetRecordingSearchResultsResponse->soap_default(soap); if (soap_begin_recv(soap) || soap_envelope_begin_in(soap) || soap_recv_header(soap) || soap_body_begin_in(soap)) return soap_closesock(soap); tse__GetRecordingSearchResultsResponse->soap_get(soap, "tse:GetRecordingSearchResultsResponse", ""); if (soap->error) return soap_recv_fault(soap, 0); if (soap_body_end_in(soap) || soap_envelope_end_in(soap) || soap_end_recv(soap)) return soap_closesock(soap); return soap_closesock(soap); } int SearchBindingProxy::FindEvents(const char *endpoint, const char *soap_action, _tse__FindEvents *tse__FindEvents, _tse__FindEventsResponse *tse__FindEventsResponse) { struct soap *soap = this; struct __tse__FindEvents soap_tmp___tse__FindEvents; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/search/wsdl/FindEvents"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___tse__FindEvents.tse__FindEvents = tse__FindEvents; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___tse__FindEvents(soap, &soap_tmp___tse__FindEvents); if (soap_begin_count(soap)) return soap->error; if (soap->mode & SOAP_IO_LENGTH) { if (soap_envelope_begin_out(soap) || soap_putheader(soap) || soap_body_begin_out(soap) || soap_put___tse__FindEvents(soap, &soap_tmp___tse__FindEvents, "-tse:FindEvents", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap)) return soap->error; } if (soap_end_count(soap)) return soap->error; if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action) || soap_envelope_begin_out(soap) || soap_putheader(soap) || soap_body_begin_out(soap) || soap_put___tse__FindEvents(soap, &soap_tmp___tse__FindEvents, "-tse:FindEvents", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!tse__FindEventsResponse) return soap_closesock(soap); tse__FindEventsResponse->soap_default(soap); if (soap_begin_recv(soap) || soap_envelope_begin_in(soap) || soap_recv_header(soap) || soap_body_begin_in(soap)) return soap_closesock(soap); tse__FindEventsResponse->soap_get(soap, "tse:FindEventsResponse", ""); if (soap->error) return soap_recv_fault(soap, 0); if (soap_body_end_in(soap) || soap_envelope_end_in(soap) || soap_end_recv(soap)) return soap_closesock(soap); return soap_closesock(soap); } int SearchBindingProxy::GetEventSearchResults(const char *endpoint, const char *soap_action, _tse__GetEventSearchResults *tse__GetEventSearchResults, _tse__GetEventSearchResultsResponse *tse__GetEventSearchResultsResponse) { struct soap *soap = this; struct __tse__GetEventSearchResults soap_tmp___tse__GetEventSearchResults; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/search/wsdl/GetEventSearchResults"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___tse__GetEventSearchResults.tse__GetEventSearchResults = tse__GetEventSearchResults; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___tse__GetEventSearchResults(soap, &soap_tmp___tse__GetEventSearchResults); if (soap_begin_count(soap)) return soap->error; if (soap->mode & SOAP_IO_LENGTH) { if (soap_envelope_begin_out(soap) || soap_putheader(soap) || soap_body_begin_out(soap) || soap_put___tse__GetEventSearchResults(soap, &soap_tmp___tse__GetEventSearchResults, "-tse:GetEventSearchResults", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap)) return soap->error; } if (soap_end_count(soap)) return soap->error; if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action) || soap_envelope_begin_out(soap) || soap_putheader(soap) || soap_body_begin_out(soap) || soap_put___tse__GetEventSearchResults(soap, &soap_tmp___tse__GetEventSearchResults, "-tse:GetEventSearchResults", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!tse__GetEventSearchResultsResponse) return soap_closesock(soap); tse__GetEventSearchResultsResponse->soap_default(soap); if (soap_begin_recv(soap) || soap_envelope_begin_in(soap) || soap_recv_header(soap) || soap_body_begin_in(soap)) return soap_closesock(soap); tse__GetEventSearchResultsResponse->soap_get(soap, "tse:GetEventSearchResultsResponse", ""); if (soap->error) return soap_recv_fault(soap, 0); if (soap_body_end_in(soap) || soap_envelope_end_in(soap) || soap_end_recv(soap)) return soap_closesock(soap); return soap_closesock(soap); } int SearchBindingProxy::FindPTZPosition(const char *endpoint, const char *soap_action, _tse__FindPTZPosition *tse__FindPTZPosition, _tse__FindPTZPositionResponse *tse__FindPTZPositionResponse) { struct soap *soap = this; struct __tse__FindPTZPosition soap_tmp___tse__FindPTZPosition; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/search/wsdl/FindPTZPosition"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___tse__FindPTZPosition.tse__FindPTZPosition = tse__FindPTZPosition; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___tse__FindPTZPosition(soap, &soap_tmp___tse__FindPTZPosition); if (soap_begin_count(soap)) return soap->error; if (soap->mode & SOAP_IO_LENGTH) { if (soap_envelope_begin_out(soap) || soap_putheader(soap) || soap_body_begin_out(soap) || soap_put___tse__FindPTZPosition(soap, &soap_tmp___tse__FindPTZPosition, "-tse:FindPTZPosition", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap)) return soap->error; } if (soap_end_count(soap)) return soap->error; if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action) || soap_envelope_begin_out(soap) || soap_putheader(soap) || soap_body_begin_out(soap) || soap_put___tse__FindPTZPosition(soap, &soap_tmp___tse__FindPTZPosition, "-tse:FindPTZPosition", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!tse__FindPTZPositionResponse) return soap_closesock(soap); tse__FindPTZPositionResponse->soap_default(soap); if (soap_begin_recv(soap) || soap_envelope_begin_in(soap) || soap_recv_header(soap) || soap_body_begin_in(soap)) return soap_closesock(soap); tse__FindPTZPositionResponse->soap_get(soap, "tse:FindPTZPositionResponse", ""); if (soap->error) return soap_recv_fault(soap, 0); if (soap_body_end_in(soap) || soap_envelope_end_in(soap) || soap_end_recv(soap)) return soap_closesock(soap); return soap_closesock(soap); } int SearchBindingProxy::GetPTZPositionSearchResults(const char *endpoint, const char *soap_action, _tse__GetPTZPositionSearchResults *tse__GetPTZPositionSearchResults, _tse__GetPTZPositionSearchResultsResponse *tse__GetPTZPositionSearchResultsResponse) { struct soap *soap = this; struct __tse__GetPTZPositionSearchResults soap_tmp___tse__GetPTZPositionSearchResults; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/search/wsdl/GetPTZPositionSearchResults"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___tse__GetPTZPositionSearchResults.tse__GetPTZPositionSearchResults = tse__GetPTZPositionSearchResults; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___tse__GetPTZPositionSearchResults(soap, &soap_tmp___tse__GetPTZPositionSearchResults); if (soap_begin_count(soap)) return soap->error; if (soap->mode & SOAP_IO_LENGTH) { if (soap_envelope_begin_out(soap) || soap_putheader(soap) || soap_body_begin_out(soap) || soap_put___tse__GetPTZPositionSearchResults(soap, &soap_tmp___tse__GetPTZPositionSearchResults, "-tse:GetPTZPositionSearchResults", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap)) return soap->error; } if (soap_end_count(soap)) return soap->error; if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action) || soap_envelope_begin_out(soap) || soap_putheader(soap) || soap_body_begin_out(soap) || soap_put___tse__GetPTZPositionSearchResults(soap, &soap_tmp___tse__GetPTZPositionSearchResults, "-tse:GetPTZPositionSearchResults", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!tse__GetPTZPositionSearchResultsResponse) return soap_closesock(soap); tse__GetPTZPositionSearchResultsResponse->soap_default(soap); if (soap_begin_recv(soap) || soap_envelope_begin_in(soap) || soap_recv_header(soap) || soap_body_begin_in(soap)) return soap_closesock(soap); tse__GetPTZPositionSearchResultsResponse->soap_get(soap, "tse:GetPTZPositionSearchResultsResponse", ""); if (soap->error) return soap_recv_fault(soap, 0); if (soap_body_end_in(soap) || soap_envelope_end_in(soap) || soap_end_recv(soap)) return soap_closesock(soap); return soap_closesock(soap); } int SearchBindingProxy::GetSearchState(const char *endpoint, const char *soap_action, _tse__GetSearchState *tse__GetSearchState, _tse__GetSearchStateResponse *tse__GetSearchStateResponse) { struct soap *soap = this; struct __tse__GetSearchState soap_tmp___tse__GetSearchState; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/search/wsdl/GetSearchState"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___tse__GetSearchState.tse__GetSearchState = tse__GetSearchState; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___tse__GetSearchState(soap, &soap_tmp___tse__GetSearchState); if (soap_begin_count(soap)) return soap->error; if (soap->mode & SOAP_IO_LENGTH) { if (soap_envelope_begin_out(soap) || soap_putheader(soap) || soap_body_begin_out(soap) || soap_put___tse__GetSearchState(soap, &soap_tmp___tse__GetSearchState, "-tse:GetSearchState", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap)) return soap->error; } if (soap_end_count(soap)) return soap->error; if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action) || soap_envelope_begin_out(soap) || soap_putheader(soap) || soap_body_begin_out(soap) || soap_put___tse__GetSearchState(soap, &soap_tmp___tse__GetSearchState, "-tse:GetSearchState", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!tse__GetSearchStateResponse) return soap_closesock(soap); tse__GetSearchStateResponse->soap_default(soap); if (soap_begin_recv(soap) || soap_envelope_begin_in(soap) || soap_recv_header(soap) || soap_body_begin_in(soap)) return soap_closesock(soap); tse__GetSearchStateResponse->soap_get(soap, "tse:GetSearchStateResponse", ""); if (soap->error) return soap_recv_fault(soap, 0); if (soap_body_end_in(soap) || soap_envelope_end_in(soap) || soap_end_recv(soap)) return soap_closesock(soap); return soap_closesock(soap); } int SearchBindingProxy::EndSearch(const char *endpoint, const char *soap_action, _tse__EndSearch *tse__EndSearch, _tse__EndSearchResponse *tse__EndSearchResponse) { struct soap *soap = this; struct __tse__EndSearch soap_tmp___tse__EndSearch; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/search/wsdl/EndSearch"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___tse__EndSearch.tse__EndSearch = tse__EndSearch; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___tse__EndSearch(soap, &soap_tmp___tse__EndSearch); if (soap_begin_count(soap)) return soap->error; if (soap->mode & SOAP_IO_LENGTH) { if (soap_envelope_begin_out(soap) || soap_putheader(soap) || soap_body_begin_out(soap) || soap_put___tse__EndSearch(soap, &soap_tmp___tse__EndSearch, "-tse:EndSearch", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap)) return soap->error; } if (soap_end_count(soap)) return soap->error; if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action) || soap_envelope_begin_out(soap) || soap_putheader(soap) || soap_body_begin_out(soap) || soap_put___tse__EndSearch(soap, &soap_tmp___tse__EndSearch, "-tse:EndSearch", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!tse__EndSearchResponse) return soap_closesock(soap); tse__EndSearchResponse->soap_default(soap); if (soap_begin_recv(soap) || soap_envelope_begin_in(soap) || soap_recv_header(soap) || soap_body_begin_in(soap)) return soap_closesock(soap); tse__EndSearchResponse->soap_get(soap, "tse:EndSearchResponse", ""); if (soap->error) return soap_recv_fault(soap, 0); if (soap_body_end_in(soap) || soap_envelope_end_in(soap) || soap_end_recv(soap)) return soap_closesock(soap); return soap_closesock(soap); } int SearchBindingProxy::FindMetadata(const char *endpoint, const char *soap_action, _tse__FindMetadata *tse__FindMetadata, _tse__FindMetadataResponse *tse__FindMetadataResponse) { struct soap *soap = this; struct __tse__FindMetadata soap_tmp___tse__FindMetadata; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/search/wsdl/FindMetadata"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___tse__FindMetadata.tse__FindMetadata = tse__FindMetadata; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___tse__FindMetadata(soap, &soap_tmp___tse__FindMetadata); if (soap_begin_count(soap)) return soap->error; if (soap->mode & SOAP_IO_LENGTH) { if (soap_envelope_begin_out(soap) || soap_putheader(soap) || soap_body_begin_out(soap) || soap_put___tse__FindMetadata(soap, &soap_tmp___tse__FindMetadata, "-tse:FindMetadata", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap)) return soap->error; } if (soap_end_count(soap)) return soap->error; if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action) || soap_envelope_begin_out(soap) || soap_putheader(soap) || soap_body_begin_out(soap) || soap_put___tse__FindMetadata(soap, &soap_tmp___tse__FindMetadata, "-tse:FindMetadata", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!tse__FindMetadataResponse) return soap_closesock(soap); tse__FindMetadataResponse->soap_default(soap); if (soap_begin_recv(soap) || soap_envelope_begin_in(soap) || soap_recv_header(soap) || soap_body_begin_in(soap)) return soap_closesock(soap); tse__FindMetadataResponse->soap_get(soap, "tse:FindMetadataResponse", ""); if (soap->error) return soap_recv_fault(soap, 0); if (soap_body_end_in(soap) || soap_envelope_end_in(soap) || soap_end_recv(soap)) return soap_closesock(soap); return soap_closesock(soap); } int SearchBindingProxy::GetMetadataSearchResults(const char *endpoint, const char *soap_action, _tse__GetMetadataSearchResults *tse__GetMetadataSearchResults, _tse__GetMetadataSearchResultsResponse *tse__GetMetadataSearchResultsResponse) { struct soap *soap = this; struct __tse__GetMetadataSearchResults soap_tmp___tse__GetMetadataSearchResults; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/search/wsdl/GetMetadataSearchResults"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___tse__GetMetadataSearchResults.tse__GetMetadataSearchResults = tse__GetMetadataSearchResults; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___tse__GetMetadataSearchResults(soap, &soap_tmp___tse__GetMetadataSearchResults); if (soap_begin_count(soap)) return soap->error; if (soap->mode & SOAP_IO_LENGTH) { if (soap_envelope_begin_out(soap) || soap_putheader(soap) || soap_body_begin_out(soap) || soap_put___tse__GetMetadataSearchResults(soap, &soap_tmp___tse__GetMetadataSearchResults, "-tse:GetMetadataSearchResults", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap)) return soap->error; } if (soap_end_count(soap)) return soap->error; if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action) || soap_envelope_begin_out(soap) || soap_putheader(soap) || soap_body_begin_out(soap) || soap_put___tse__GetMetadataSearchResults(soap, &soap_tmp___tse__GetMetadataSearchResults, "-tse:GetMetadataSearchResults", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!tse__GetMetadataSearchResultsResponse) return soap_closesock(soap); tse__GetMetadataSearchResultsResponse->soap_default(soap); if (soap_begin_recv(soap) || soap_envelope_begin_in(soap) || soap_recv_header(soap) || soap_body_begin_in(soap)) return soap_closesock(soap); tse__GetMetadataSearchResultsResponse->soap_get(soap, "tse:GetMetadataSearchResultsResponse", ""); if (soap->error) return soap_recv_fault(soap, 0); if (soap_body_end_in(soap) || soap_envelope_end_in(soap) || soap_end_recv(soap)) return soap_closesock(soap); return soap_closesock(soap); } /* End of client proxy code */