|
|
/* soapRecordingBindingProxy.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 thatcompiling, linking, and/or using OpenSSL is allowed.*/
#include "soapRecordingBindingProxy.h"
RecordingBindingProxy::RecordingBindingProxy(){ RecordingBindingProxy_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);}
RecordingBindingProxy::RecordingBindingProxy(const struct soap &_soap) : soap(_soap){ }
RecordingBindingProxy::RecordingBindingProxy(const char *url){ RecordingBindingProxy_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT); soap_endpoint = url;}
RecordingBindingProxy::RecordingBindingProxy(soap_mode iomode){ RecordingBindingProxy_init(iomode, iomode);}
RecordingBindingProxy::RecordingBindingProxy(const char *url, soap_mode iomode){ RecordingBindingProxy_init(iomode, iomode); soap_endpoint = url;}
RecordingBindingProxy::RecordingBindingProxy(soap_mode imode, soap_mode omode){ RecordingBindingProxy_init(imode, omode);}
RecordingBindingProxy::~RecordingBindingProxy(){ }
void RecordingBindingProxy::RecordingBindingProxy_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 RecordingBindingProxy::destroy(){ soap_destroy(this); soap_end(this);}
void RecordingBindingProxy::reset(){ destroy(); soap_done(this); soap_initialize(this); RecordingBindingProxy_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);}
void RecordingBindingProxy::soap_noheader(){ this->header = NULL;}
void RecordingBindingProxy::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 *RecordingBindingProxy::soap_header(){ return this->header;}
const SOAP_ENV__Fault *RecordingBindingProxy::soap_fault(){ return this->fault;}
const char *RecordingBindingProxy::soap_fault_string(){ return *soap_faultstring(this);}
const char *RecordingBindingProxy::soap_fault_detail(){ return *soap_faultdetail(this);}
int RecordingBindingProxy::soap_close_socket(){ return soap_closesock(this);}
int RecordingBindingProxy::soap_force_close_socket(){ return soap_force_closesock(this);}
void RecordingBindingProxy::soap_print_fault(FILE *fd){ ::soap_print_fault(this, fd);}
#ifndef WITH_LEAN
#ifndef WITH_COMPAT
void RecordingBindingProxy::soap_stream_fault(std::ostream& os){ ::soap_stream_fault(this, os);}#endif
char *RecordingBindingProxy::soap_sprint_fault(char *buf, size_t len){ return ::soap_sprint_fault(this, buf, len);}#endif
int RecordingBindingProxy::GetServiceCapabilities(const char *endpoint, const char *soap_action, _trc__GetServiceCapabilities *trc__GetServiceCapabilities, _trc__GetServiceCapabilitiesResponse *trc__GetServiceCapabilitiesResponse){ struct soap *soap = this; struct __trc__GetServiceCapabilities soap_tmp___trc__GetServiceCapabilities; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/recording/wsdl/GetServiceCapabilities"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trc__GetServiceCapabilities.trc__GetServiceCapabilities = trc__GetServiceCapabilities; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trc__GetServiceCapabilities(soap, &soap_tmp___trc__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___trc__GetServiceCapabilities(soap, &soap_tmp___trc__GetServiceCapabilities, "-trc: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___trc__GetServiceCapabilities(soap, &soap_tmp___trc__GetServiceCapabilities, "-trc:GetServiceCapabilities", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trc__GetServiceCapabilitiesResponse) return soap_closesock(soap); trc__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); trc__GetServiceCapabilitiesResponse->soap_get(soap, "trc: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 RecordingBindingProxy::CreateRecording(const char *endpoint, const char *soap_action, _trc__CreateRecording *trc__CreateRecording, _trc__CreateRecordingResponse *trc__CreateRecordingResponse){ struct soap *soap = this; struct __trc__CreateRecording soap_tmp___trc__CreateRecording; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/recording/wsdl/CreateRecording"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trc__CreateRecording.trc__CreateRecording = trc__CreateRecording; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trc__CreateRecording(soap, &soap_tmp___trc__CreateRecording); 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___trc__CreateRecording(soap, &soap_tmp___trc__CreateRecording, "-trc:CreateRecording", 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___trc__CreateRecording(soap, &soap_tmp___trc__CreateRecording, "-trc:CreateRecording", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trc__CreateRecordingResponse) return soap_closesock(soap); trc__CreateRecordingResponse->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); trc__CreateRecordingResponse->soap_get(soap, "trc:CreateRecordingResponse", ""); 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 RecordingBindingProxy::DeleteRecording(const char *endpoint, const char *soap_action, _trc__DeleteRecording *trc__DeleteRecording, _trc__DeleteRecordingResponse *trc__DeleteRecordingResponse){ struct soap *soap = this; struct __trc__DeleteRecording soap_tmp___trc__DeleteRecording; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/recording/wsdl/DeleteRecording"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trc__DeleteRecording.trc__DeleteRecording = trc__DeleteRecording; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trc__DeleteRecording(soap, &soap_tmp___trc__DeleteRecording); 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___trc__DeleteRecording(soap, &soap_tmp___trc__DeleteRecording, "-trc:DeleteRecording", 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___trc__DeleteRecording(soap, &soap_tmp___trc__DeleteRecording, "-trc:DeleteRecording", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trc__DeleteRecordingResponse) return soap_closesock(soap); trc__DeleteRecordingResponse->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); trc__DeleteRecordingResponse->soap_get(soap, "trc:DeleteRecordingResponse", ""); 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 RecordingBindingProxy::GetRecordings(const char *endpoint, const char *soap_action, _trc__GetRecordings *trc__GetRecordings, _trc__GetRecordingsResponse *trc__GetRecordingsResponse){ struct soap *soap = this; struct __trc__GetRecordings soap_tmp___trc__GetRecordings; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/recording/wsdl/GetRecordings"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trc__GetRecordings.trc__GetRecordings = trc__GetRecordings; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trc__GetRecordings(soap, &soap_tmp___trc__GetRecordings); 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___trc__GetRecordings(soap, &soap_tmp___trc__GetRecordings, "-trc:GetRecordings", 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___trc__GetRecordings(soap, &soap_tmp___trc__GetRecordings, "-trc:GetRecordings", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trc__GetRecordingsResponse) return soap_closesock(soap); trc__GetRecordingsResponse->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); trc__GetRecordingsResponse->soap_get(soap, "trc:GetRecordingsResponse", ""); 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 RecordingBindingProxy::SetRecordingConfiguration(const char *endpoint, const char *soap_action, _trc__SetRecordingConfiguration *trc__SetRecordingConfiguration, _trc__SetRecordingConfigurationResponse *trc__SetRecordingConfigurationResponse){ struct soap *soap = this; struct __trc__SetRecordingConfiguration soap_tmp___trc__SetRecordingConfiguration; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/recording/wsdl/SetRecordingConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trc__SetRecordingConfiguration.trc__SetRecordingConfiguration = trc__SetRecordingConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trc__SetRecordingConfiguration(soap, &soap_tmp___trc__SetRecordingConfiguration); 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___trc__SetRecordingConfiguration(soap, &soap_tmp___trc__SetRecordingConfiguration, "-trc:SetRecordingConfiguration", 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___trc__SetRecordingConfiguration(soap, &soap_tmp___trc__SetRecordingConfiguration, "-trc:SetRecordingConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trc__SetRecordingConfigurationResponse) return soap_closesock(soap); trc__SetRecordingConfigurationResponse->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); trc__SetRecordingConfigurationResponse->soap_get(soap, "trc:SetRecordingConfigurationResponse", ""); 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 RecordingBindingProxy::GetRecordingConfiguration(const char *endpoint, const char *soap_action, _trc__GetRecordingConfiguration *trc__GetRecordingConfiguration, _trc__GetRecordingConfigurationResponse *trc__GetRecordingConfigurationResponse){ struct soap *soap = this; struct __trc__GetRecordingConfiguration soap_tmp___trc__GetRecordingConfiguration; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/recording/wsdl/GetRecordingConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trc__GetRecordingConfiguration.trc__GetRecordingConfiguration = trc__GetRecordingConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trc__GetRecordingConfiguration(soap, &soap_tmp___trc__GetRecordingConfiguration); 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___trc__GetRecordingConfiguration(soap, &soap_tmp___trc__GetRecordingConfiguration, "-trc:GetRecordingConfiguration", 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___trc__GetRecordingConfiguration(soap, &soap_tmp___trc__GetRecordingConfiguration, "-trc:GetRecordingConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trc__GetRecordingConfigurationResponse) return soap_closesock(soap); trc__GetRecordingConfigurationResponse->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); trc__GetRecordingConfigurationResponse->soap_get(soap, "trc:GetRecordingConfigurationResponse", ""); 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 RecordingBindingProxy::GetRecordingOptions(const char *endpoint, const char *soap_action, _trc__GetRecordingOptions *trc__GetRecordingOptions, _trc__GetRecordingOptionsResponse *trc__GetRecordingOptionsResponse){ struct soap *soap = this; struct __trc__GetRecordingOptions soap_tmp___trc__GetRecordingOptions; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/recording/wsdl/GetRecordingOptions"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trc__GetRecordingOptions.trc__GetRecordingOptions = trc__GetRecordingOptions; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trc__GetRecordingOptions(soap, &soap_tmp___trc__GetRecordingOptions); 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___trc__GetRecordingOptions(soap, &soap_tmp___trc__GetRecordingOptions, "-trc:GetRecordingOptions", 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___trc__GetRecordingOptions(soap, &soap_tmp___trc__GetRecordingOptions, "-trc:GetRecordingOptions", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trc__GetRecordingOptionsResponse) return soap_closesock(soap); trc__GetRecordingOptionsResponse->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); trc__GetRecordingOptionsResponse->soap_get(soap, "trc:GetRecordingOptionsResponse", ""); 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 RecordingBindingProxy::CreateTrack(const char *endpoint, const char *soap_action, _trc__CreateTrack *trc__CreateTrack, _trc__CreateTrackResponse *trc__CreateTrackResponse){ struct soap *soap = this; struct __trc__CreateTrack soap_tmp___trc__CreateTrack; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/recording/wsdl/CreateTrack"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trc__CreateTrack.trc__CreateTrack = trc__CreateTrack; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trc__CreateTrack(soap, &soap_tmp___trc__CreateTrack); 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___trc__CreateTrack(soap, &soap_tmp___trc__CreateTrack, "-trc:CreateTrack", 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___trc__CreateTrack(soap, &soap_tmp___trc__CreateTrack, "-trc:CreateTrack", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trc__CreateTrackResponse) return soap_closesock(soap); trc__CreateTrackResponse->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); trc__CreateTrackResponse->soap_get(soap, "trc:CreateTrackResponse", ""); 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 RecordingBindingProxy::DeleteTrack(const char *endpoint, const char *soap_action, _trc__DeleteTrack *trc__DeleteTrack, _trc__DeleteTrackResponse *trc__DeleteTrackResponse){ struct soap *soap = this; struct __trc__DeleteTrack soap_tmp___trc__DeleteTrack; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/recording/wsdl/DeleteTrack"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trc__DeleteTrack.trc__DeleteTrack = trc__DeleteTrack; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trc__DeleteTrack(soap, &soap_tmp___trc__DeleteTrack); 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___trc__DeleteTrack(soap, &soap_tmp___trc__DeleteTrack, "-trc:DeleteTrack", 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___trc__DeleteTrack(soap, &soap_tmp___trc__DeleteTrack, "-trc:DeleteTrack", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trc__DeleteTrackResponse) return soap_closesock(soap); trc__DeleteTrackResponse->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); trc__DeleteTrackResponse->soap_get(soap, "trc:DeleteTrackResponse", ""); 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 RecordingBindingProxy::GetTrackConfiguration(const char *endpoint, const char *soap_action, _trc__GetTrackConfiguration *trc__GetTrackConfiguration, _trc__GetTrackConfigurationResponse *trc__GetTrackConfigurationResponse){ struct soap *soap = this; struct __trc__GetTrackConfiguration soap_tmp___trc__GetTrackConfiguration; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/recording/wsdl/GetTrackConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trc__GetTrackConfiguration.trc__GetTrackConfiguration = trc__GetTrackConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trc__GetTrackConfiguration(soap, &soap_tmp___trc__GetTrackConfiguration); 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___trc__GetTrackConfiguration(soap, &soap_tmp___trc__GetTrackConfiguration, "-trc:GetTrackConfiguration", 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___trc__GetTrackConfiguration(soap, &soap_tmp___trc__GetTrackConfiguration, "-trc:GetTrackConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trc__GetTrackConfigurationResponse) return soap_closesock(soap); trc__GetTrackConfigurationResponse->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); trc__GetTrackConfigurationResponse->soap_get(soap, "trc:GetTrackConfigurationResponse", ""); 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 RecordingBindingProxy::SetTrackConfiguration(const char *endpoint, const char *soap_action, _trc__SetTrackConfiguration *trc__SetTrackConfiguration, _trc__SetTrackConfigurationResponse *trc__SetTrackConfigurationResponse){ struct soap *soap = this; struct __trc__SetTrackConfiguration soap_tmp___trc__SetTrackConfiguration; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/recording/wsdl/SetTrackConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trc__SetTrackConfiguration.trc__SetTrackConfiguration = trc__SetTrackConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trc__SetTrackConfiguration(soap, &soap_tmp___trc__SetTrackConfiguration); 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___trc__SetTrackConfiguration(soap, &soap_tmp___trc__SetTrackConfiguration, "-trc:SetTrackConfiguration", 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___trc__SetTrackConfiguration(soap, &soap_tmp___trc__SetTrackConfiguration, "-trc:SetTrackConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trc__SetTrackConfigurationResponse) return soap_closesock(soap); trc__SetTrackConfigurationResponse->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); trc__SetTrackConfigurationResponse->soap_get(soap, "trc:SetTrackConfigurationResponse", ""); 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 RecordingBindingProxy::CreateRecordingJob(const char *endpoint, const char *soap_action, _trc__CreateRecordingJob *trc__CreateRecordingJob, _trc__CreateRecordingJobResponse *trc__CreateRecordingJobResponse){ struct soap *soap = this; struct __trc__CreateRecordingJob soap_tmp___trc__CreateRecordingJob; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/recording/wsdl/CreateRecordingJob"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trc__CreateRecordingJob.trc__CreateRecordingJob = trc__CreateRecordingJob; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trc__CreateRecordingJob(soap, &soap_tmp___trc__CreateRecordingJob); 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___trc__CreateRecordingJob(soap, &soap_tmp___trc__CreateRecordingJob, "-trc:CreateRecordingJob", 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___trc__CreateRecordingJob(soap, &soap_tmp___trc__CreateRecordingJob, "-trc:CreateRecordingJob", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trc__CreateRecordingJobResponse) return soap_closesock(soap); trc__CreateRecordingJobResponse->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); trc__CreateRecordingJobResponse->soap_get(soap, "trc:CreateRecordingJobResponse", ""); 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 RecordingBindingProxy::DeleteRecordingJob(const char *endpoint, const char *soap_action, _trc__DeleteRecordingJob *trc__DeleteRecordingJob, _trc__DeleteRecordingJobResponse *trc__DeleteRecordingJobResponse){ struct soap *soap = this; struct __trc__DeleteRecordingJob soap_tmp___trc__DeleteRecordingJob; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/recording/wsdl/DeleteRecordingJob"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trc__DeleteRecordingJob.trc__DeleteRecordingJob = trc__DeleteRecordingJob; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trc__DeleteRecordingJob(soap, &soap_tmp___trc__DeleteRecordingJob); 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___trc__DeleteRecordingJob(soap, &soap_tmp___trc__DeleteRecordingJob, "-trc:DeleteRecordingJob", 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___trc__DeleteRecordingJob(soap, &soap_tmp___trc__DeleteRecordingJob, "-trc:DeleteRecordingJob", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trc__DeleteRecordingJobResponse) return soap_closesock(soap); trc__DeleteRecordingJobResponse->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); trc__DeleteRecordingJobResponse->soap_get(soap, "trc:DeleteRecordingJobResponse", ""); 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 RecordingBindingProxy::GetRecordingJobs(const char *endpoint, const char *soap_action, _trc__GetRecordingJobs *trc__GetRecordingJobs, _trc__GetRecordingJobsResponse *trc__GetRecordingJobsResponse){ struct soap *soap = this; struct __trc__GetRecordingJobs soap_tmp___trc__GetRecordingJobs; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/recording/wsdl/GetRecordingJobs"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trc__GetRecordingJobs.trc__GetRecordingJobs = trc__GetRecordingJobs; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trc__GetRecordingJobs(soap, &soap_tmp___trc__GetRecordingJobs); 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___trc__GetRecordingJobs(soap, &soap_tmp___trc__GetRecordingJobs, "-trc:GetRecordingJobs", 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___trc__GetRecordingJobs(soap, &soap_tmp___trc__GetRecordingJobs, "-trc:GetRecordingJobs", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trc__GetRecordingJobsResponse) return soap_closesock(soap); trc__GetRecordingJobsResponse->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); trc__GetRecordingJobsResponse->soap_get(soap, "trc:GetRecordingJobsResponse", ""); 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 RecordingBindingProxy::SetRecordingJobConfiguration(const char *endpoint, const char *soap_action, _trc__SetRecordingJobConfiguration *trc__SetRecordingJobConfiguration, _trc__SetRecordingJobConfigurationResponse *trc__SetRecordingJobConfigurationResponse){ struct soap *soap = this; struct __trc__SetRecordingJobConfiguration soap_tmp___trc__SetRecordingJobConfiguration; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/recording/wsdl/SetRecordingJobConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trc__SetRecordingJobConfiguration.trc__SetRecordingJobConfiguration = trc__SetRecordingJobConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trc__SetRecordingJobConfiguration(soap, &soap_tmp___trc__SetRecordingJobConfiguration); 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___trc__SetRecordingJobConfiguration(soap, &soap_tmp___trc__SetRecordingJobConfiguration, "-trc:SetRecordingJobConfiguration", 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___trc__SetRecordingJobConfiguration(soap, &soap_tmp___trc__SetRecordingJobConfiguration, "-trc:SetRecordingJobConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trc__SetRecordingJobConfigurationResponse) return soap_closesock(soap); trc__SetRecordingJobConfigurationResponse->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); trc__SetRecordingJobConfigurationResponse->soap_get(soap, "trc:SetRecordingJobConfigurationResponse", ""); 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 RecordingBindingProxy::GetRecordingJobConfiguration(const char *endpoint, const char *soap_action, _trc__GetRecordingJobConfiguration *trc__GetRecordingJobConfiguration, _trc__GetRecordingJobConfigurationResponse *trc__GetRecordingJobConfigurationResponse){ struct soap *soap = this; struct __trc__GetRecordingJobConfiguration soap_tmp___trc__GetRecordingJobConfiguration; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/recording/wsdl/GetRecordingJobConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trc__GetRecordingJobConfiguration.trc__GetRecordingJobConfiguration = trc__GetRecordingJobConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trc__GetRecordingJobConfiguration(soap, &soap_tmp___trc__GetRecordingJobConfiguration); 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___trc__GetRecordingJobConfiguration(soap, &soap_tmp___trc__GetRecordingJobConfiguration, "-trc:GetRecordingJobConfiguration", 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___trc__GetRecordingJobConfiguration(soap, &soap_tmp___trc__GetRecordingJobConfiguration, "-trc:GetRecordingJobConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trc__GetRecordingJobConfigurationResponse) return soap_closesock(soap); trc__GetRecordingJobConfigurationResponse->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); trc__GetRecordingJobConfigurationResponse->soap_get(soap, "trc:GetRecordingJobConfigurationResponse", ""); 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 RecordingBindingProxy::SetRecordingJobMode(const char *endpoint, const char *soap_action, _trc__SetRecordingJobMode *trc__SetRecordingJobMode, _trc__SetRecordingJobModeResponse *trc__SetRecordingJobModeResponse){ struct soap *soap = this; struct __trc__SetRecordingJobMode soap_tmp___trc__SetRecordingJobMode; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/recording/wsdl/SetRecordingJobMode"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trc__SetRecordingJobMode.trc__SetRecordingJobMode = trc__SetRecordingJobMode; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trc__SetRecordingJobMode(soap, &soap_tmp___trc__SetRecordingJobMode); 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___trc__SetRecordingJobMode(soap, &soap_tmp___trc__SetRecordingJobMode, "-trc:SetRecordingJobMode", 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___trc__SetRecordingJobMode(soap, &soap_tmp___trc__SetRecordingJobMode, "-trc:SetRecordingJobMode", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trc__SetRecordingJobModeResponse) return soap_closesock(soap); trc__SetRecordingJobModeResponse->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); trc__SetRecordingJobModeResponse->soap_get(soap, "trc:SetRecordingJobModeResponse", ""); 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 RecordingBindingProxy::GetRecordingJobState(const char *endpoint, const char *soap_action, _trc__GetRecordingJobState *trc__GetRecordingJobState, _trc__GetRecordingJobStateResponse *trc__GetRecordingJobStateResponse){ struct soap *soap = this; struct __trc__GetRecordingJobState soap_tmp___trc__GetRecordingJobState; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/recording/wsdl/GetRecordingJobState"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trc__GetRecordingJobState.trc__GetRecordingJobState = trc__GetRecordingJobState; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trc__GetRecordingJobState(soap, &soap_tmp___trc__GetRecordingJobState); 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___trc__GetRecordingJobState(soap, &soap_tmp___trc__GetRecordingJobState, "-trc:GetRecordingJobState", 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___trc__GetRecordingJobState(soap, &soap_tmp___trc__GetRecordingJobState, "-trc:GetRecordingJobState", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trc__GetRecordingJobStateResponse) return soap_closesock(soap); trc__GetRecordingJobStateResponse->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); trc__GetRecordingJobStateResponse->soap_get(soap, "trc:GetRecordingJobStateResponse", ""); 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 */
|