/* soapMediaBindingProxy.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 "soapMediaBindingProxy.h" MediaBindingProxy::MediaBindingProxy() { MediaBindingProxy_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT); } MediaBindingProxy::MediaBindingProxy(const struct soap &_soap) : soap(_soap) { } MediaBindingProxy::MediaBindingProxy(const char *url) { MediaBindingProxy_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT); soap_endpoint = url; } MediaBindingProxy::MediaBindingProxy(soap_mode iomode) { MediaBindingProxy_init(iomode, iomode); } MediaBindingProxy::MediaBindingProxy(const char *url, soap_mode iomode) { MediaBindingProxy_init(iomode, iomode); soap_endpoint = url; } MediaBindingProxy::MediaBindingProxy(soap_mode imode, soap_mode omode) { MediaBindingProxy_init(imode, omode); } MediaBindingProxy::~MediaBindingProxy() { } void MediaBindingProxy::MediaBindingProxy_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 MediaBindingProxy::destroy() { soap_destroy(this); soap_end(this); } void MediaBindingProxy::reset() { destroy(); soap_done(this); soap_initialize(this); MediaBindingProxy_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT); } void MediaBindingProxy::soap_noheader() { this->header = NULL; } void MediaBindingProxy::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 *MediaBindingProxy::soap_header() { return this->header; } const SOAP_ENV__Fault *MediaBindingProxy::soap_fault() { return this->fault; } const char *MediaBindingProxy::soap_fault_string() { return *soap_faultstring(this); } const char *MediaBindingProxy::soap_fault_detail() { return *soap_faultdetail(this); } int MediaBindingProxy::soap_close_socket() { return soap_closesock(this); } int MediaBindingProxy::soap_force_close_socket() { return soap_force_closesock(this); } void MediaBindingProxy::soap_print_fault(FILE *fd) { ::soap_print_fault(this, fd); } #ifndef WITH_LEAN #ifndef WITH_COMPAT void MediaBindingProxy::soap_stream_fault(std::ostream& os) { ::soap_stream_fault(this, os); } #endif char *MediaBindingProxy::soap_sprint_fault(char *buf, size_t len) { return ::soap_sprint_fault(this, buf, len); } #endif int MediaBindingProxy::GetServiceCapabilities(const char *endpoint, const char *soap_action, _trt__GetServiceCapabilities *trt__GetServiceCapabilities, _trt__GetServiceCapabilitiesResponse *trt__GetServiceCapabilitiesResponse) { struct soap *soap = this; struct __trt__GetServiceCapabilities soap_tmp___trt__GetServiceCapabilities; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetServiceCapabilities"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetServiceCapabilities.trt__GetServiceCapabilities = trt__GetServiceCapabilities; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetServiceCapabilities(soap, &soap_tmp___trt__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___trt__GetServiceCapabilities(soap, &soap_tmp___trt__GetServiceCapabilities, "-trt: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___trt__GetServiceCapabilities(soap, &soap_tmp___trt__GetServiceCapabilities, "-trt:GetServiceCapabilities", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetServiceCapabilitiesResponse) return soap_closesock(soap); trt__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); trt__GetServiceCapabilitiesResponse->soap_get(soap, "trt: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 MediaBindingProxy::GetVideoSources(const char *endpoint, const char *soap_action, _trt__GetVideoSources *trt__GetVideoSources, _trt__GetVideoSourcesResponse *trt__GetVideoSourcesResponse) { struct soap *soap = this; struct __trt__GetVideoSources soap_tmp___trt__GetVideoSources; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdlGetVideoSources/"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetVideoSources.trt__GetVideoSources = trt__GetVideoSources; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetVideoSources(soap, &soap_tmp___trt__GetVideoSources); 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___trt__GetVideoSources(soap, &soap_tmp___trt__GetVideoSources, "-trt:GetVideoSources", 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___trt__GetVideoSources(soap, &soap_tmp___trt__GetVideoSources, "-trt:GetVideoSources", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetVideoSourcesResponse) return soap_closesock(soap); trt__GetVideoSourcesResponse->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); trt__GetVideoSourcesResponse->soap_get(soap, "trt:GetVideoSourcesResponse", ""); 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 MediaBindingProxy::GetAudioSources(const char *endpoint, const char *soap_action, _trt__GetAudioSources *trt__GetAudioSources, _trt__GetAudioSourcesResponse *trt__GetAudioSourcesResponse) { struct soap *soap = this; struct __trt__GetAudioSources soap_tmp___trt__GetAudioSources; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioSources"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetAudioSources.trt__GetAudioSources = trt__GetAudioSources; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetAudioSources(soap, &soap_tmp___trt__GetAudioSources); 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___trt__GetAudioSources(soap, &soap_tmp___trt__GetAudioSources, "-trt:GetAudioSources", 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___trt__GetAudioSources(soap, &soap_tmp___trt__GetAudioSources, "-trt:GetAudioSources", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetAudioSourcesResponse) return soap_closesock(soap); trt__GetAudioSourcesResponse->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); trt__GetAudioSourcesResponse->soap_get(soap, "trt:GetAudioSourcesResponse", ""); 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 MediaBindingProxy::GetAudioOutputs(const char *endpoint, const char *soap_action, _trt__GetAudioOutputs *trt__GetAudioOutputs, _trt__GetAudioOutputsResponse *trt__GetAudioOutputsResponse) { struct soap *soap = this; struct __trt__GetAudioOutputs soap_tmp___trt__GetAudioOutputs; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioOutputs"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetAudioOutputs.trt__GetAudioOutputs = trt__GetAudioOutputs; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetAudioOutputs(soap, &soap_tmp___trt__GetAudioOutputs); 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___trt__GetAudioOutputs(soap, &soap_tmp___trt__GetAudioOutputs, "-trt:GetAudioOutputs", 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___trt__GetAudioOutputs(soap, &soap_tmp___trt__GetAudioOutputs, "-trt:GetAudioOutputs", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetAudioOutputsResponse) return soap_closesock(soap); trt__GetAudioOutputsResponse->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); trt__GetAudioOutputsResponse->soap_get(soap, "trt:GetAudioOutputsResponse", ""); 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 MediaBindingProxy::CreateProfile(const char *endpoint, const char *soap_action, _trt__CreateProfile *trt__CreateProfile, _trt__CreateProfileResponse *trt__CreateProfileResponse) { struct soap *soap = this; struct __trt__CreateProfile soap_tmp___trt__CreateProfile; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/CreateProfile"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__CreateProfile.trt__CreateProfile = trt__CreateProfile; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__CreateProfile(soap, &soap_tmp___trt__CreateProfile); 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___trt__CreateProfile(soap, &soap_tmp___trt__CreateProfile, "-trt:CreateProfile", 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___trt__CreateProfile(soap, &soap_tmp___trt__CreateProfile, "-trt:CreateProfile", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__CreateProfileResponse) return soap_closesock(soap); trt__CreateProfileResponse->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); trt__CreateProfileResponse->soap_get(soap, "trt:CreateProfileResponse", ""); 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 MediaBindingProxy::GetProfile(const char *endpoint, const char *soap_action, _trt__GetProfile *trt__GetProfile, _trt__GetProfileResponse *trt__GetProfileResponse) { struct soap *soap = this; struct __trt__GetProfile soap_tmp___trt__GetProfile; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdlGetProfile/"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetProfile.trt__GetProfile = trt__GetProfile; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetProfile(soap, &soap_tmp___trt__GetProfile); 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___trt__GetProfile(soap, &soap_tmp___trt__GetProfile, "-trt:GetProfile", 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___trt__GetProfile(soap, &soap_tmp___trt__GetProfile, "-trt:GetProfile", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetProfileResponse) return soap_closesock(soap); trt__GetProfileResponse->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); trt__GetProfileResponse->soap_get(soap, "trt:GetProfileResponse", ""); 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 MediaBindingProxy::GetProfiles(const char *endpoint, const char *soap_action, _trt__GetProfiles *trt__GetProfiles, _trt__GetProfilesResponse *trt__GetProfilesResponse) { struct soap *soap = this; struct __trt__GetProfiles soap_tmp___trt__GetProfiles; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetProfiles"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetProfiles.trt__GetProfiles = trt__GetProfiles; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetProfiles(soap, &soap_tmp___trt__GetProfiles); 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___trt__GetProfiles(soap, &soap_tmp___trt__GetProfiles, "-trt:GetProfiles", 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___trt__GetProfiles(soap, &soap_tmp___trt__GetProfiles, "-trt:GetProfiles", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetProfilesResponse) return soap_closesock(soap); trt__GetProfilesResponse->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); trt__GetProfilesResponse->soap_get(soap, "trt:GetProfilesResponse", ""); 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 MediaBindingProxy::AddVideoEncoderConfiguration(const char *endpoint, const char *soap_action, _trt__AddVideoEncoderConfiguration *trt__AddVideoEncoderConfiguration, _trt__AddVideoEncoderConfigurationResponse *trt__AddVideoEncoderConfigurationResponse) { struct soap *soap = this; struct __trt__AddVideoEncoderConfiguration soap_tmp___trt__AddVideoEncoderConfiguration; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/AddVideoEncoderConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__AddVideoEncoderConfiguration.trt__AddVideoEncoderConfiguration = trt__AddVideoEncoderConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__AddVideoEncoderConfiguration(soap, &soap_tmp___trt__AddVideoEncoderConfiguration); 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___trt__AddVideoEncoderConfiguration(soap, &soap_tmp___trt__AddVideoEncoderConfiguration, "-trt:AddVideoEncoderConfiguration", 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___trt__AddVideoEncoderConfiguration(soap, &soap_tmp___trt__AddVideoEncoderConfiguration, "-trt:AddVideoEncoderConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__AddVideoEncoderConfigurationResponse) return soap_closesock(soap); trt__AddVideoEncoderConfigurationResponse->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); trt__AddVideoEncoderConfigurationResponse->soap_get(soap, "trt:AddVideoEncoderConfigurationResponse", ""); 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 MediaBindingProxy::AddVideoSourceConfiguration(const char *endpoint, const char *soap_action, _trt__AddVideoSourceConfiguration *trt__AddVideoSourceConfiguration, _trt__AddVideoSourceConfigurationResponse *trt__AddVideoSourceConfigurationResponse) { struct soap *soap = this; struct __trt__AddVideoSourceConfiguration soap_tmp___trt__AddVideoSourceConfiguration; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/AddVideoSourceConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__AddVideoSourceConfiguration.trt__AddVideoSourceConfiguration = trt__AddVideoSourceConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__AddVideoSourceConfiguration(soap, &soap_tmp___trt__AddVideoSourceConfiguration); 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___trt__AddVideoSourceConfiguration(soap, &soap_tmp___trt__AddVideoSourceConfiguration, "-trt:AddVideoSourceConfiguration", 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___trt__AddVideoSourceConfiguration(soap, &soap_tmp___trt__AddVideoSourceConfiguration, "-trt:AddVideoSourceConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__AddVideoSourceConfigurationResponse) return soap_closesock(soap); trt__AddVideoSourceConfigurationResponse->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); trt__AddVideoSourceConfigurationResponse->soap_get(soap, "trt:AddVideoSourceConfigurationResponse", ""); 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 MediaBindingProxy::AddAudioEncoderConfiguration(const char *endpoint, const char *soap_action, _trt__AddAudioEncoderConfiguration *trt__AddAudioEncoderConfiguration, _trt__AddAudioEncoderConfigurationResponse *trt__AddAudioEncoderConfigurationResponse) { struct soap *soap = this; struct __trt__AddAudioEncoderConfiguration soap_tmp___trt__AddAudioEncoderConfiguration; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/AddAudioEncoderConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__AddAudioEncoderConfiguration.trt__AddAudioEncoderConfiguration = trt__AddAudioEncoderConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__AddAudioEncoderConfiguration(soap, &soap_tmp___trt__AddAudioEncoderConfiguration); 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___trt__AddAudioEncoderConfiguration(soap, &soap_tmp___trt__AddAudioEncoderConfiguration, "-trt:AddAudioEncoderConfiguration", 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___trt__AddAudioEncoderConfiguration(soap, &soap_tmp___trt__AddAudioEncoderConfiguration, "-trt:AddAudioEncoderConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__AddAudioEncoderConfigurationResponse) return soap_closesock(soap); trt__AddAudioEncoderConfigurationResponse->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); trt__AddAudioEncoderConfigurationResponse->soap_get(soap, "trt:AddAudioEncoderConfigurationResponse", ""); 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 MediaBindingProxy::AddAudioSourceConfiguration(const char *endpoint, const char *soap_action, _trt__AddAudioSourceConfiguration *trt__AddAudioSourceConfiguration, _trt__AddAudioSourceConfigurationResponse *trt__AddAudioSourceConfigurationResponse) { struct soap *soap = this; struct __trt__AddAudioSourceConfiguration soap_tmp___trt__AddAudioSourceConfiguration; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/AddAudioSourceConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__AddAudioSourceConfiguration.trt__AddAudioSourceConfiguration = trt__AddAudioSourceConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__AddAudioSourceConfiguration(soap, &soap_tmp___trt__AddAudioSourceConfiguration); 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___trt__AddAudioSourceConfiguration(soap, &soap_tmp___trt__AddAudioSourceConfiguration, "-trt:AddAudioSourceConfiguration", 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___trt__AddAudioSourceConfiguration(soap, &soap_tmp___trt__AddAudioSourceConfiguration, "-trt:AddAudioSourceConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__AddAudioSourceConfigurationResponse) return soap_closesock(soap); trt__AddAudioSourceConfigurationResponse->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); trt__AddAudioSourceConfigurationResponse->soap_get(soap, "trt:AddAudioSourceConfigurationResponse", ""); 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 MediaBindingProxy::AddPTZConfiguration(const char *endpoint, const char *soap_action, _trt__AddPTZConfiguration *trt__AddPTZConfiguration, _trt__AddPTZConfigurationResponse *trt__AddPTZConfigurationResponse) { struct soap *soap = this; struct __trt__AddPTZConfiguration soap_tmp___trt__AddPTZConfiguration; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/AddPTZConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__AddPTZConfiguration.trt__AddPTZConfiguration = trt__AddPTZConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__AddPTZConfiguration(soap, &soap_tmp___trt__AddPTZConfiguration); 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___trt__AddPTZConfiguration(soap, &soap_tmp___trt__AddPTZConfiguration, "-trt:AddPTZConfiguration", 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___trt__AddPTZConfiguration(soap, &soap_tmp___trt__AddPTZConfiguration, "-trt:AddPTZConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__AddPTZConfigurationResponse) return soap_closesock(soap); trt__AddPTZConfigurationResponse->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); trt__AddPTZConfigurationResponse->soap_get(soap, "trt:AddPTZConfigurationResponse", ""); 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 MediaBindingProxy::AddVideoAnalyticsConfiguration(const char *endpoint, const char *soap_action, _trt__AddVideoAnalyticsConfiguration *trt__AddVideoAnalyticsConfiguration, _trt__AddVideoAnalyticsConfigurationResponse *trt__AddVideoAnalyticsConfigurationResponse) { struct soap *soap = this; struct __trt__AddVideoAnalyticsConfiguration soap_tmp___trt__AddVideoAnalyticsConfiguration; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/AddVideoAnalyticsConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__AddVideoAnalyticsConfiguration.trt__AddVideoAnalyticsConfiguration = trt__AddVideoAnalyticsConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__AddVideoAnalyticsConfiguration(soap, &soap_tmp___trt__AddVideoAnalyticsConfiguration); 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___trt__AddVideoAnalyticsConfiguration(soap, &soap_tmp___trt__AddVideoAnalyticsConfiguration, "-trt:AddVideoAnalyticsConfiguration", 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___trt__AddVideoAnalyticsConfiguration(soap, &soap_tmp___trt__AddVideoAnalyticsConfiguration, "-trt:AddVideoAnalyticsConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__AddVideoAnalyticsConfigurationResponse) return soap_closesock(soap); trt__AddVideoAnalyticsConfigurationResponse->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); trt__AddVideoAnalyticsConfigurationResponse->soap_get(soap, "trt:AddVideoAnalyticsConfigurationResponse", ""); 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 MediaBindingProxy::AddMetadataConfiguration(const char *endpoint, const char *soap_action, _trt__AddMetadataConfiguration *trt__AddMetadataConfiguration, _trt__AddMetadataConfigurationResponse *trt__AddMetadataConfigurationResponse) { struct soap *soap = this; struct __trt__AddMetadataConfiguration soap_tmp___trt__AddMetadataConfiguration; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/AddMetadataConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__AddMetadataConfiguration.trt__AddMetadataConfiguration = trt__AddMetadataConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__AddMetadataConfiguration(soap, &soap_tmp___trt__AddMetadataConfiguration); 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___trt__AddMetadataConfiguration(soap, &soap_tmp___trt__AddMetadataConfiguration, "-trt:AddMetadataConfiguration", 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___trt__AddMetadataConfiguration(soap, &soap_tmp___trt__AddMetadataConfiguration, "-trt:AddMetadataConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__AddMetadataConfigurationResponse) return soap_closesock(soap); trt__AddMetadataConfigurationResponse->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); trt__AddMetadataConfigurationResponse->soap_get(soap, "trt:AddMetadataConfigurationResponse", ""); 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 MediaBindingProxy::AddAudioOutputConfiguration(const char *endpoint, const char *soap_action, _trt__AddAudioOutputConfiguration *trt__AddAudioOutputConfiguration, _trt__AddAudioOutputConfigurationResponse *trt__AddAudioOutputConfigurationResponse) { struct soap *soap = this; struct __trt__AddAudioOutputConfiguration soap_tmp___trt__AddAudioOutputConfiguration; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/AddAudioOutputConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__AddAudioOutputConfiguration.trt__AddAudioOutputConfiguration = trt__AddAudioOutputConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__AddAudioOutputConfiguration(soap, &soap_tmp___trt__AddAudioOutputConfiguration); 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___trt__AddAudioOutputConfiguration(soap, &soap_tmp___trt__AddAudioOutputConfiguration, "-trt:AddAudioOutputConfiguration", 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___trt__AddAudioOutputConfiguration(soap, &soap_tmp___trt__AddAudioOutputConfiguration, "-trt:AddAudioOutputConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__AddAudioOutputConfigurationResponse) return soap_closesock(soap); trt__AddAudioOutputConfigurationResponse->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); trt__AddAudioOutputConfigurationResponse->soap_get(soap, "trt:AddAudioOutputConfigurationResponse", ""); 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 MediaBindingProxy::AddAudioDecoderConfiguration(const char *endpoint, const char *soap_action, _trt__AddAudioDecoderConfiguration *trt__AddAudioDecoderConfiguration, _trt__AddAudioDecoderConfigurationResponse *trt__AddAudioDecoderConfigurationResponse) { struct soap *soap = this; struct __trt__AddAudioDecoderConfiguration soap_tmp___trt__AddAudioDecoderConfiguration; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/AddAudioDecoderConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__AddAudioDecoderConfiguration.trt__AddAudioDecoderConfiguration = trt__AddAudioDecoderConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__AddAudioDecoderConfiguration(soap, &soap_tmp___trt__AddAudioDecoderConfiguration); 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___trt__AddAudioDecoderConfiguration(soap, &soap_tmp___trt__AddAudioDecoderConfiguration, "-trt:AddAudioDecoderConfiguration", 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___trt__AddAudioDecoderConfiguration(soap, &soap_tmp___trt__AddAudioDecoderConfiguration, "-trt:AddAudioDecoderConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__AddAudioDecoderConfigurationResponse) return soap_closesock(soap); trt__AddAudioDecoderConfigurationResponse->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); trt__AddAudioDecoderConfigurationResponse->soap_get(soap, "trt:AddAudioDecoderConfigurationResponse", ""); 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 MediaBindingProxy::RemoveVideoEncoderConfiguration(const char *endpoint, const char *soap_action, _trt__RemoveVideoEncoderConfiguration *trt__RemoveVideoEncoderConfiguration, _trt__RemoveVideoEncoderConfigurationResponse *trt__RemoveVideoEncoderConfigurationResponse) { struct soap *soap = this; struct __trt__RemoveVideoEncoderConfiguration soap_tmp___trt__RemoveVideoEncoderConfiguration; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/RemoveVideoEncoderConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__RemoveVideoEncoderConfiguration.trt__RemoveVideoEncoderConfiguration = trt__RemoveVideoEncoderConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__RemoveVideoEncoderConfiguration(soap, &soap_tmp___trt__RemoveVideoEncoderConfiguration); 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___trt__RemoveVideoEncoderConfiguration(soap, &soap_tmp___trt__RemoveVideoEncoderConfiguration, "-trt:RemoveVideoEncoderConfiguration", 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___trt__RemoveVideoEncoderConfiguration(soap, &soap_tmp___trt__RemoveVideoEncoderConfiguration, "-trt:RemoveVideoEncoderConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__RemoveVideoEncoderConfigurationResponse) return soap_closesock(soap); trt__RemoveVideoEncoderConfigurationResponse->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); trt__RemoveVideoEncoderConfigurationResponse->soap_get(soap, "trt:RemoveVideoEncoderConfigurationResponse", ""); 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 MediaBindingProxy::RemoveVideoSourceConfiguration(const char *endpoint, const char *soap_action, _trt__RemoveVideoSourceConfiguration *trt__RemoveVideoSourceConfiguration, _trt__RemoveVideoSourceConfigurationResponse *trt__RemoveVideoSourceConfigurationResponse) { struct soap *soap = this; struct __trt__RemoveVideoSourceConfiguration soap_tmp___trt__RemoveVideoSourceConfiguration; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/RemoveVideoSourceConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__RemoveVideoSourceConfiguration.trt__RemoveVideoSourceConfiguration = trt__RemoveVideoSourceConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__RemoveVideoSourceConfiguration(soap, &soap_tmp___trt__RemoveVideoSourceConfiguration); 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___trt__RemoveVideoSourceConfiguration(soap, &soap_tmp___trt__RemoveVideoSourceConfiguration, "-trt:RemoveVideoSourceConfiguration", 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___trt__RemoveVideoSourceConfiguration(soap, &soap_tmp___trt__RemoveVideoSourceConfiguration, "-trt:RemoveVideoSourceConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__RemoveVideoSourceConfigurationResponse) return soap_closesock(soap); trt__RemoveVideoSourceConfigurationResponse->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); trt__RemoveVideoSourceConfigurationResponse->soap_get(soap, "trt:RemoveVideoSourceConfigurationResponse", ""); 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 MediaBindingProxy::RemoveAudioEncoderConfiguration(const char *endpoint, const char *soap_action, _trt__RemoveAudioEncoderConfiguration *trt__RemoveAudioEncoderConfiguration, _trt__RemoveAudioEncoderConfigurationResponse *trt__RemoveAudioEncoderConfigurationResponse) { struct soap *soap = this; struct __trt__RemoveAudioEncoderConfiguration soap_tmp___trt__RemoveAudioEncoderConfiguration; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/RemoveAudioEncoderConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__RemoveAudioEncoderConfiguration.trt__RemoveAudioEncoderConfiguration = trt__RemoveAudioEncoderConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__RemoveAudioEncoderConfiguration(soap, &soap_tmp___trt__RemoveAudioEncoderConfiguration); 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___trt__RemoveAudioEncoderConfiguration(soap, &soap_tmp___trt__RemoveAudioEncoderConfiguration, "-trt:RemoveAudioEncoderConfiguration", 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___trt__RemoveAudioEncoderConfiguration(soap, &soap_tmp___trt__RemoveAudioEncoderConfiguration, "-trt:RemoveAudioEncoderConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__RemoveAudioEncoderConfigurationResponse) return soap_closesock(soap); trt__RemoveAudioEncoderConfigurationResponse->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); trt__RemoveAudioEncoderConfigurationResponse->soap_get(soap, "trt:RemoveAudioEncoderConfigurationResponse", ""); 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 MediaBindingProxy::RemoveAudioSourceConfiguration(const char *endpoint, const char *soap_action, _trt__RemoveAudioSourceConfiguration *trt__RemoveAudioSourceConfiguration, _trt__RemoveAudioSourceConfigurationResponse *trt__RemoveAudioSourceConfigurationResponse) { struct soap *soap = this; struct __trt__RemoveAudioSourceConfiguration soap_tmp___trt__RemoveAudioSourceConfiguration; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/RemoveAudioSourceConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__RemoveAudioSourceConfiguration.trt__RemoveAudioSourceConfiguration = trt__RemoveAudioSourceConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__RemoveAudioSourceConfiguration(soap, &soap_tmp___trt__RemoveAudioSourceConfiguration); 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___trt__RemoveAudioSourceConfiguration(soap, &soap_tmp___trt__RemoveAudioSourceConfiguration, "-trt:RemoveAudioSourceConfiguration", 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___trt__RemoveAudioSourceConfiguration(soap, &soap_tmp___trt__RemoveAudioSourceConfiguration, "-trt:RemoveAudioSourceConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__RemoveAudioSourceConfigurationResponse) return soap_closesock(soap); trt__RemoveAudioSourceConfigurationResponse->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); trt__RemoveAudioSourceConfigurationResponse->soap_get(soap, "trt:RemoveAudioSourceConfigurationResponse", ""); 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 MediaBindingProxy::RemovePTZConfiguration(const char *endpoint, const char *soap_action, _trt__RemovePTZConfiguration *trt__RemovePTZConfiguration, _trt__RemovePTZConfigurationResponse *trt__RemovePTZConfigurationResponse) { struct soap *soap = this; struct __trt__RemovePTZConfiguration soap_tmp___trt__RemovePTZConfiguration; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/RemovePTZConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__RemovePTZConfiguration.trt__RemovePTZConfiguration = trt__RemovePTZConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__RemovePTZConfiguration(soap, &soap_tmp___trt__RemovePTZConfiguration); 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___trt__RemovePTZConfiguration(soap, &soap_tmp___trt__RemovePTZConfiguration, "-trt:RemovePTZConfiguration", 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___trt__RemovePTZConfiguration(soap, &soap_tmp___trt__RemovePTZConfiguration, "-trt:RemovePTZConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__RemovePTZConfigurationResponse) return soap_closesock(soap); trt__RemovePTZConfigurationResponse->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); trt__RemovePTZConfigurationResponse->soap_get(soap, "trt:RemovePTZConfigurationResponse", ""); 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 MediaBindingProxy::RemoveVideoAnalyticsConfiguration(const char *endpoint, const char *soap_action, _trt__RemoveVideoAnalyticsConfiguration *trt__RemoveVideoAnalyticsConfiguration, _trt__RemoveVideoAnalyticsConfigurationResponse *trt__RemoveVideoAnalyticsConfigurationResponse) { struct soap *soap = this; struct __trt__RemoveVideoAnalyticsConfiguration soap_tmp___trt__RemoveVideoAnalyticsConfiguration; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/RemoveVideoAnalyticsConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__RemoveVideoAnalyticsConfiguration.trt__RemoveVideoAnalyticsConfiguration = trt__RemoveVideoAnalyticsConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__RemoveVideoAnalyticsConfiguration(soap, &soap_tmp___trt__RemoveVideoAnalyticsConfiguration); 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___trt__RemoveVideoAnalyticsConfiguration(soap, &soap_tmp___trt__RemoveVideoAnalyticsConfiguration, "-trt:RemoveVideoAnalyticsConfiguration", 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___trt__RemoveVideoAnalyticsConfiguration(soap, &soap_tmp___trt__RemoveVideoAnalyticsConfiguration, "-trt:RemoveVideoAnalyticsConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__RemoveVideoAnalyticsConfigurationResponse) return soap_closesock(soap); trt__RemoveVideoAnalyticsConfigurationResponse->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); trt__RemoveVideoAnalyticsConfigurationResponse->soap_get(soap, "trt:RemoveVideoAnalyticsConfigurationResponse", ""); 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 MediaBindingProxy::RemoveMetadataConfiguration(const char *endpoint, const char *soap_action, _trt__RemoveMetadataConfiguration *trt__RemoveMetadataConfiguration, _trt__RemoveMetadataConfigurationResponse *trt__RemoveMetadataConfigurationResponse) { struct soap *soap = this; struct __trt__RemoveMetadataConfiguration soap_tmp___trt__RemoveMetadataConfiguration; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/RemoveMetadataConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__RemoveMetadataConfiguration.trt__RemoveMetadataConfiguration = trt__RemoveMetadataConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__RemoveMetadataConfiguration(soap, &soap_tmp___trt__RemoveMetadataConfiguration); 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___trt__RemoveMetadataConfiguration(soap, &soap_tmp___trt__RemoveMetadataConfiguration, "-trt:RemoveMetadataConfiguration", 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___trt__RemoveMetadataConfiguration(soap, &soap_tmp___trt__RemoveMetadataConfiguration, "-trt:RemoveMetadataConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__RemoveMetadataConfigurationResponse) return soap_closesock(soap); trt__RemoveMetadataConfigurationResponse->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); trt__RemoveMetadataConfigurationResponse->soap_get(soap, "trt:RemoveMetadataConfigurationResponse", ""); 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 MediaBindingProxy::RemoveAudioOutputConfiguration(const char *endpoint, const char *soap_action, _trt__RemoveAudioOutputConfiguration *trt__RemoveAudioOutputConfiguration, _trt__RemoveAudioOutputConfigurationResponse *trt__RemoveAudioOutputConfigurationResponse) { struct soap *soap = this; struct __trt__RemoveAudioOutputConfiguration soap_tmp___trt__RemoveAudioOutputConfiguration; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/RemoveAudioOutputConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__RemoveAudioOutputConfiguration.trt__RemoveAudioOutputConfiguration = trt__RemoveAudioOutputConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__RemoveAudioOutputConfiguration(soap, &soap_tmp___trt__RemoveAudioOutputConfiguration); 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___trt__RemoveAudioOutputConfiguration(soap, &soap_tmp___trt__RemoveAudioOutputConfiguration, "-trt:RemoveAudioOutputConfiguration", 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___trt__RemoveAudioOutputConfiguration(soap, &soap_tmp___trt__RemoveAudioOutputConfiguration, "-trt:RemoveAudioOutputConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__RemoveAudioOutputConfigurationResponse) return soap_closesock(soap); trt__RemoveAudioOutputConfigurationResponse->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); trt__RemoveAudioOutputConfigurationResponse->soap_get(soap, "trt:RemoveAudioOutputConfigurationResponse", ""); 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 MediaBindingProxy::RemoveAudioDecoderConfiguration(const char *endpoint, const char *soap_action, _trt__RemoveAudioDecoderConfiguration *trt__RemoveAudioDecoderConfiguration, _trt__RemoveAudioDecoderConfigurationResponse *trt__RemoveAudioDecoderConfigurationResponse) { struct soap *soap = this; struct __trt__RemoveAudioDecoderConfiguration soap_tmp___trt__RemoveAudioDecoderConfiguration; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/RemoveAudioDecoderConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__RemoveAudioDecoderConfiguration.trt__RemoveAudioDecoderConfiguration = trt__RemoveAudioDecoderConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__RemoveAudioDecoderConfiguration(soap, &soap_tmp___trt__RemoveAudioDecoderConfiguration); 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___trt__RemoveAudioDecoderConfiguration(soap, &soap_tmp___trt__RemoveAudioDecoderConfiguration, "-trt:RemoveAudioDecoderConfiguration", 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___trt__RemoveAudioDecoderConfiguration(soap, &soap_tmp___trt__RemoveAudioDecoderConfiguration, "-trt:RemoveAudioDecoderConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__RemoveAudioDecoderConfigurationResponse) return soap_closesock(soap); trt__RemoveAudioDecoderConfigurationResponse->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); trt__RemoveAudioDecoderConfigurationResponse->soap_get(soap, "trt:RemoveAudioDecoderConfigurationResponse", ""); 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 MediaBindingProxy::DeleteProfile(const char *endpoint, const char *soap_action, _trt__DeleteProfile *trt__DeleteProfile, _trt__DeleteProfileResponse *trt__DeleteProfileResponse) { struct soap *soap = this; struct __trt__DeleteProfile soap_tmp___trt__DeleteProfile; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/DeleteProfile"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__DeleteProfile.trt__DeleteProfile = trt__DeleteProfile; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__DeleteProfile(soap, &soap_tmp___trt__DeleteProfile); 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___trt__DeleteProfile(soap, &soap_tmp___trt__DeleteProfile, "-trt:DeleteProfile", 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___trt__DeleteProfile(soap, &soap_tmp___trt__DeleteProfile, "-trt:DeleteProfile", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__DeleteProfileResponse) return soap_closesock(soap); trt__DeleteProfileResponse->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); trt__DeleteProfileResponse->soap_get(soap, "trt:DeleteProfileResponse", ""); 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 MediaBindingProxy::GetVideoSourceConfigurations(const char *endpoint, const char *soap_action, _trt__GetVideoSourceConfigurations *trt__GetVideoSourceConfigurations, _trt__GetVideoSourceConfigurationsResponse *trt__GetVideoSourceConfigurationsResponse) { struct soap *soap = this; struct __trt__GetVideoSourceConfigurations soap_tmp___trt__GetVideoSourceConfigurations; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetVideoSourceConfigurations"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetVideoSourceConfigurations.trt__GetVideoSourceConfigurations = trt__GetVideoSourceConfigurations; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetVideoSourceConfigurations(soap, &soap_tmp___trt__GetVideoSourceConfigurations); 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___trt__GetVideoSourceConfigurations(soap, &soap_tmp___trt__GetVideoSourceConfigurations, "-trt:GetVideoSourceConfigurations", 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___trt__GetVideoSourceConfigurations(soap, &soap_tmp___trt__GetVideoSourceConfigurations, "-trt:GetVideoSourceConfigurations", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetVideoSourceConfigurationsResponse) return soap_closesock(soap); trt__GetVideoSourceConfigurationsResponse->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); trt__GetVideoSourceConfigurationsResponse->soap_get(soap, "trt:GetVideoSourceConfigurationsResponse", ""); 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 MediaBindingProxy::GetVideoEncoderConfigurations(const char *endpoint, const char *soap_action, _trt__GetVideoEncoderConfigurations *trt__GetVideoEncoderConfigurations, _trt__GetVideoEncoderConfigurationsResponse *trt__GetVideoEncoderConfigurationsResponse) { struct soap *soap = this; struct __trt__GetVideoEncoderConfigurations soap_tmp___trt__GetVideoEncoderConfigurations; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetVideoEncoderConfigurations"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetVideoEncoderConfigurations.trt__GetVideoEncoderConfigurations = trt__GetVideoEncoderConfigurations; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetVideoEncoderConfigurations(soap, &soap_tmp___trt__GetVideoEncoderConfigurations); 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___trt__GetVideoEncoderConfigurations(soap, &soap_tmp___trt__GetVideoEncoderConfigurations, "-trt:GetVideoEncoderConfigurations", 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___trt__GetVideoEncoderConfigurations(soap, &soap_tmp___trt__GetVideoEncoderConfigurations, "-trt:GetVideoEncoderConfigurations", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetVideoEncoderConfigurationsResponse) return soap_closesock(soap); trt__GetVideoEncoderConfigurationsResponse->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); trt__GetVideoEncoderConfigurationsResponse->soap_get(soap, "trt:GetVideoEncoderConfigurationsResponse", ""); 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 MediaBindingProxy::GetAudioSourceConfigurations(const char *endpoint, const char *soap_action, _trt__GetAudioSourceConfigurations *trt__GetAudioSourceConfigurations, _trt__GetAudioSourceConfigurationsResponse *trt__GetAudioSourceConfigurationsResponse) { struct soap *soap = this; struct __trt__GetAudioSourceConfigurations soap_tmp___trt__GetAudioSourceConfigurations; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdlGetAudioSourceConfigurations/"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetAudioSourceConfigurations.trt__GetAudioSourceConfigurations = trt__GetAudioSourceConfigurations; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetAudioSourceConfigurations(soap, &soap_tmp___trt__GetAudioSourceConfigurations); 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___trt__GetAudioSourceConfigurations(soap, &soap_tmp___trt__GetAudioSourceConfigurations, "-trt:GetAudioSourceConfigurations", 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___trt__GetAudioSourceConfigurations(soap, &soap_tmp___trt__GetAudioSourceConfigurations, "-trt:GetAudioSourceConfigurations", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetAudioSourceConfigurationsResponse) return soap_closesock(soap); trt__GetAudioSourceConfigurationsResponse->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); trt__GetAudioSourceConfigurationsResponse->soap_get(soap, "trt:GetAudioSourceConfigurationsResponse", ""); 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 MediaBindingProxy::GetAudioEncoderConfigurations(const char *endpoint, const char *soap_action, _trt__GetAudioEncoderConfigurations *trt__GetAudioEncoderConfigurations, _trt__GetAudioEncoderConfigurationsResponse *trt__GetAudioEncoderConfigurationsResponse) { struct soap *soap = this; struct __trt__GetAudioEncoderConfigurations soap_tmp___trt__GetAudioEncoderConfigurations; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioEncoderConfigurations"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetAudioEncoderConfigurations.trt__GetAudioEncoderConfigurations = trt__GetAudioEncoderConfigurations; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetAudioEncoderConfigurations(soap, &soap_tmp___trt__GetAudioEncoderConfigurations); 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___trt__GetAudioEncoderConfigurations(soap, &soap_tmp___trt__GetAudioEncoderConfigurations, "-trt:GetAudioEncoderConfigurations", 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___trt__GetAudioEncoderConfigurations(soap, &soap_tmp___trt__GetAudioEncoderConfigurations, "-trt:GetAudioEncoderConfigurations", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetAudioEncoderConfigurationsResponse) return soap_closesock(soap); trt__GetAudioEncoderConfigurationsResponse->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); trt__GetAudioEncoderConfigurationsResponse->soap_get(soap, "trt:GetAudioEncoderConfigurationsResponse", ""); 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 MediaBindingProxy::GetVideoAnalyticsConfigurations(const char *endpoint, const char *soap_action, _trt__GetVideoAnalyticsConfigurations *trt__GetVideoAnalyticsConfigurations, _trt__GetVideoAnalyticsConfigurationsResponse *trt__GetVideoAnalyticsConfigurationsResponse) { struct soap *soap = this; struct __trt__GetVideoAnalyticsConfigurations soap_tmp___trt__GetVideoAnalyticsConfigurations; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetVideoAnalyticsConfigurations"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetVideoAnalyticsConfigurations.trt__GetVideoAnalyticsConfigurations = trt__GetVideoAnalyticsConfigurations; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetVideoAnalyticsConfigurations(soap, &soap_tmp___trt__GetVideoAnalyticsConfigurations); 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___trt__GetVideoAnalyticsConfigurations(soap, &soap_tmp___trt__GetVideoAnalyticsConfigurations, "-trt:GetVideoAnalyticsConfigurations", 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___trt__GetVideoAnalyticsConfigurations(soap, &soap_tmp___trt__GetVideoAnalyticsConfigurations, "-trt:GetVideoAnalyticsConfigurations", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetVideoAnalyticsConfigurationsResponse) return soap_closesock(soap); trt__GetVideoAnalyticsConfigurationsResponse->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); trt__GetVideoAnalyticsConfigurationsResponse->soap_get(soap, "trt:GetVideoAnalyticsConfigurationsResponse", ""); 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 MediaBindingProxy::GetMetadataConfigurations(const char *endpoint, const char *soap_action, _trt__GetMetadataConfigurations *trt__GetMetadataConfigurations, _trt__GetMetadataConfigurationsResponse *trt__GetMetadataConfigurationsResponse) { struct soap *soap = this; struct __trt__GetMetadataConfigurations soap_tmp___trt__GetMetadataConfigurations; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetMetadataConfigurations"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetMetadataConfigurations.trt__GetMetadataConfigurations = trt__GetMetadataConfigurations; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetMetadataConfigurations(soap, &soap_tmp___trt__GetMetadataConfigurations); 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___trt__GetMetadataConfigurations(soap, &soap_tmp___trt__GetMetadataConfigurations, "-trt:GetMetadataConfigurations", 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___trt__GetMetadataConfigurations(soap, &soap_tmp___trt__GetMetadataConfigurations, "-trt:GetMetadataConfigurations", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetMetadataConfigurationsResponse) return soap_closesock(soap); trt__GetMetadataConfigurationsResponse->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); trt__GetMetadataConfigurationsResponse->soap_get(soap, "trt:GetMetadataConfigurationsResponse", ""); 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 MediaBindingProxy::GetAudioOutputConfigurations(const char *endpoint, const char *soap_action, _trt__GetAudioOutputConfigurations *trt__GetAudioOutputConfigurations, _trt__GetAudioOutputConfigurationsResponse *trt__GetAudioOutputConfigurationsResponse) { struct soap *soap = this; struct __trt__GetAudioOutputConfigurations soap_tmp___trt__GetAudioOutputConfigurations; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioOutputConfigurations"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetAudioOutputConfigurations.trt__GetAudioOutputConfigurations = trt__GetAudioOutputConfigurations; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetAudioOutputConfigurations(soap, &soap_tmp___trt__GetAudioOutputConfigurations); 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___trt__GetAudioOutputConfigurations(soap, &soap_tmp___trt__GetAudioOutputConfigurations, "-trt:GetAudioOutputConfigurations", 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___trt__GetAudioOutputConfigurations(soap, &soap_tmp___trt__GetAudioOutputConfigurations, "-trt:GetAudioOutputConfigurations", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetAudioOutputConfigurationsResponse) return soap_closesock(soap); trt__GetAudioOutputConfigurationsResponse->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); trt__GetAudioOutputConfigurationsResponse->soap_get(soap, "trt:GetAudioOutputConfigurationsResponse", ""); 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 MediaBindingProxy::GetAudioDecoderConfigurations(const char *endpoint, const char *soap_action, _trt__GetAudioDecoderConfigurations *trt__GetAudioDecoderConfigurations, _trt__GetAudioDecoderConfigurationsResponse *trt__GetAudioDecoderConfigurationsResponse) { struct soap *soap = this; struct __trt__GetAudioDecoderConfigurations soap_tmp___trt__GetAudioDecoderConfigurations; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioDecoderConfigurations"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetAudioDecoderConfigurations.trt__GetAudioDecoderConfigurations = trt__GetAudioDecoderConfigurations; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetAudioDecoderConfigurations(soap, &soap_tmp___trt__GetAudioDecoderConfigurations); 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___trt__GetAudioDecoderConfigurations(soap, &soap_tmp___trt__GetAudioDecoderConfigurations, "-trt:GetAudioDecoderConfigurations", 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___trt__GetAudioDecoderConfigurations(soap, &soap_tmp___trt__GetAudioDecoderConfigurations, "-trt:GetAudioDecoderConfigurations", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetAudioDecoderConfigurationsResponse) return soap_closesock(soap); trt__GetAudioDecoderConfigurationsResponse->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); trt__GetAudioDecoderConfigurationsResponse->soap_get(soap, "trt:GetAudioDecoderConfigurationsResponse", ""); 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 MediaBindingProxy::GetVideoSourceConfiguration(const char *endpoint, const char *soap_action, _trt__GetVideoSourceConfiguration *trt__GetVideoSourceConfiguration, _trt__GetVideoSourceConfigurationResponse *trt__GetVideoSourceConfigurationResponse) { struct soap *soap = this; struct __trt__GetVideoSourceConfiguration soap_tmp___trt__GetVideoSourceConfiguration; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetVideoSourceConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetVideoSourceConfiguration.trt__GetVideoSourceConfiguration = trt__GetVideoSourceConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetVideoSourceConfiguration(soap, &soap_tmp___trt__GetVideoSourceConfiguration); 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___trt__GetVideoSourceConfiguration(soap, &soap_tmp___trt__GetVideoSourceConfiguration, "-trt:GetVideoSourceConfiguration", 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___trt__GetVideoSourceConfiguration(soap, &soap_tmp___trt__GetVideoSourceConfiguration, "-trt:GetVideoSourceConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetVideoSourceConfigurationResponse) return soap_closesock(soap); trt__GetVideoSourceConfigurationResponse->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); trt__GetVideoSourceConfigurationResponse->soap_get(soap, "trt:GetVideoSourceConfigurationResponse", ""); 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 MediaBindingProxy::GetVideoEncoderConfiguration(const char *endpoint, const char *soap_action, _trt__GetVideoEncoderConfiguration *trt__GetVideoEncoderConfiguration, _trt__GetVideoEncoderConfigurationResponse *trt__GetVideoEncoderConfigurationResponse) { struct soap *soap = this; struct __trt__GetVideoEncoderConfiguration soap_tmp___trt__GetVideoEncoderConfiguration; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetVideoEncoderConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetVideoEncoderConfiguration.trt__GetVideoEncoderConfiguration = trt__GetVideoEncoderConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetVideoEncoderConfiguration(soap, &soap_tmp___trt__GetVideoEncoderConfiguration); 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___trt__GetVideoEncoderConfiguration(soap, &soap_tmp___trt__GetVideoEncoderConfiguration, "-trt:GetVideoEncoderConfiguration", 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___trt__GetVideoEncoderConfiguration(soap, &soap_tmp___trt__GetVideoEncoderConfiguration, "-trt:GetVideoEncoderConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetVideoEncoderConfigurationResponse) return soap_closesock(soap); trt__GetVideoEncoderConfigurationResponse->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); trt__GetVideoEncoderConfigurationResponse->soap_get(soap, "trt:GetVideoEncoderConfigurationResponse", ""); 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 MediaBindingProxy::GetAudioSourceConfiguration(const char *endpoint, const char *soap_action, _trt__GetAudioSourceConfiguration *trt__GetAudioSourceConfiguration, _trt__GetAudioSourceConfigurationResponse *trt__GetAudioSourceConfigurationResponse) { struct soap *soap = this; struct __trt__GetAudioSourceConfiguration soap_tmp___trt__GetAudioSourceConfiguration; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioSourceConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetAudioSourceConfiguration.trt__GetAudioSourceConfiguration = trt__GetAudioSourceConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetAudioSourceConfiguration(soap, &soap_tmp___trt__GetAudioSourceConfiguration); 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___trt__GetAudioSourceConfiguration(soap, &soap_tmp___trt__GetAudioSourceConfiguration, "-trt:GetAudioSourceConfiguration", 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___trt__GetAudioSourceConfiguration(soap, &soap_tmp___trt__GetAudioSourceConfiguration, "-trt:GetAudioSourceConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetAudioSourceConfigurationResponse) return soap_closesock(soap); trt__GetAudioSourceConfigurationResponse->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); trt__GetAudioSourceConfigurationResponse->soap_get(soap, "trt:GetAudioSourceConfigurationResponse", ""); 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 MediaBindingProxy::GetAudioEncoderConfiguration(const char *endpoint, const char *soap_action, _trt__GetAudioEncoderConfiguration *trt__GetAudioEncoderConfiguration, _trt__GetAudioEncoderConfigurationResponse *trt__GetAudioEncoderConfigurationResponse) { struct soap *soap = this; struct __trt__GetAudioEncoderConfiguration soap_tmp___trt__GetAudioEncoderConfiguration; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioEncoderConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetAudioEncoderConfiguration.trt__GetAudioEncoderConfiguration = trt__GetAudioEncoderConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetAudioEncoderConfiguration(soap, &soap_tmp___trt__GetAudioEncoderConfiguration); 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___trt__GetAudioEncoderConfiguration(soap, &soap_tmp___trt__GetAudioEncoderConfiguration, "-trt:GetAudioEncoderConfiguration", 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___trt__GetAudioEncoderConfiguration(soap, &soap_tmp___trt__GetAudioEncoderConfiguration, "-trt:GetAudioEncoderConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetAudioEncoderConfigurationResponse) return soap_closesock(soap); trt__GetAudioEncoderConfigurationResponse->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); trt__GetAudioEncoderConfigurationResponse->soap_get(soap, "trt:GetAudioEncoderConfigurationResponse", ""); 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 MediaBindingProxy::GetVideoAnalyticsConfiguration(const char *endpoint, const char *soap_action, _trt__GetVideoAnalyticsConfiguration *trt__GetVideoAnalyticsConfiguration, _trt__GetVideoAnalyticsConfigurationResponse *trt__GetVideoAnalyticsConfigurationResponse) { struct soap *soap = this; struct __trt__GetVideoAnalyticsConfiguration soap_tmp___trt__GetVideoAnalyticsConfiguration; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetVideoAnalyticsConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetVideoAnalyticsConfiguration.trt__GetVideoAnalyticsConfiguration = trt__GetVideoAnalyticsConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetVideoAnalyticsConfiguration(soap, &soap_tmp___trt__GetVideoAnalyticsConfiguration); 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___trt__GetVideoAnalyticsConfiguration(soap, &soap_tmp___trt__GetVideoAnalyticsConfiguration, "-trt:GetVideoAnalyticsConfiguration", 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___trt__GetVideoAnalyticsConfiguration(soap, &soap_tmp___trt__GetVideoAnalyticsConfiguration, "-trt:GetVideoAnalyticsConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetVideoAnalyticsConfigurationResponse) return soap_closesock(soap); trt__GetVideoAnalyticsConfigurationResponse->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); trt__GetVideoAnalyticsConfigurationResponse->soap_get(soap, "trt:GetVideoAnalyticsConfigurationResponse", ""); 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 MediaBindingProxy::GetMetadataConfiguration(const char *endpoint, const char *soap_action, _trt__GetMetadataConfiguration *trt__GetMetadataConfiguration, _trt__GetMetadataConfigurationResponse *trt__GetMetadataConfigurationResponse) { struct soap *soap = this; struct __trt__GetMetadataConfiguration soap_tmp___trt__GetMetadataConfiguration; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetMetadataConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetMetadataConfiguration.trt__GetMetadataConfiguration = trt__GetMetadataConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetMetadataConfiguration(soap, &soap_tmp___trt__GetMetadataConfiguration); 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___trt__GetMetadataConfiguration(soap, &soap_tmp___trt__GetMetadataConfiguration, "-trt:GetMetadataConfiguration", 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___trt__GetMetadataConfiguration(soap, &soap_tmp___trt__GetMetadataConfiguration, "-trt:GetMetadataConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetMetadataConfigurationResponse) return soap_closesock(soap); trt__GetMetadataConfigurationResponse->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); trt__GetMetadataConfigurationResponse->soap_get(soap, "trt:GetMetadataConfigurationResponse", ""); 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 MediaBindingProxy::GetAudioOutputConfiguration(const char *endpoint, const char *soap_action, _trt__GetAudioOutputConfiguration *trt__GetAudioOutputConfiguration, _trt__GetAudioOutputConfigurationResponse *trt__GetAudioOutputConfigurationResponse) { struct soap *soap = this; struct __trt__GetAudioOutputConfiguration soap_tmp___trt__GetAudioOutputConfiguration; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioOutputConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetAudioOutputConfiguration.trt__GetAudioOutputConfiguration = trt__GetAudioOutputConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetAudioOutputConfiguration(soap, &soap_tmp___trt__GetAudioOutputConfiguration); 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___trt__GetAudioOutputConfiguration(soap, &soap_tmp___trt__GetAudioOutputConfiguration, "-trt:GetAudioOutputConfiguration", 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___trt__GetAudioOutputConfiguration(soap, &soap_tmp___trt__GetAudioOutputConfiguration, "-trt:GetAudioOutputConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetAudioOutputConfigurationResponse) return soap_closesock(soap); trt__GetAudioOutputConfigurationResponse->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); trt__GetAudioOutputConfigurationResponse->soap_get(soap, "trt:GetAudioOutputConfigurationResponse", ""); 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 MediaBindingProxy::GetAudioDecoderConfiguration(const char *endpoint, const char *soap_action, _trt__GetAudioDecoderConfiguration *trt__GetAudioDecoderConfiguration, _trt__GetAudioDecoderConfigurationResponse *trt__GetAudioDecoderConfigurationResponse) { struct soap *soap = this; struct __trt__GetAudioDecoderConfiguration soap_tmp___trt__GetAudioDecoderConfiguration; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioDecoderConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetAudioDecoderConfiguration.trt__GetAudioDecoderConfiguration = trt__GetAudioDecoderConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetAudioDecoderConfiguration(soap, &soap_tmp___trt__GetAudioDecoderConfiguration); 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___trt__GetAudioDecoderConfiguration(soap, &soap_tmp___trt__GetAudioDecoderConfiguration, "-trt:GetAudioDecoderConfiguration", 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___trt__GetAudioDecoderConfiguration(soap, &soap_tmp___trt__GetAudioDecoderConfiguration, "-trt:GetAudioDecoderConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetAudioDecoderConfigurationResponse) return soap_closesock(soap); trt__GetAudioDecoderConfigurationResponse->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); trt__GetAudioDecoderConfigurationResponse->soap_get(soap, "trt:GetAudioDecoderConfigurationResponse", ""); 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 MediaBindingProxy::GetCompatibleVideoEncoderConfigurations(const char *endpoint, const char *soap_action, _trt__GetCompatibleVideoEncoderConfigurations *trt__GetCompatibleVideoEncoderConfigurations, _trt__GetCompatibleVideoEncoderConfigurationsResponse *trt__GetCompatibleVideoEncoderConfigurationsResponse) { struct soap *soap = this; struct __trt__GetCompatibleVideoEncoderConfigurations soap_tmp___trt__GetCompatibleVideoEncoderConfigurations; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetCompatibleVideoEncoderConfigurations"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetCompatibleVideoEncoderConfigurations.trt__GetCompatibleVideoEncoderConfigurations = trt__GetCompatibleVideoEncoderConfigurations; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetCompatibleVideoEncoderConfigurations(soap, &soap_tmp___trt__GetCompatibleVideoEncoderConfigurations); 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___trt__GetCompatibleVideoEncoderConfigurations(soap, &soap_tmp___trt__GetCompatibleVideoEncoderConfigurations, "-trt:GetCompatibleVideoEncoderConfigurations", 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___trt__GetCompatibleVideoEncoderConfigurations(soap, &soap_tmp___trt__GetCompatibleVideoEncoderConfigurations, "-trt:GetCompatibleVideoEncoderConfigurations", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetCompatibleVideoEncoderConfigurationsResponse) return soap_closesock(soap); trt__GetCompatibleVideoEncoderConfigurationsResponse->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); trt__GetCompatibleVideoEncoderConfigurationsResponse->soap_get(soap, "trt:GetCompatibleVideoEncoderConfigurationsResponse", ""); 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 MediaBindingProxy::GetCompatibleVideoSourceConfigurations(const char *endpoint, const char *soap_action, _trt__GetCompatibleVideoSourceConfigurations *trt__GetCompatibleVideoSourceConfigurations, _trt__GetCompatibleVideoSourceConfigurationsResponse *trt__GetCompatibleVideoSourceConfigurationsResponse) { struct soap *soap = this; struct __trt__GetCompatibleVideoSourceConfigurations soap_tmp___trt__GetCompatibleVideoSourceConfigurations; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetCompatibleVideoSourceConfigurations"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetCompatibleVideoSourceConfigurations.trt__GetCompatibleVideoSourceConfigurations = trt__GetCompatibleVideoSourceConfigurations; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetCompatibleVideoSourceConfigurations(soap, &soap_tmp___trt__GetCompatibleVideoSourceConfigurations); 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___trt__GetCompatibleVideoSourceConfigurations(soap, &soap_tmp___trt__GetCompatibleVideoSourceConfigurations, "-trt:GetCompatibleVideoSourceConfigurations", 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___trt__GetCompatibleVideoSourceConfigurations(soap, &soap_tmp___trt__GetCompatibleVideoSourceConfigurations, "-trt:GetCompatibleVideoSourceConfigurations", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetCompatibleVideoSourceConfigurationsResponse) return soap_closesock(soap); trt__GetCompatibleVideoSourceConfigurationsResponse->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); trt__GetCompatibleVideoSourceConfigurationsResponse->soap_get(soap, "trt:GetCompatibleVideoSourceConfigurationsResponse", ""); 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 MediaBindingProxy::GetCompatibleAudioEncoderConfigurations(const char *endpoint, const char *soap_action, _trt__GetCompatibleAudioEncoderConfigurations *trt__GetCompatibleAudioEncoderConfigurations, _trt__GetCompatibleAudioEncoderConfigurationsResponse *trt__GetCompatibleAudioEncoderConfigurationsResponse) { struct soap *soap = this; struct __trt__GetCompatibleAudioEncoderConfigurations soap_tmp___trt__GetCompatibleAudioEncoderConfigurations; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetCompatibleAudioEncoderConfigurations"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetCompatibleAudioEncoderConfigurations.trt__GetCompatibleAudioEncoderConfigurations = trt__GetCompatibleAudioEncoderConfigurations; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetCompatibleAudioEncoderConfigurations(soap, &soap_tmp___trt__GetCompatibleAudioEncoderConfigurations); 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___trt__GetCompatibleAudioEncoderConfigurations(soap, &soap_tmp___trt__GetCompatibleAudioEncoderConfigurations, "-trt:GetCompatibleAudioEncoderConfigurations", 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___trt__GetCompatibleAudioEncoderConfigurations(soap, &soap_tmp___trt__GetCompatibleAudioEncoderConfigurations, "-trt:GetCompatibleAudioEncoderConfigurations", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetCompatibleAudioEncoderConfigurationsResponse) return soap_closesock(soap); trt__GetCompatibleAudioEncoderConfigurationsResponse->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); trt__GetCompatibleAudioEncoderConfigurationsResponse->soap_get(soap, "trt:GetCompatibleAudioEncoderConfigurationsResponse", ""); 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 MediaBindingProxy::GetCompatibleAudioSourceConfigurations(const char *endpoint, const char *soap_action, _trt__GetCompatibleAudioSourceConfigurations *trt__GetCompatibleAudioSourceConfigurations, _trt__GetCompatibleAudioSourceConfigurationsResponse *trt__GetCompatibleAudioSourceConfigurationsResponse) { struct soap *soap = this; struct __trt__GetCompatibleAudioSourceConfigurations soap_tmp___trt__GetCompatibleAudioSourceConfigurations; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetCompatibleAudioSourceConfigurations"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetCompatibleAudioSourceConfigurations.trt__GetCompatibleAudioSourceConfigurations = trt__GetCompatibleAudioSourceConfigurations; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetCompatibleAudioSourceConfigurations(soap, &soap_tmp___trt__GetCompatibleAudioSourceConfigurations); 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___trt__GetCompatibleAudioSourceConfigurations(soap, &soap_tmp___trt__GetCompatibleAudioSourceConfigurations, "-trt:GetCompatibleAudioSourceConfigurations", 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___trt__GetCompatibleAudioSourceConfigurations(soap, &soap_tmp___trt__GetCompatibleAudioSourceConfigurations, "-trt:GetCompatibleAudioSourceConfigurations", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetCompatibleAudioSourceConfigurationsResponse) return soap_closesock(soap); trt__GetCompatibleAudioSourceConfigurationsResponse->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); trt__GetCompatibleAudioSourceConfigurationsResponse->soap_get(soap, "trt:GetCompatibleAudioSourceConfigurationsResponse", ""); 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 MediaBindingProxy::GetCompatibleVideoAnalyticsConfigurations(const char *endpoint, const char *soap_action, _trt__GetCompatibleVideoAnalyticsConfigurations *trt__GetCompatibleVideoAnalyticsConfigurations, _trt__GetCompatibleVideoAnalyticsConfigurationsResponse *trt__GetCompatibleVideoAnalyticsConfigurationsResponse) { struct soap *soap = this; struct __trt__GetCompatibleVideoAnalyticsConfigurations soap_tmp___trt__GetCompatibleVideoAnalyticsConfigurations; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetCompatibleVideoAnalyticsConfigurations"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetCompatibleVideoAnalyticsConfigurations.trt__GetCompatibleVideoAnalyticsConfigurations = trt__GetCompatibleVideoAnalyticsConfigurations; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetCompatibleVideoAnalyticsConfigurations(soap, &soap_tmp___trt__GetCompatibleVideoAnalyticsConfigurations); 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___trt__GetCompatibleVideoAnalyticsConfigurations(soap, &soap_tmp___trt__GetCompatibleVideoAnalyticsConfigurations, "-trt:GetCompatibleVideoAnalyticsConfigurations", 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___trt__GetCompatibleVideoAnalyticsConfigurations(soap, &soap_tmp___trt__GetCompatibleVideoAnalyticsConfigurations, "-trt:GetCompatibleVideoAnalyticsConfigurations", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetCompatibleVideoAnalyticsConfigurationsResponse) return soap_closesock(soap); trt__GetCompatibleVideoAnalyticsConfigurationsResponse->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); trt__GetCompatibleVideoAnalyticsConfigurationsResponse->soap_get(soap, "trt:GetCompatibleVideoAnalyticsConfigurationsResponse", ""); 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 MediaBindingProxy::GetCompatibleMetadataConfigurations(const char *endpoint, const char *soap_action, _trt__GetCompatibleMetadataConfigurations *trt__GetCompatibleMetadataConfigurations, _trt__GetCompatibleMetadataConfigurationsResponse *trt__GetCompatibleMetadataConfigurationsResponse) { struct soap *soap = this; struct __trt__GetCompatibleMetadataConfigurations soap_tmp___trt__GetCompatibleMetadataConfigurations; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetCompatibleMetadataConfigurations"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetCompatibleMetadataConfigurations.trt__GetCompatibleMetadataConfigurations = trt__GetCompatibleMetadataConfigurations; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetCompatibleMetadataConfigurations(soap, &soap_tmp___trt__GetCompatibleMetadataConfigurations); 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___trt__GetCompatibleMetadataConfigurations(soap, &soap_tmp___trt__GetCompatibleMetadataConfigurations, "-trt:GetCompatibleMetadataConfigurations", 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___trt__GetCompatibleMetadataConfigurations(soap, &soap_tmp___trt__GetCompatibleMetadataConfigurations, "-trt:GetCompatibleMetadataConfigurations", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetCompatibleMetadataConfigurationsResponse) return soap_closesock(soap); trt__GetCompatibleMetadataConfigurationsResponse->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); trt__GetCompatibleMetadataConfigurationsResponse->soap_get(soap, "trt:GetCompatibleMetadataConfigurationsResponse", ""); 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 MediaBindingProxy::GetCompatibleAudioOutputConfigurations(const char *endpoint, const char *soap_action, _trt__GetCompatibleAudioOutputConfigurations *trt__GetCompatibleAudioOutputConfigurations, _trt__GetCompatibleAudioOutputConfigurationsResponse *trt__GetCompatibleAudioOutputConfigurationsResponse) { struct soap *soap = this; struct __trt__GetCompatibleAudioOutputConfigurations soap_tmp___trt__GetCompatibleAudioOutputConfigurations; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetCompatibleAudioOutputConfigurations"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetCompatibleAudioOutputConfigurations.trt__GetCompatibleAudioOutputConfigurations = trt__GetCompatibleAudioOutputConfigurations; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetCompatibleAudioOutputConfigurations(soap, &soap_tmp___trt__GetCompatibleAudioOutputConfigurations); 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___trt__GetCompatibleAudioOutputConfigurations(soap, &soap_tmp___trt__GetCompatibleAudioOutputConfigurations, "-trt:GetCompatibleAudioOutputConfigurations", 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___trt__GetCompatibleAudioOutputConfigurations(soap, &soap_tmp___trt__GetCompatibleAudioOutputConfigurations, "-trt:GetCompatibleAudioOutputConfigurations", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetCompatibleAudioOutputConfigurationsResponse) return soap_closesock(soap); trt__GetCompatibleAudioOutputConfigurationsResponse->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); trt__GetCompatibleAudioOutputConfigurationsResponse->soap_get(soap, "trt:GetCompatibleAudioOutputConfigurationsResponse", ""); 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 MediaBindingProxy::GetCompatibleAudioDecoderConfigurations(const char *endpoint, const char *soap_action, _trt__GetCompatibleAudioDecoderConfigurations *trt__GetCompatibleAudioDecoderConfigurations, _trt__GetCompatibleAudioDecoderConfigurationsResponse *trt__GetCompatibleAudioDecoderConfigurationsResponse) { struct soap *soap = this; struct __trt__GetCompatibleAudioDecoderConfigurations soap_tmp___trt__GetCompatibleAudioDecoderConfigurations; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetCompatibleAudioDecoderConfigurations"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetCompatibleAudioDecoderConfigurations.trt__GetCompatibleAudioDecoderConfigurations = trt__GetCompatibleAudioDecoderConfigurations; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetCompatibleAudioDecoderConfigurations(soap, &soap_tmp___trt__GetCompatibleAudioDecoderConfigurations); 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___trt__GetCompatibleAudioDecoderConfigurations(soap, &soap_tmp___trt__GetCompatibleAudioDecoderConfigurations, "-trt:GetCompatibleAudioDecoderConfigurations", 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___trt__GetCompatibleAudioDecoderConfigurations(soap, &soap_tmp___trt__GetCompatibleAudioDecoderConfigurations, "-trt:GetCompatibleAudioDecoderConfigurations", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetCompatibleAudioDecoderConfigurationsResponse) return soap_closesock(soap); trt__GetCompatibleAudioDecoderConfigurationsResponse->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); trt__GetCompatibleAudioDecoderConfigurationsResponse->soap_get(soap, "trt:GetCompatibleAudioDecoderConfigurationsResponse", ""); 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 MediaBindingProxy::SetVideoSourceConfiguration(const char *endpoint, const char *soap_action, _trt__SetVideoSourceConfiguration *trt__SetVideoSourceConfiguration, _trt__SetVideoSourceConfigurationResponse *trt__SetVideoSourceConfigurationResponse) { struct soap *soap = this; struct __trt__SetVideoSourceConfiguration soap_tmp___trt__SetVideoSourceConfiguration; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/SetVideoSourceConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__SetVideoSourceConfiguration.trt__SetVideoSourceConfiguration = trt__SetVideoSourceConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__SetVideoSourceConfiguration(soap, &soap_tmp___trt__SetVideoSourceConfiguration); 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___trt__SetVideoSourceConfiguration(soap, &soap_tmp___trt__SetVideoSourceConfiguration, "-trt:SetVideoSourceConfiguration", 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___trt__SetVideoSourceConfiguration(soap, &soap_tmp___trt__SetVideoSourceConfiguration, "-trt:SetVideoSourceConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__SetVideoSourceConfigurationResponse) return soap_closesock(soap); trt__SetVideoSourceConfigurationResponse->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); trt__SetVideoSourceConfigurationResponse->soap_get(soap, "trt:SetVideoSourceConfigurationResponse", ""); 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 MediaBindingProxy::SetVideoEncoderConfiguration(const char *endpoint, const char *soap_action, _trt__SetVideoEncoderConfiguration *trt__SetVideoEncoderConfiguration, _trt__SetVideoEncoderConfigurationResponse *trt__SetVideoEncoderConfigurationResponse) { struct soap *soap = this; struct __trt__SetVideoEncoderConfiguration soap_tmp___trt__SetVideoEncoderConfiguration; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/SetVideoEncoderConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__SetVideoEncoderConfiguration.trt__SetVideoEncoderConfiguration = trt__SetVideoEncoderConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__SetVideoEncoderConfiguration(soap, &soap_tmp___trt__SetVideoEncoderConfiguration); 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___trt__SetVideoEncoderConfiguration(soap, &soap_tmp___trt__SetVideoEncoderConfiguration, "-trt:SetVideoEncoderConfiguration", 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___trt__SetVideoEncoderConfiguration(soap, &soap_tmp___trt__SetVideoEncoderConfiguration, "-trt:SetVideoEncoderConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__SetVideoEncoderConfigurationResponse) return soap_closesock(soap); trt__SetVideoEncoderConfigurationResponse->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); trt__SetVideoEncoderConfigurationResponse->soap_get(soap, "trt:SetVideoEncoderConfigurationResponse", ""); 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 MediaBindingProxy::SetAudioSourceConfiguration(const char *endpoint, const char *soap_action, _trt__SetAudioSourceConfiguration *trt__SetAudioSourceConfiguration, _trt__SetAudioSourceConfigurationResponse *trt__SetAudioSourceConfigurationResponse) { struct soap *soap = this; struct __trt__SetAudioSourceConfiguration soap_tmp___trt__SetAudioSourceConfiguration; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/SetAudioSourceConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__SetAudioSourceConfiguration.trt__SetAudioSourceConfiguration = trt__SetAudioSourceConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__SetAudioSourceConfiguration(soap, &soap_tmp___trt__SetAudioSourceConfiguration); 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___trt__SetAudioSourceConfiguration(soap, &soap_tmp___trt__SetAudioSourceConfiguration, "-trt:SetAudioSourceConfiguration", 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___trt__SetAudioSourceConfiguration(soap, &soap_tmp___trt__SetAudioSourceConfiguration, "-trt:SetAudioSourceConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__SetAudioSourceConfigurationResponse) return soap_closesock(soap); trt__SetAudioSourceConfigurationResponse->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); trt__SetAudioSourceConfigurationResponse->soap_get(soap, "trt:SetAudioSourceConfigurationResponse", ""); 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 MediaBindingProxy::SetAudioEncoderConfiguration(const char *endpoint, const char *soap_action, _trt__SetAudioEncoderConfiguration *trt__SetAudioEncoderConfiguration, _trt__SetAudioEncoderConfigurationResponse *trt__SetAudioEncoderConfigurationResponse) { struct soap *soap = this; struct __trt__SetAudioEncoderConfiguration soap_tmp___trt__SetAudioEncoderConfiguration; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/SetAudioEncoderConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__SetAudioEncoderConfiguration.trt__SetAudioEncoderConfiguration = trt__SetAudioEncoderConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__SetAudioEncoderConfiguration(soap, &soap_tmp___trt__SetAudioEncoderConfiguration); 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___trt__SetAudioEncoderConfiguration(soap, &soap_tmp___trt__SetAudioEncoderConfiguration, "-trt:SetAudioEncoderConfiguration", 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___trt__SetAudioEncoderConfiguration(soap, &soap_tmp___trt__SetAudioEncoderConfiguration, "-trt:SetAudioEncoderConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__SetAudioEncoderConfigurationResponse) return soap_closesock(soap); trt__SetAudioEncoderConfigurationResponse->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); trt__SetAudioEncoderConfigurationResponse->soap_get(soap, "trt:SetAudioEncoderConfigurationResponse", ""); 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 MediaBindingProxy::SetVideoAnalyticsConfiguration(const char *endpoint, const char *soap_action, _trt__SetVideoAnalyticsConfiguration *trt__SetVideoAnalyticsConfiguration, _trt__SetVideoAnalyticsConfigurationResponse *trt__SetVideoAnalyticsConfigurationResponse) { struct soap *soap = this; struct __trt__SetVideoAnalyticsConfiguration soap_tmp___trt__SetVideoAnalyticsConfiguration; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/SetVideoAnalyticsConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__SetVideoAnalyticsConfiguration.trt__SetVideoAnalyticsConfiguration = trt__SetVideoAnalyticsConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__SetVideoAnalyticsConfiguration(soap, &soap_tmp___trt__SetVideoAnalyticsConfiguration); 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___trt__SetVideoAnalyticsConfiguration(soap, &soap_tmp___trt__SetVideoAnalyticsConfiguration, "-trt:SetVideoAnalyticsConfiguration", 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___trt__SetVideoAnalyticsConfiguration(soap, &soap_tmp___trt__SetVideoAnalyticsConfiguration, "-trt:SetVideoAnalyticsConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__SetVideoAnalyticsConfigurationResponse) return soap_closesock(soap); trt__SetVideoAnalyticsConfigurationResponse->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); trt__SetVideoAnalyticsConfigurationResponse->soap_get(soap, "trt:SetVideoAnalyticsConfigurationResponse", ""); 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 MediaBindingProxy::SetMetadataConfiguration(const char *endpoint, const char *soap_action, _trt__SetMetadataConfiguration *trt__SetMetadataConfiguration, _trt__SetMetadataConfigurationResponse *trt__SetMetadataConfigurationResponse) { struct soap *soap = this; struct __trt__SetMetadataConfiguration soap_tmp___trt__SetMetadataConfiguration; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/SetMetadataConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__SetMetadataConfiguration.trt__SetMetadataConfiguration = trt__SetMetadataConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__SetMetadataConfiguration(soap, &soap_tmp___trt__SetMetadataConfiguration); 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___trt__SetMetadataConfiguration(soap, &soap_tmp___trt__SetMetadataConfiguration, "-trt:SetMetadataConfiguration", 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___trt__SetMetadataConfiguration(soap, &soap_tmp___trt__SetMetadataConfiguration, "-trt:SetMetadataConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__SetMetadataConfigurationResponse) return soap_closesock(soap); trt__SetMetadataConfigurationResponse->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); trt__SetMetadataConfigurationResponse->soap_get(soap, "trt:SetMetadataConfigurationResponse", ""); 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 MediaBindingProxy::SetAudioOutputConfiguration(const char *endpoint, const char *soap_action, _trt__SetAudioOutputConfiguration *trt__SetAudioOutputConfiguration, _trt__SetAudioOutputConfigurationResponse *trt__SetAudioOutputConfigurationResponse) { struct soap *soap = this; struct __trt__SetAudioOutputConfiguration soap_tmp___trt__SetAudioOutputConfiguration; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/SetAudioOutputConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__SetAudioOutputConfiguration.trt__SetAudioOutputConfiguration = trt__SetAudioOutputConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__SetAudioOutputConfiguration(soap, &soap_tmp___trt__SetAudioOutputConfiguration); 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___trt__SetAudioOutputConfiguration(soap, &soap_tmp___trt__SetAudioOutputConfiguration, "-trt:SetAudioOutputConfiguration", 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___trt__SetAudioOutputConfiguration(soap, &soap_tmp___trt__SetAudioOutputConfiguration, "-trt:SetAudioOutputConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__SetAudioOutputConfigurationResponse) return soap_closesock(soap); trt__SetAudioOutputConfigurationResponse->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); trt__SetAudioOutputConfigurationResponse->soap_get(soap, "trt:SetAudioOutputConfigurationResponse", ""); 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 MediaBindingProxy::SetAudioDecoderConfiguration(const char *endpoint, const char *soap_action, _trt__SetAudioDecoderConfiguration *trt__SetAudioDecoderConfiguration, _trt__SetAudioDecoderConfigurationResponse *trt__SetAudioDecoderConfigurationResponse) { struct soap *soap = this; struct __trt__SetAudioDecoderConfiguration soap_tmp___trt__SetAudioDecoderConfiguration; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/SetAudioDecoderConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__SetAudioDecoderConfiguration.trt__SetAudioDecoderConfiguration = trt__SetAudioDecoderConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__SetAudioDecoderConfiguration(soap, &soap_tmp___trt__SetAudioDecoderConfiguration); 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___trt__SetAudioDecoderConfiguration(soap, &soap_tmp___trt__SetAudioDecoderConfiguration, "-trt:SetAudioDecoderConfiguration", 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___trt__SetAudioDecoderConfiguration(soap, &soap_tmp___trt__SetAudioDecoderConfiguration, "-trt:SetAudioDecoderConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__SetAudioDecoderConfigurationResponse) return soap_closesock(soap); trt__SetAudioDecoderConfigurationResponse->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); trt__SetAudioDecoderConfigurationResponse->soap_get(soap, "trt:SetAudioDecoderConfigurationResponse", ""); 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 MediaBindingProxy::GetVideoSourceConfigurationOptions(const char *endpoint, const char *soap_action, _trt__GetVideoSourceConfigurationOptions *trt__GetVideoSourceConfigurationOptions, _trt__GetVideoSourceConfigurationOptionsResponse *trt__GetVideoSourceConfigurationOptionsResponse) { struct soap *soap = this; struct __trt__GetVideoSourceConfigurationOptions soap_tmp___trt__GetVideoSourceConfigurationOptions; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdlGetVideoSourceConfigurationOptions/"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetVideoSourceConfigurationOptions.trt__GetVideoSourceConfigurationOptions = trt__GetVideoSourceConfigurationOptions; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetVideoSourceConfigurationOptions(soap, &soap_tmp___trt__GetVideoSourceConfigurationOptions); 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___trt__GetVideoSourceConfigurationOptions(soap, &soap_tmp___trt__GetVideoSourceConfigurationOptions, "-trt:GetVideoSourceConfigurationOptions", 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___trt__GetVideoSourceConfigurationOptions(soap, &soap_tmp___trt__GetVideoSourceConfigurationOptions, "-trt:GetVideoSourceConfigurationOptions", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetVideoSourceConfigurationOptionsResponse) return soap_closesock(soap); trt__GetVideoSourceConfigurationOptionsResponse->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); trt__GetVideoSourceConfigurationOptionsResponse->soap_get(soap, "trt:GetVideoSourceConfigurationOptionsResponse", ""); 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 MediaBindingProxy::GetVideoEncoderConfigurationOptions(const char *endpoint, const char *soap_action, _trt__GetVideoEncoderConfigurationOptions *trt__GetVideoEncoderConfigurationOptions, _trt__GetVideoEncoderConfigurationOptionsResponse *trt__GetVideoEncoderConfigurationOptionsResponse) { struct soap *soap = this; struct __trt__GetVideoEncoderConfigurationOptions soap_tmp___trt__GetVideoEncoderConfigurationOptions; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetVideoEncoderConfigurationOptions"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetVideoEncoderConfigurationOptions.trt__GetVideoEncoderConfigurationOptions = trt__GetVideoEncoderConfigurationOptions; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetVideoEncoderConfigurationOptions(soap, &soap_tmp___trt__GetVideoEncoderConfigurationOptions); 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___trt__GetVideoEncoderConfigurationOptions(soap, &soap_tmp___trt__GetVideoEncoderConfigurationOptions, "-trt:GetVideoEncoderConfigurationOptions", 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___trt__GetVideoEncoderConfigurationOptions(soap, &soap_tmp___trt__GetVideoEncoderConfigurationOptions, "-trt:GetVideoEncoderConfigurationOptions", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetVideoEncoderConfigurationOptionsResponse) return soap_closesock(soap); trt__GetVideoEncoderConfigurationOptionsResponse->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); trt__GetVideoEncoderConfigurationOptionsResponse->soap_get(soap, "trt:GetVideoEncoderConfigurationOptionsResponse", ""); 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 MediaBindingProxy::GetAudioSourceConfigurationOptions(const char *endpoint, const char *soap_action, _trt__GetAudioSourceConfigurationOptions *trt__GetAudioSourceConfigurationOptions, _trt__GetAudioSourceConfigurationOptionsResponse *trt__GetAudioSourceConfigurationOptionsResponse) { struct soap *soap = this; struct __trt__GetAudioSourceConfigurationOptions soap_tmp___trt__GetAudioSourceConfigurationOptions; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioSourceConfigurationOptions"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetAudioSourceConfigurationOptions.trt__GetAudioSourceConfigurationOptions = trt__GetAudioSourceConfigurationOptions; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetAudioSourceConfigurationOptions(soap, &soap_tmp___trt__GetAudioSourceConfigurationOptions); 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___trt__GetAudioSourceConfigurationOptions(soap, &soap_tmp___trt__GetAudioSourceConfigurationOptions, "-trt:GetAudioSourceConfigurationOptions", 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___trt__GetAudioSourceConfigurationOptions(soap, &soap_tmp___trt__GetAudioSourceConfigurationOptions, "-trt:GetAudioSourceConfigurationOptions", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetAudioSourceConfigurationOptionsResponse) return soap_closesock(soap); trt__GetAudioSourceConfigurationOptionsResponse->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); trt__GetAudioSourceConfigurationOptionsResponse->soap_get(soap, "trt:GetAudioSourceConfigurationOptionsResponse", ""); 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 MediaBindingProxy::GetAudioEncoderConfigurationOptions(const char *endpoint, const char *soap_action, _trt__GetAudioEncoderConfigurationOptions *trt__GetAudioEncoderConfigurationOptions, _trt__GetAudioEncoderConfigurationOptionsResponse *trt__GetAudioEncoderConfigurationOptionsResponse) { struct soap *soap = this; struct __trt__GetAudioEncoderConfigurationOptions soap_tmp___trt__GetAudioEncoderConfigurationOptions; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioEncoderConfigurationOptions"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetAudioEncoderConfigurationOptions.trt__GetAudioEncoderConfigurationOptions = trt__GetAudioEncoderConfigurationOptions; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetAudioEncoderConfigurationOptions(soap, &soap_tmp___trt__GetAudioEncoderConfigurationOptions); 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___trt__GetAudioEncoderConfigurationOptions(soap, &soap_tmp___trt__GetAudioEncoderConfigurationOptions, "-trt:GetAudioEncoderConfigurationOptions", 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___trt__GetAudioEncoderConfigurationOptions(soap, &soap_tmp___trt__GetAudioEncoderConfigurationOptions, "-trt:GetAudioEncoderConfigurationOptions", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetAudioEncoderConfigurationOptionsResponse) return soap_closesock(soap); trt__GetAudioEncoderConfigurationOptionsResponse->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); trt__GetAudioEncoderConfigurationOptionsResponse->soap_get(soap, "trt:GetAudioEncoderConfigurationOptionsResponse", ""); 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 MediaBindingProxy::GetMetadataConfigurationOptions(const char *endpoint, const char *soap_action, _trt__GetMetadataConfigurationOptions *trt__GetMetadataConfigurationOptions, _trt__GetMetadataConfigurationOptionsResponse *trt__GetMetadataConfigurationOptionsResponse) { struct soap *soap = this; struct __trt__GetMetadataConfigurationOptions soap_tmp___trt__GetMetadataConfigurationOptions; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetMetadataConfigurationOptions"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetMetadataConfigurationOptions.trt__GetMetadataConfigurationOptions = trt__GetMetadataConfigurationOptions; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetMetadataConfigurationOptions(soap, &soap_tmp___trt__GetMetadataConfigurationOptions); 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___trt__GetMetadataConfigurationOptions(soap, &soap_tmp___trt__GetMetadataConfigurationOptions, "-trt:GetMetadataConfigurationOptions", 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___trt__GetMetadataConfigurationOptions(soap, &soap_tmp___trt__GetMetadataConfigurationOptions, "-trt:GetMetadataConfigurationOptions", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetMetadataConfigurationOptionsResponse) return soap_closesock(soap); trt__GetMetadataConfigurationOptionsResponse->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); trt__GetMetadataConfigurationOptionsResponse->soap_get(soap, "trt:GetMetadataConfigurationOptionsResponse", ""); 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 MediaBindingProxy::GetAudioOutputConfigurationOptions(const char *endpoint, const char *soap_action, _trt__GetAudioOutputConfigurationOptions *trt__GetAudioOutputConfigurationOptions, _trt__GetAudioOutputConfigurationOptionsResponse *trt__GetAudioOutputConfigurationOptionsResponse) { struct soap *soap = this; struct __trt__GetAudioOutputConfigurationOptions soap_tmp___trt__GetAudioOutputConfigurationOptions; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioOutputConfigurationOptions"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetAudioOutputConfigurationOptions.trt__GetAudioOutputConfigurationOptions = trt__GetAudioOutputConfigurationOptions; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetAudioOutputConfigurationOptions(soap, &soap_tmp___trt__GetAudioOutputConfigurationOptions); 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___trt__GetAudioOutputConfigurationOptions(soap, &soap_tmp___trt__GetAudioOutputConfigurationOptions, "-trt:GetAudioOutputConfigurationOptions", 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___trt__GetAudioOutputConfigurationOptions(soap, &soap_tmp___trt__GetAudioOutputConfigurationOptions, "-trt:GetAudioOutputConfigurationOptions", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetAudioOutputConfigurationOptionsResponse) return soap_closesock(soap); trt__GetAudioOutputConfigurationOptionsResponse->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); trt__GetAudioOutputConfigurationOptionsResponse->soap_get(soap, "trt:GetAudioOutputConfigurationOptionsResponse", ""); 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 MediaBindingProxy::GetAudioDecoderConfigurationOptions(const char *endpoint, const char *soap_action, _trt__GetAudioDecoderConfigurationOptions *trt__GetAudioDecoderConfigurationOptions, _trt__GetAudioDecoderConfigurationOptionsResponse *trt__GetAudioDecoderConfigurationOptionsResponse) { struct soap *soap = this; struct __trt__GetAudioDecoderConfigurationOptions soap_tmp___trt__GetAudioDecoderConfigurationOptions; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioDecoderConfigurationOptions"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetAudioDecoderConfigurationOptions.trt__GetAudioDecoderConfigurationOptions = trt__GetAudioDecoderConfigurationOptions; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetAudioDecoderConfigurationOptions(soap, &soap_tmp___trt__GetAudioDecoderConfigurationOptions); 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___trt__GetAudioDecoderConfigurationOptions(soap, &soap_tmp___trt__GetAudioDecoderConfigurationOptions, "-trt:GetAudioDecoderConfigurationOptions", 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___trt__GetAudioDecoderConfigurationOptions(soap, &soap_tmp___trt__GetAudioDecoderConfigurationOptions, "-trt:GetAudioDecoderConfigurationOptions", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetAudioDecoderConfigurationOptionsResponse) return soap_closesock(soap); trt__GetAudioDecoderConfigurationOptionsResponse->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); trt__GetAudioDecoderConfigurationOptionsResponse->soap_get(soap, "trt:GetAudioDecoderConfigurationOptionsResponse", ""); 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 MediaBindingProxy::GetGuaranteedNumberOfVideoEncoderInstances(const char *endpoint, const char *soap_action, _trt__GetGuaranteedNumberOfVideoEncoderInstances *trt__GetGuaranteedNumberOfVideoEncoderInstances, _trt__GetGuaranteedNumberOfVideoEncoderInstancesResponse *trt__GetGuaranteedNumberOfVideoEncoderInstancesResponse) { struct soap *soap = this; struct __trt__GetGuaranteedNumberOfVideoEncoderInstances soap_tmp___trt__GetGuaranteedNumberOfVideoEncoderInstances; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetGuaranteedNumberOfVideoEncoderInstances"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetGuaranteedNumberOfVideoEncoderInstances.trt__GetGuaranteedNumberOfVideoEncoderInstances = trt__GetGuaranteedNumberOfVideoEncoderInstances; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetGuaranteedNumberOfVideoEncoderInstances(soap, &soap_tmp___trt__GetGuaranteedNumberOfVideoEncoderInstances); 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___trt__GetGuaranteedNumberOfVideoEncoderInstances(soap, &soap_tmp___trt__GetGuaranteedNumberOfVideoEncoderInstances, "-trt:GetGuaranteedNumberOfVideoEncoderInstances", 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___trt__GetGuaranteedNumberOfVideoEncoderInstances(soap, &soap_tmp___trt__GetGuaranteedNumberOfVideoEncoderInstances, "-trt:GetGuaranteedNumberOfVideoEncoderInstances", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetGuaranteedNumberOfVideoEncoderInstancesResponse) return soap_closesock(soap); trt__GetGuaranteedNumberOfVideoEncoderInstancesResponse->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); trt__GetGuaranteedNumberOfVideoEncoderInstancesResponse->soap_get(soap, "trt:GetGuaranteedNumberOfVideoEncoderInstancesResponse", ""); 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 MediaBindingProxy::GetStreamUri(const char *endpoint, const char *soap_action, _trt__GetStreamUri *trt__GetStreamUri, _trt__GetStreamUriResponse *trt__GetStreamUriResponse) { struct soap *soap = this; struct __trt__GetStreamUri soap_tmp___trt__GetStreamUri; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetStreamUri"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetStreamUri.trt__GetStreamUri = trt__GetStreamUri; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetStreamUri(soap, &soap_tmp___trt__GetStreamUri); 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___trt__GetStreamUri(soap, &soap_tmp___trt__GetStreamUri, "-trt:GetStreamUri", 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___trt__GetStreamUri(soap, &soap_tmp___trt__GetStreamUri, "-trt:GetStreamUri", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetStreamUriResponse) return soap_closesock(soap); trt__GetStreamUriResponse->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); trt__GetStreamUriResponse->soap_get(soap, "trt:GetStreamUriResponse", ""); 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 MediaBindingProxy::StartMulticastStreaming(const char *endpoint, const char *soap_action, _trt__StartMulticastStreaming *trt__StartMulticastStreaming, _trt__StartMulticastStreamingResponse *trt__StartMulticastStreamingResponse) { struct soap *soap = this; struct __trt__StartMulticastStreaming soap_tmp___trt__StartMulticastStreaming; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/StartMulticastStreaming"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__StartMulticastStreaming.trt__StartMulticastStreaming = trt__StartMulticastStreaming; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__StartMulticastStreaming(soap, &soap_tmp___trt__StartMulticastStreaming); 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___trt__StartMulticastStreaming(soap, &soap_tmp___trt__StartMulticastStreaming, "-trt:StartMulticastStreaming", 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___trt__StartMulticastStreaming(soap, &soap_tmp___trt__StartMulticastStreaming, "-trt:StartMulticastStreaming", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__StartMulticastStreamingResponse) return soap_closesock(soap); trt__StartMulticastStreamingResponse->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); trt__StartMulticastStreamingResponse->soap_get(soap, "trt:StartMulticastStreamingResponse", ""); 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 MediaBindingProxy::StopMulticastStreaming(const char *endpoint, const char *soap_action, _trt__StopMulticastStreaming *trt__StopMulticastStreaming, _trt__StopMulticastStreamingResponse *trt__StopMulticastStreamingResponse) { struct soap *soap = this; struct __trt__StopMulticastStreaming soap_tmp___trt__StopMulticastStreaming; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/StopMulticastStreaming"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__StopMulticastStreaming.trt__StopMulticastStreaming = trt__StopMulticastStreaming; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__StopMulticastStreaming(soap, &soap_tmp___trt__StopMulticastStreaming); 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___trt__StopMulticastStreaming(soap, &soap_tmp___trt__StopMulticastStreaming, "-trt:StopMulticastStreaming", 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___trt__StopMulticastStreaming(soap, &soap_tmp___trt__StopMulticastStreaming, "-trt:StopMulticastStreaming", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__StopMulticastStreamingResponse) return soap_closesock(soap); trt__StopMulticastStreamingResponse->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); trt__StopMulticastStreamingResponse->soap_get(soap, "trt:StopMulticastStreamingResponse", ""); 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 MediaBindingProxy::SetSynchronizationPoint(const char *endpoint, const char *soap_action, _trt__SetSynchronizationPoint *trt__SetSynchronizationPoint, _trt__SetSynchronizationPointResponse *trt__SetSynchronizationPointResponse) { struct soap *soap = this; struct __trt__SetSynchronizationPoint soap_tmp___trt__SetSynchronizationPoint; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/SetSynchronizationPoint"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__SetSynchronizationPoint.trt__SetSynchronizationPoint = trt__SetSynchronizationPoint; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__SetSynchronizationPoint(soap, &soap_tmp___trt__SetSynchronizationPoint); 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___trt__SetSynchronizationPoint(soap, &soap_tmp___trt__SetSynchronizationPoint, "-trt:SetSynchronizationPoint", 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___trt__SetSynchronizationPoint(soap, &soap_tmp___trt__SetSynchronizationPoint, "-trt:SetSynchronizationPoint", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__SetSynchronizationPointResponse) return soap_closesock(soap); trt__SetSynchronizationPointResponse->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); trt__SetSynchronizationPointResponse->soap_get(soap, "trt:SetSynchronizationPointResponse", ""); 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 MediaBindingProxy::GetSnapshotUri(const char *endpoint, const char *soap_action, _trt__GetSnapshotUri *trt__GetSnapshotUri, _trt__GetSnapshotUriResponse *trt__GetSnapshotUriResponse) { struct soap *soap = this; struct __trt__GetSnapshotUri soap_tmp___trt__GetSnapshotUri; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetSnapshotUri"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetSnapshotUri.trt__GetSnapshotUri = trt__GetSnapshotUri; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetSnapshotUri(soap, &soap_tmp___trt__GetSnapshotUri); 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___trt__GetSnapshotUri(soap, &soap_tmp___trt__GetSnapshotUri, "-trt:GetSnapshotUri", 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___trt__GetSnapshotUri(soap, &soap_tmp___trt__GetSnapshotUri, "-trt:GetSnapshotUri", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetSnapshotUriResponse) return soap_closesock(soap); trt__GetSnapshotUriResponse->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); trt__GetSnapshotUriResponse->soap_get(soap, "trt:GetSnapshotUriResponse", ""); 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 MediaBindingProxy::GetVideoSourceModes(const char *endpoint, const char *soap_action, _trt__GetVideoSourceModes *trt__GetVideoSourceModes, _trt__GetVideoSourceModesResponse *trt__GetVideoSourceModesResponse) { struct soap *soap = this; struct __trt__GetVideoSourceModes soap_tmp___trt__GetVideoSourceModes; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetVideoSourceModes"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetVideoSourceModes.trt__GetVideoSourceModes = trt__GetVideoSourceModes; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetVideoSourceModes(soap, &soap_tmp___trt__GetVideoSourceModes); 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___trt__GetVideoSourceModes(soap, &soap_tmp___trt__GetVideoSourceModes, "-trt:GetVideoSourceModes", 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___trt__GetVideoSourceModes(soap, &soap_tmp___trt__GetVideoSourceModes, "-trt:GetVideoSourceModes", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetVideoSourceModesResponse) return soap_closesock(soap); trt__GetVideoSourceModesResponse->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); trt__GetVideoSourceModesResponse->soap_get(soap, "trt:GetVideoSourceModesResponse", ""); 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 MediaBindingProxy::SetVideoSourceMode(const char *endpoint, const char *soap_action, _trt__SetVideoSourceMode *trt__SetVideoSourceMode, _trt__SetVideoSourceModeResponse *trt__SetVideoSourceModeResponse) { struct soap *soap = this; struct __trt__SetVideoSourceMode soap_tmp___trt__SetVideoSourceMode; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/SetVideoSourceMode"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__SetVideoSourceMode.trt__SetVideoSourceMode = trt__SetVideoSourceMode; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__SetVideoSourceMode(soap, &soap_tmp___trt__SetVideoSourceMode); 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___trt__SetVideoSourceMode(soap, &soap_tmp___trt__SetVideoSourceMode, "-trt:SetVideoSourceMode", 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___trt__SetVideoSourceMode(soap, &soap_tmp___trt__SetVideoSourceMode, "-trt:SetVideoSourceMode", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__SetVideoSourceModeResponse) return soap_closesock(soap); trt__SetVideoSourceModeResponse->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); trt__SetVideoSourceModeResponse->soap_get(soap, "trt:SetVideoSourceModeResponse", ""); 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 MediaBindingProxy::GetOSDs(const char *endpoint, const char *soap_action, _trt__GetOSDs *trt__GetOSDs, _trt__GetOSDsResponse *trt__GetOSDsResponse) { struct soap *soap = this; struct __trt__GetOSDs soap_tmp___trt__GetOSDs; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetOSDs"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetOSDs.trt__GetOSDs = trt__GetOSDs; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetOSDs(soap, &soap_tmp___trt__GetOSDs); 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___trt__GetOSDs(soap, &soap_tmp___trt__GetOSDs, "-trt:GetOSDs", 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___trt__GetOSDs(soap, &soap_tmp___trt__GetOSDs, "-trt:GetOSDs", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetOSDsResponse) return soap_closesock(soap); trt__GetOSDsResponse->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); trt__GetOSDsResponse->soap_get(soap, "trt:GetOSDsResponse", ""); 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 MediaBindingProxy::GetOSD(const char *endpoint, const char *soap_action, _trt__GetOSD *trt__GetOSD, _trt__GetOSDResponse *trt__GetOSDResponse) { struct soap *soap = this; struct __trt__GetOSD soap_tmp___trt__GetOSD; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetOSD"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetOSD.trt__GetOSD = trt__GetOSD; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetOSD(soap, &soap_tmp___trt__GetOSD); 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___trt__GetOSD(soap, &soap_tmp___trt__GetOSD, "-trt:GetOSD", 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___trt__GetOSD(soap, &soap_tmp___trt__GetOSD, "-trt:GetOSD", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetOSDResponse) return soap_closesock(soap); trt__GetOSDResponse->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); trt__GetOSDResponse->soap_get(soap, "trt:GetOSDResponse", ""); 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 MediaBindingProxy::GetOSDOptions(const char *endpoint, const char *soap_action, _trt__GetOSDOptions *trt__GetOSDOptions, _trt__GetOSDOptionsResponse *trt__GetOSDOptionsResponse) { struct soap *soap = this; struct __trt__GetOSDOptions soap_tmp___trt__GetOSDOptions; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetOSDOptions"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetOSDOptions.trt__GetOSDOptions = trt__GetOSDOptions; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetOSDOptions(soap, &soap_tmp___trt__GetOSDOptions); 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___trt__GetOSDOptions(soap, &soap_tmp___trt__GetOSDOptions, "-trt:GetOSDOptions", 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___trt__GetOSDOptions(soap, &soap_tmp___trt__GetOSDOptions, "-trt:GetOSDOptions", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetOSDOptionsResponse) return soap_closesock(soap); trt__GetOSDOptionsResponse->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); trt__GetOSDOptionsResponse->soap_get(soap, "trt:GetOSDOptionsResponse", ""); 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 MediaBindingProxy::SetOSD(const char *endpoint, const char *soap_action, _trt__SetOSD *trt__SetOSD, _trt__SetOSDResponse *trt__SetOSDResponse) { struct soap *soap = this; struct __trt__SetOSD soap_tmp___trt__SetOSD; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/SetOSD"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__SetOSD.trt__SetOSD = trt__SetOSD; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__SetOSD(soap, &soap_tmp___trt__SetOSD); 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___trt__SetOSD(soap, &soap_tmp___trt__SetOSD, "-trt:SetOSD", 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___trt__SetOSD(soap, &soap_tmp___trt__SetOSD, "-trt:SetOSD", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__SetOSDResponse) return soap_closesock(soap); trt__SetOSDResponse->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); trt__SetOSDResponse->soap_get(soap, "trt:SetOSDResponse", ""); 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 MediaBindingProxy::CreateOSD(const char *endpoint, const char *soap_action, _trt__CreateOSD *trt__CreateOSD, _trt__CreateOSDResponse *trt__CreateOSDResponse) { struct soap *soap = this; struct __trt__CreateOSD soap_tmp___trt__CreateOSD; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/CreateOSD"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__CreateOSD.trt__CreateOSD = trt__CreateOSD; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__CreateOSD(soap, &soap_tmp___trt__CreateOSD); 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___trt__CreateOSD(soap, &soap_tmp___trt__CreateOSD, "-trt:CreateOSD", 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___trt__CreateOSD(soap, &soap_tmp___trt__CreateOSD, "-trt:CreateOSD", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__CreateOSDResponse) return soap_closesock(soap); trt__CreateOSDResponse->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); trt__CreateOSDResponse->soap_get(soap, "trt:CreateOSDResponse", ""); 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 MediaBindingProxy::DeleteOSD(const char *endpoint, const char *soap_action, _trt__DeleteOSD *trt__DeleteOSD, _trt__DeleteOSDResponse *trt__DeleteOSDResponse) { struct soap *soap = this; struct __trt__DeleteOSD soap_tmp___trt__DeleteOSD; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/DeleteOSD"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__DeleteOSD.trt__DeleteOSD = trt__DeleteOSD; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__DeleteOSD(soap, &soap_tmp___trt__DeleteOSD); 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___trt__DeleteOSD(soap, &soap_tmp___trt__DeleteOSD, "-trt:DeleteOSD", 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___trt__DeleteOSD(soap, &soap_tmp___trt__DeleteOSD, "-trt:DeleteOSD", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__DeleteOSDResponse) return soap_closesock(soap); trt__DeleteOSDResponse->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); trt__DeleteOSDResponse->soap_get(soap, "trt:DeleteOSDResponse", ""); 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 MediaBindingProxy::GetServiceCapabilities_(const char *endpoint, const char *soap_action, _trt__GetServiceCapabilities *trt__GetServiceCapabilities, _trt__GetServiceCapabilitiesResponse *trt__GetServiceCapabilitiesResponse) { struct soap *soap = this; struct __trt__GetServiceCapabilities_ soap_tmp___trt__GetServiceCapabilities_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetServiceCapabilities"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetServiceCapabilities_.trt__GetServiceCapabilities = trt__GetServiceCapabilities; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetServiceCapabilities_(soap, &soap_tmp___trt__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___trt__GetServiceCapabilities_(soap, &soap_tmp___trt__GetServiceCapabilities_, "-trt: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___trt__GetServiceCapabilities_(soap, &soap_tmp___trt__GetServiceCapabilities_, "-trt:GetServiceCapabilities", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetServiceCapabilitiesResponse) return soap_closesock(soap); trt__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); trt__GetServiceCapabilitiesResponse->soap_get(soap, "trt: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 MediaBindingProxy::GetVideoSources_(const char *endpoint, const char *soap_action, _trt__GetVideoSources *trt__GetVideoSources, _trt__GetVideoSourcesResponse *trt__GetVideoSourcesResponse) { struct soap *soap = this; struct __trt__GetVideoSources_ soap_tmp___trt__GetVideoSources_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdlGetVideoSources/"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetVideoSources_.trt__GetVideoSources = trt__GetVideoSources; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetVideoSources_(soap, &soap_tmp___trt__GetVideoSources_); 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___trt__GetVideoSources_(soap, &soap_tmp___trt__GetVideoSources_, "-trt:GetVideoSources", 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___trt__GetVideoSources_(soap, &soap_tmp___trt__GetVideoSources_, "-trt:GetVideoSources", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetVideoSourcesResponse) return soap_closesock(soap); trt__GetVideoSourcesResponse->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); trt__GetVideoSourcesResponse->soap_get(soap, "trt:GetVideoSourcesResponse", ""); 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 MediaBindingProxy::GetAudioSources_(const char *endpoint, const char *soap_action, _trt__GetAudioSources *trt__GetAudioSources, _trt__GetAudioSourcesResponse *trt__GetAudioSourcesResponse) { struct soap *soap = this; struct __trt__GetAudioSources_ soap_tmp___trt__GetAudioSources_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioSources"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetAudioSources_.trt__GetAudioSources = trt__GetAudioSources; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetAudioSources_(soap, &soap_tmp___trt__GetAudioSources_); 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___trt__GetAudioSources_(soap, &soap_tmp___trt__GetAudioSources_, "-trt:GetAudioSources", 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___trt__GetAudioSources_(soap, &soap_tmp___trt__GetAudioSources_, "-trt:GetAudioSources", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetAudioSourcesResponse) return soap_closesock(soap); trt__GetAudioSourcesResponse->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); trt__GetAudioSourcesResponse->soap_get(soap, "trt:GetAudioSourcesResponse", ""); 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 MediaBindingProxy::GetAudioOutputs_(const char *endpoint, const char *soap_action, _trt__GetAudioOutputs *trt__GetAudioOutputs, _trt__GetAudioOutputsResponse *trt__GetAudioOutputsResponse) { struct soap *soap = this; struct __trt__GetAudioOutputs_ soap_tmp___trt__GetAudioOutputs_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioOutputs"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetAudioOutputs_.trt__GetAudioOutputs = trt__GetAudioOutputs; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetAudioOutputs_(soap, &soap_tmp___trt__GetAudioOutputs_); 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___trt__GetAudioOutputs_(soap, &soap_tmp___trt__GetAudioOutputs_, "-trt:GetAudioOutputs", 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___trt__GetAudioOutputs_(soap, &soap_tmp___trt__GetAudioOutputs_, "-trt:GetAudioOutputs", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetAudioOutputsResponse) return soap_closesock(soap); trt__GetAudioOutputsResponse->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); trt__GetAudioOutputsResponse->soap_get(soap, "trt:GetAudioOutputsResponse", ""); 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 MediaBindingProxy::CreateProfile_(const char *endpoint, const char *soap_action, _trt__CreateProfile *trt__CreateProfile, _trt__CreateProfileResponse *trt__CreateProfileResponse) { struct soap *soap = this; struct __trt__CreateProfile_ soap_tmp___trt__CreateProfile_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/CreateProfile"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__CreateProfile_.trt__CreateProfile = trt__CreateProfile; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__CreateProfile_(soap, &soap_tmp___trt__CreateProfile_); 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___trt__CreateProfile_(soap, &soap_tmp___trt__CreateProfile_, "-trt:CreateProfile", 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___trt__CreateProfile_(soap, &soap_tmp___trt__CreateProfile_, "-trt:CreateProfile", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__CreateProfileResponse) return soap_closesock(soap); trt__CreateProfileResponse->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); trt__CreateProfileResponse->soap_get(soap, "trt:CreateProfileResponse", ""); 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 MediaBindingProxy::GetProfile_(const char *endpoint, const char *soap_action, _trt__GetProfile *trt__GetProfile, _trt__GetProfileResponse *trt__GetProfileResponse) { struct soap *soap = this; struct __trt__GetProfile_ soap_tmp___trt__GetProfile_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdlGetProfile/"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetProfile_.trt__GetProfile = trt__GetProfile; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetProfile_(soap, &soap_tmp___trt__GetProfile_); 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___trt__GetProfile_(soap, &soap_tmp___trt__GetProfile_, "-trt:GetProfile", 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___trt__GetProfile_(soap, &soap_tmp___trt__GetProfile_, "-trt:GetProfile", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetProfileResponse) return soap_closesock(soap); trt__GetProfileResponse->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); trt__GetProfileResponse->soap_get(soap, "trt:GetProfileResponse", ""); 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 MediaBindingProxy::GetProfiles_(const char *endpoint, const char *soap_action, _trt__GetProfiles *trt__GetProfiles, _trt__GetProfilesResponse *trt__GetProfilesResponse) { struct soap *soap = this; struct __trt__GetProfiles_ soap_tmp___trt__GetProfiles_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetProfiles"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetProfiles_.trt__GetProfiles = trt__GetProfiles; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetProfiles_(soap, &soap_tmp___trt__GetProfiles_); 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___trt__GetProfiles_(soap, &soap_tmp___trt__GetProfiles_, "-trt:GetProfiles", 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___trt__GetProfiles_(soap, &soap_tmp___trt__GetProfiles_, "-trt:GetProfiles", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetProfilesResponse) return soap_closesock(soap); trt__GetProfilesResponse->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); trt__GetProfilesResponse->soap_get(soap, "trt:GetProfilesResponse", ""); 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 MediaBindingProxy::AddVideoEncoderConfiguration_(const char *endpoint, const char *soap_action, _trt__AddVideoEncoderConfiguration *trt__AddVideoEncoderConfiguration, _trt__AddVideoEncoderConfigurationResponse *trt__AddVideoEncoderConfigurationResponse) { struct soap *soap = this; struct __trt__AddVideoEncoderConfiguration_ soap_tmp___trt__AddVideoEncoderConfiguration_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/AddVideoEncoderConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__AddVideoEncoderConfiguration_.trt__AddVideoEncoderConfiguration = trt__AddVideoEncoderConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__AddVideoEncoderConfiguration_(soap, &soap_tmp___trt__AddVideoEncoderConfiguration_); 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___trt__AddVideoEncoderConfiguration_(soap, &soap_tmp___trt__AddVideoEncoderConfiguration_, "-trt:AddVideoEncoderConfiguration", 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___trt__AddVideoEncoderConfiguration_(soap, &soap_tmp___trt__AddVideoEncoderConfiguration_, "-trt:AddVideoEncoderConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__AddVideoEncoderConfigurationResponse) return soap_closesock(soap); trt__AddVideoEncoderConfigurationResponse->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); trt__AddVideoEncoderConfigurationResponse->soap_get(soap, "trt:AddVideoEncoderConfigurationResponse", ""); 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 MediaBindingProxy::AddVideoSourceConfiguration_(const char *endpoint, const char *soap_action, _trt__AddVideoSourceConfiguration *trt__AddVideoSourceConfiguration, _trt__AddVideoSourceConfigurationResponse *trt__AddVideoSourceConfigurationResponse) { struct soap *soap = this; struct __trt__AddVideoSourceConfiguration_ soap_tmp___trt__AddVideoSourceConfiguration_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/AddVideoSourceConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__AddVideoSourceConfiguration_.trt__AddVideoSourceConfiguration = trt__AddVideoSourceConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__AddVideoSourceConfiguration_(soap, &soap_tmp___trt__AddVideoSourceConfiguration_); 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___trt__AddVideoSourceConfiguration_(soap, &soap_tmp___trt__AddVideoSourceConfiguration_, "-trt:AddVideoSourceConfiguration", 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___trt__AddVideoSourceConfiguration_(soap, &soap_tmp___trt__AddVideoSourceConfiguration_, "-trt:AddVideoSourceConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__AddVideoSourceConfigurationResponse) return soap_closesock(soap); trt__AddVideoSourceConfigurationResponse->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); trt__AddVideoSourceConfigurationResponse->soap_get(soap, "trt:AddVideoSourceConfigurationResponse", ""); 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 MediaBindingProxy::AddAudioEncoderConfiguration_(const char *endpoint, const char *soap_action, _trt__AddAudioEncoderConfiguration *trt__AddAudioEncoderConfiguration, _trt__AddAudioEncoderConfigurationResponse *trt__AddAudioEncoderConfigurationResponse) { struct soap *soap = this; struct __trt__AddAudioEncoderConfiguration_ soap_tmp___trt__AddAudioEncoderConfiguration_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/AddAudioEncoderConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__AddAudioEncoderConfiguration_.trt__AddAudioEncoderConfiguration = trt__AddAudioEncoderConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__AddAudioEncoderConfiguration_(soap, &soap_tmp___trt__AddAudioEncoderConfiguration_); 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___trt__AddAudioEncoderConfiguration_(soap, &soap_tmp___trt__AddAudioEncoderConfiguration_, "-trt:AddAudioEncoderConfiguration", 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___trt__AddAudioEncoderConfiguration_(soap, &soap_tmp___trt__AddAudioEncoderConfiguration_, "-trt:AddAudioEncoderConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__AddAudioEncoderConfigurationResponse) return soap_closesock(soap); trt__AddAudioEncoderConfigurationResponse->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); trt__AddAudioEncoderConfigurationResponse->soap_get(soap, "trt:AddAudioEncoderConfigurationResponse", ""); 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 MediaBindingProxy::AddAudioSourceConfiguration_(const char *endpoint, const char *soap_action, _trt__AddAudioSourceConfiguration *trt__AddAudioSourceConfiguration, _trt__AddAudioSourceConfigurationResponse *trt__AddAudioSourceConfigurationResponse) { struct soap *soap = this; struct __trt__AddAudioSourceConfiguration_ soap_tmp___trt__AddAudioSourceConfiguration_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/AddAudioSourceConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__AddAudioSourceConfiguration_.trt__AddAudioSourceConfiguration = trt__AddAudioSourceConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__AddAudioSourceConfiguration_(soap, &soap_tmp___trt__AddAudioSourceConfiguration_); 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___trt__AddAudioSourceConfiguration_(soap, &soap_tmp___trt__AddAudioSourceConfiguration_, "-trt:AddAudioSourceConfiguration", 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___trt__AddAudioSourceConfiguration_(soap, &soap_tmp___trt__AddAudioSourceConfiguration_, "-trt:AddAudioSourceConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__AddAudioSourceConfigurationResponse) return soap_closesock(soap); trt__AddAudioSourceConfigurationResponse->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); trt__AddAudioSourceConfigurationResponse->soap_get(soap, "trt:AddAudioSourceConfigurationResponse", ""); 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 MediaBindingProxy::AddPTZConfiguration_(const char *endpoint, const char *soap_action, _trt__AddPTZConfiguration *trt__AddPTZConfiguration, _trt__AddPTZConfigurationResponse *trt__AddPTZConfigurationResponse) { struct soap *soap = this; struct __trt__AddPTZConfiguration_ soap_tmp___trt__AddPTZConfiguration_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/AddPTZConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__AddPTZConfiguration_.trt__AddPTZConfiguration = trt__AddPTZConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__AddPTZConfiguration_(soap, &soap_tmp___trt__AddPTZConfiguration_); 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___trt__AddPTZConfiguration_(soap, &soap_tmp___trt__AddPTZConfiguration_, "-trt:AddPTZConfiguration", 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___trt__AddPTZConfiguration_(soap, &soap_tmp___trt__AddPTZConfiguration_, "-trt:AddPTZConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__AddPTZConfigurationResponse) return soap_closesock(soap); trt__AddPTZConfigurationResponse->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); trt__AddPTZConfigurationResponse->soap_get(soap, "trt:AddPTZConfigurationResponse", ""); 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 MediaBindingProxy::AddVideoAnalyticsConfiguration_(const char *endpoint, const char *soap_action, _trt__AddVideoAnalyticsConfiguration *trt__AddVideoAnalyticsConfiguration, _trt__AddVideoAnalyticsConfigurationResponse *trt__AddVideoAnalyticsConfigurationResponse) { struct soap *soap = this; struct __trt__AddVideoAnalyticsConfiguration_ soap_tmp___trt__AddVideoAnalyticsConfiguration_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/AddVideoAnalyticsConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__AddVideoAnalyticsConfiguration_.trt__AddVideoAnalyticsConfiguration = trt__AddVideoAnalyticsConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__AddVideoAnalyticsConfiguration_(soap, &soap_tmp___trt__AddVideoAnalyticsConfiguration_); 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___trt__AddVideoAnalyticsConfiguration_(soap, &soap_tmp___trt__AddVideoAnalyticsConfiguration_, "-trt:AddVideoAnalyticsConfiguration", 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___trt__AddVideoAnalyticsConfiguration_(soap, &soap_tmp___trt__AddVideoAnalyticsConfiguration_, "-trt:AddVideoAnalyticsConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__AddVideoAnalyticsConfigurationResponse) return soap_closesock(soap); trt__AddVideoAnalyticsConfigurationResponse->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); trt__AddVideoAnalyticsConfigurationResponse->soap_get(soap, "trt:AddVideoAnalyticsConfigurationResponse", ""); 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 MediaBindingProxy::AddMetadataConfiguration_(const char *endpoint, const char *soap_action, _trt__AddMetadataConfiguration *trt__AddMetadataConfiguration, _trt__AddMetadataConfigurationResponse *trt__AddMetadataConfigurationResponse) { struct soap *soap = this; struct __trt__AddMetadataConfiguration_ soap_tmp___trt__AddMetadataConfiguration_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/AddMetadataConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__AddMetadataConfiguration_.trt__AddMetadataConfiguration = trt__AddMetadataConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__AddMetadataConfiguration_(soap, &soap_tmp___trt__AddMetadataConfiguration_); 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___trt__AddMetadataConfiguration_(soap, &soap_tmp___trt__AddMetadataConfiguration_, "-trt:AddMetadataConfiguration", 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___trt__AddMetadataConfiguration_(soap, &soap_tmp___trt__AddMetadataConfiguration_, "-trt:AddMetadataConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__AddMetadataConfigurationResponse) return soap_closesock(soap); trt__AddMetadataConfigurationResponse->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); trt__AddMetadataConfigurationResponse->soap_get(soap, "trt:AddMetadataConfigurationResponse", ""); 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 MediaBindingProxy::AddAudioOutputConfiguration_(const char *endpoint, const char *soap_action, _trt__AddAudioOutputConfiguration *trt__AddAudioOutputConfiguration, _trt__AddAudioOutputConfigurationResponse *trt__AddAudioOutputConfigurationResponse) { struct soap *soap = this; struct __trt__AddAudioOutputConfiguration_ soap_tmp___trt__AddAudioOutputConfiguration_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/AddAudioOutputConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__AddAudioOutputConfiguration_.trt__AddAudioOutputConfiguration = trt__AddAudioOutputConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__AddAudioOutputConfiguration_(soap, &soap_tmp___trt__AddAudioOutputConfiguration_); 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___trt__AddAudioOutputConfiguration_(soap, &soap_tmp___trt__AddAudioOutputConfiguration_, "-trt:AddAudioOutputConfiguration", 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___trt__AddAudioOutputConfiguration_(soap, &soap_tmp___trt__AddAudioOutputConfiguration_, "-trt:AddAudioOutputConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__AddAudioOutputConfigurationResponse) return soap_closesock(soap); trt__AddAudioOutputConfigurationResponse->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); trt__AddAudioOutputConfigurationResponse->soap_get(soap, "trt:AddAudioOutputConfigurationResponse", ""); 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 MediaBindingProxy::AddAudioDecoderConfiguration_(const char *endpoint, const char *soap_action, _trt__AddAudioDecoderConfiguration *trt__AddAudioDecoderConfiguration, _trt__AddAudioDecoderConfigurationResponse *trt__AddAudioDecoderConfigurationResponse) { struct soap *soap = this; struct __trt__AddAudioDecoderConfiguration_ soap_tmp___trt__AddAudioDecoderConfiguration_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/AddAudioDecoderConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__AddAudioDecoderConfiguration_.trt__AddAudioDecoderConfiguration = trt__AddAudioDecoderConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__AddAudioDecoderConfiguration_(soap, &soap_tmp___trt__AddAudioDecoderConfiguration_); 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___trt__AddAudioDecoderConfiguration_(soap, &soap_tmp___trt__AddAudioDecoderConfiguration_, "-trt:AddAudioDecoderConfiguration", 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___trt__AddAudioDecoderConfiguration_(soap, &soap_tmp___trt__AddAudioDecoderConfiguration_, "-trt:AddAudioDecoderConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__AddAudioDecoderConfigurationResponse) return soap_closesock(soap); trt__AddAudioDecoderConfigurationResponse->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); trt__AddAudioDecoderConfigurationResponse->soap_get(soap, "trt:AddAudioDecoderConfigurationResponse", ""); 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 MediaBindingProxy::RemoveVideoEncoderConfiguration_(const char *endpoint, const char *soap_action, _trt__RemoveVideoEncoderConfiguration *trt__RemoveVideoEncoderConfiguration, _trt__RemoveVideoEncoderConfigurationResponse *trt__RemoveVideoEncoderConfigurationResponse) { struct soap *soap = this; struct __trt__RemoveVideoEncoderConfiguration_ soap_tmp___trt__RemoveVideoEncoderConfiguration_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/RemoveVideoEncoderConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__RemoveVideoEncoderConfiguration_.trt__RemoveVideoEncoderConfiguration = trt__RemoveVideoEncoderConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__RemoveVideoEncoderConfiguration_(soap, &soap_tmp___trt__RemoveVideoEncoderConfiguration_); 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___trt__RemoveVideoEncoderConfiguration_(soap, &soap_tmp___trt__RemoveVideoEncoderConfiguration_, "-trt:RemoveVideoEncoderConfiguration", 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___trt__RemoveVideoEncoderConfiguration_(soap, &soap_tmp___trt__RemoveVideoEncoderConfiguration_, "-trt:RemoveVideoEncoderConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__RemoveVideoEncoderConfigurationResponse) return soap_closesock(soap); trt__RemoveVideoEncoderConfigurationResponse->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); trt__RemoveVideoEncoderConfigurationResponse->soap_get(soap, "trt:RemoveVideoEncoderConfigurationResponse", ""); 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 MediaBindingProxy::RemoveVideoSourceConfiguration_(const char *endpoint, const char *soap_action, _trt__RemoveVideoSourceConfiguration *trt__RemoveVideoSourceConfiguration, _trt__RemoveVideoSourceConfigurationResponse *trt__RemoveVideoSourceConfigurationResponse) { struct soap *soap = this; struct __trt__RemoveVideoSourceConfiguration_ soap_tmp___trt__RemoveVideoSourceConfiguration_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/RemoveVideoSourceConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__RemoveVideoSourceConfiguration_.trt__RemoveVideoSourceConfiguration = trt__RemoveVideoSourceConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__RemoveVideoSourceConfiguration_(soap, &soap_tmp___trt__RemoveVideoSourceConfiguration_); 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___trt__RemoveVideoSourceConfiguration_(soap, &soap_tmp___trt__RemoveVideoSourceConfiguration_, "-trt:RemoveVideoSourceConfiguration", 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___trt__RemoveVideoSourceConfiguration_(soap, &soap_tmp___trt__RemoveVideoSourceConfiguration_, "-trt:RemoveVideoSourceConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__RemoveVideoSourceConfigurationResponse) return soap_closesock(soap); trt__RemoveVideoSourceConfigurationResponse->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); trt__RemoveVideoSourceConfigurationResponse->soap_get(soap, "trt:RemoveVideoSourceConfigurationResponse", ""); 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 MediaBindingProxy::RemoveAudioEncoderConfiguration_(const char *endpoint, const char *soap_action, _trt__RemoveAudioEncoderConfiguration *trt__RemoveAudioEncoderConfiguration, _trt__RemoveAudioEncoderConfigurationResponse *trt__RemoveAudioEncoderConfigurationResponse) { struct soap *soap = this; struct __trt__RemoveAudioEncoderConfiguration_ soap_tmp___trt__RemoveAudioEncoderConfiguration_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/RemoveAudioEncoderConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__RemoveAudioEncoderConfiguration_.trt__RemoveAudioEncoderConfiguration = trt__RemoveAudioEncoderConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__RemoveAudioEncoderConfiguration_(soap, &soap_tmp___trt__RemoveAudioEncoderConfiguration_); 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___trt__RemoveAudioEncoderConfiguration_(soap, &soap_tmp___trt__RemoveAudioEncoderConfiguration_, "-trt:RemoveAudioEncoderConfiguration", 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___trt__RemoveAudioEncoderConfiguration_(soap, &soap_tmp___trt__RemoveAudioEncoderConfiguration_, "-trt:RemoveAudioEncoderConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__RemoveAudioEncoderConfigurationResponse) return soap_closesock(soap); trt__RemoveAudioEncoderConfigurationResponse->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); trt__RemoveAudioEncoderConfigurationResponse->soap_get(soap, "trt:RemoveAudioEncoderConfigurationResponse", ""); 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 MediaBindingProxy::RemoveAudioSourceConfiguration_(const char *endpoint, const char *soap_action, _trt__RemoveAudioSourceConfiguration *trt__RemoveAudioSourceConfiguration, _trt__RemoveAudioSourceConfigurationResponse *trt__RemoveAudioSourceConfigurationResponse) { struct soap *soap = this; struct __trt__RemoveAudioSourceConfiguration_ soap_tmp___trt__RemoveAudioSourceConfiguration_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/RemoveAudioSourceConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__RemoveAudioSourceConfiguration_.trt__RemoveAudioSourceConfiguration = trt__RemoveAudioSourceConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__RemoveAudioSourceConfiguration_(soap, &soap_tmp___trt__RemoveAudioSourceConfiguration_); 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___trt__RemoveAudioSourceConfiguration_(soap, &soap_tmp___trt__RemoveAudioSourceConfiguration_, "-trt:RemoveAudioSourceConfiguration", 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___trt__RemoveAudioSourceConfiguration_(soap, &soap_tmp___trt__RemoveAudioSourceConfiguration_, "-trt:RemoveAudioSourceConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__RemoveAudioSourceConfigurationResponse) return soap_closesock(soap); trt__RemoveAudioSourceConfigurationResponse->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); trt__RemoveAudioSourceConfigurationResponse->soap_get(soap, "trt:RemoveAudioSourceConfigurationResponse", ""); 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 MediaBindingProxy::RemovePTZConfiguration_(const char *endpoint, const char *soap_action, _trt__RemovePTZConfiguration *trt__RemovePTZConfiguration, _trt__RemovePTZConfigurationResponse *trt__RemovePTZConfigurationResponse) { struct soap *soap = this; struct __trt__RemovePTZConfiguration_ soap_tmp___trt__RemovePTZConfiguration_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/RemovePTZConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__RemovePTZConfiguration_.trt__RemovePTZConfiguration = trt__RemovePTZConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__RemovePTZConfiguration_(soap, &soap_tmp___trt__RemovePTZConfiguration_); 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___trt__RemovePTZConfiguration_(soap, &soap_tmp___trt__RemovePTZConfiguration_, "-trt:RemovePTZConfiguration", 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___trt__RemovePTZConfiguration_(soap, &soap_tmp___trt__RemovePTZConfiguration_, "-trt:RemovePTZConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__RemovePTZConfigurationResponse) return soap_closesock(soap); trt__RemovePTZConfigurationResponse->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); trt__RemovePTZConfigurationResponse->soap_get(soap, "trt:RemovePTZConfigurationResponse", ""); 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 MediaBindingProxy::RemoveVideoAnalyticsConfiguration_(const char *endpoint, const char *soap_action, _trt__RemoveVideoAnalyticsConfiguration *trt__RemoveVideoAnalyticsConfiguration, _trt__RemoveVideoAnalyticsConfigurationResponse *trt__RemoveVideoAnalyticsConfigurationResponse) { struct soap *soap = this; struct __trt__RemoveVideoAnalyticsConfiguration_ soap_tmp___trt__RemoveVideoAnalyticsConfiguration_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/RemoveVideoAnalyticsConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__RemoveVideoAnalyticsConfiguration_.trt__RemoveVideoAnalyticsConfiguration = trt__RemoveVideoAnalyticsConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__RemoveVideoAnalyticsConfiguration_(soap, &soap_tmp___trt__RemoveVideoAnalyticsConfiguration_); 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___trt__RemoveVideoAnalyticsConfiguration_(soap, &soap_tmp___trt__RemoveVideoAnalyticsConfiguration_, "-trt:RemoveVideoAnalyticsConfiguration", 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___trt__RemoveVideoAnalyticsConfiguration_(soap, &soap_tmp___trt__RemoveVideoAnalyticsConfiguration_, "-trt:RemoveVideoAnalyticsConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__RemoveVideoAnalyticsConfigurationResponse) return soap_closesock(soap); trt__RemoveVideoAnalyticsConfigurationResponse->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); trt__RemoveVideoAnalyticsConfigurationResponse->soap_get(soap, "trt:RemoveVideoAnalyticsConfigurationResponse", ""); 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 MediaBindingProxy::RemoveMetadataConfiguration_(const char *endpoint, const char *soap_action, _trt__RemoveMetadataConfiguration *trt__RemoveMetadataConfiguration, _trt__RemoveMetadataConfigurationResponse *trt__RemoveMetadataConfigurationResponse) { struct soap *soap = this; struct __trt__RemoveMetadataConfiguration_ soap_tmp___trt__RemoveMetadataConfiguration_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/RemoveMetadataConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__RemoveMetadataConfiguration_.trt__RemoveMetadataConfiguration = trt__RemoveMetadataConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__RemoveMetadataConfiguration_(soap, &soap_tmp___trt__RemoveMetadataConfiguration_); 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___trt__RemoveMetadataConfiguration_(soap, &soap_tmp___trt__RemoveMetadataConfiguration_, "-trt:RemoveMetadataConfiguration", 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___trt__RemoveMetadataConfiguration_(soap, &soap_tmp___trt__RemoveMetadataConfiguration_, "-trt:RemoveMetadataConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__RemoveMetadataConfigurationResponse) return soap_closesock(soap); trt__RemoveMetadataConfigurationResponse->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); trt__RemoveMetadataConfigurationResponse->soap_get(soap, "trt:RemoveMetadataConfigurationResponse", ""); 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 MediaBindingProxy::RemoveAudioOutputConfiguration_(const char *endpoint, const char *soap_action, _trt__RemoveAudioOutputConfiguration *trt__RemoveAudioOutputConfiguration, _trt__RemoveAudioOutputConfigurationResponse *trt__RemoveAudioOutputConfigurationResponse) { struct soap *soap = this; struct __trt__RemoveAudioOutputConfiguration_ soap_tmp___trt__RemoveAudioOutputConfiguration_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/RemoveAudioOutputConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__RemoveAudioOutputConfiguration_.trt__RemoveAudioOutputConfiguration = trt__RemoveAudioOutputConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__RemoveAudioOutputConfiguration_(soap, &soap_tmp___trt__RemoveAudioOutputConfiguration_); 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___trt__RemoveAudioOutputConfiguration_(soap, &soap_tmp___trt__RemoveAudioOutputConfiguration_, "-trt:RemoveAudioOutputConfiguration", 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___trt__RemoveAudioOutputConfiguration_(soap, &soap_tmp___trt__RemoveAudioOutputConfiguration_, "-trt:RemoveAudioOutputConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__RemoveAudioOutputConfigurationResponse) return soap_closesock(soap); trt__RemoveAudioOutputConfigurationResponse->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); trt__RemoveAudioOutputConfigurationResponse->soap_get(soap, "trt:RemoveAudioOutputConfigurationResponse", ""); 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 MediaBindingProxy::RemoveAudioDecoderConfiguration_(const char *endpoint, const char *soap_action, _trt__RemoveAudioDecoderConfiguration *trt__RemoveAudioDecoderConfiguration, _trt__RemoveAudioDecoderConfigurationResponse *trt__RemoveAudioDecoderConfigurationResponse) { struct soap *soap = this; struct __trt__RemoveAudioDecoderConfiguration_ soap_tmp___trt__RemoveAudioDecoderConfiguration_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/RemoveAudioDecoderConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__RemoveAudioDecoderConfiguration_.trt__RemoveAudioDecoderConfiguration = trt__RemoveAudioDecoderConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__RemoveAudioDecoderConfiguration_(soap, &soap_tmp___trt__RemoveAudioDecoderConfiguration_); 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___trt__RemoveAudioDecoderConfiguration_(soap, &soap_tmp___trt__RemoveAudioDecoderConfiguration_, "-trt:RemoveAudioDecoderConfiguration", 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___trt__RemoveAudioDecoderConfiguration_(soap, &soap_tmp___trt__RemoveAudioDecoderConfiguration_, "-trt:RemoveAudioDecoderConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__RemoveAudioDecoderConfigurationResponse) return soap_closesock(soap); trt__RemoveAudioDecoderConfigurationResponse->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); trt__RemoveAudioDecoderConfigurationResponse->soap_get(soap, "trt:RemoveAudioDecoderConfigurationResponse", ""); 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 MediaBindingProxy::DeleteProfile_(const char *endpoint, const char *soap_action, _trt__DeleteProfile *trt__DeleteProfile, _trt__DeleteProfileResponse *trt__DeleteProfileResponse) { struct soap *soap = this; struct __trt__DeleteProfile_ soap_tmp___trt__DeleteProfile_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/DeleteProfile"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__DeleteProfile_.trt__DeleteProfile = trt__DeleteProfile; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__DeleteProfile_(soap, &soap_tmp___trt__DeleteProfile_); 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___trt__DeleteProfile_(soap, &soap_tmp___trt__DeleteProfile_, "-trt:DeleteProfile", 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___trt__DeleteProfile_(soap, &soap_tmp___trt__DeleteProfile_, "-trt:DeleteProfile", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__DeleteProfileResponse) return soap_closesock(soap); trt__DeleteProfileResponse->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); trt__DeleteProfileResponse->soap_get(soap, "trt:DeleteProfileResponse", ""); 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 MediaBindingProxy::GetVideoSourceConfigurations_(const char *endpoint, const char *soap_action, _trt__GetVideoSourceConfigurations *trt__GetVideoSourceConfigurations, _trt__GetVideoSourceConfigurationsResponse *trt__GetVideoSourceConfigurationsResponse) { struct soap *soap = this; struct __trt__GetVideoSourceConfigurations_ soap_tmp___trt__GetVideoSourceConfigurations_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetVideoSourceConfigurations"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetVideoSourceConfigurations_.trt__GetVideoSourceConfigurations = trt__GetVideoSourceConfigurations; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetVideoSourceConfigurations_(soap, &soap_tmp___trt__GetVideoSourceConfigurations_); 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___trt__GetVideoSourceConfigurations_(soap, &soap_tmp___trt__GetVideoSourceConfigurations_, "-trt:GetVideoSourceConfigurations", 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___trt__GetVideoSourceConfigurations_(soap, &soap_tmp___trt__GetVideoSourceConfigurations_, "-trt:GetVideoSourceConfigurations", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetVideoSourceConfigurationsResponse) return soap_closesock(soap); trt__GetVideoSourceConfigurationsResponse->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); trt__GetVideoSourceConfigurationsResponse->soap_get(soap, "trt:GetVideoSourceConfigurationsResponse", ""); 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 MediaBindingProxy::GetVideoEncoderConfigurations_(const char *endpoint, const char *soap_action, _trt__GetVideoEncoderConfigurations *trt__GetVideoEncoderConfigurations, _trt__GetVideoEncoderConfigurationsResponse *trt__GetVideoEncoderConfigurationsResponse) { struct soap *soap = this; struct __trt__GetVideoEncoderConfigurations_ soap_tmp___trt__GetVideoEncoderConfigurations_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetVideoEncoderConfigurations"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetVideoEncoderConfigurations_.trt__GetVideoEncoderConfigurations = trt__GetVideoEncoderConfigurations; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetVideoEncoderConfigurations_(soap, &soap_tmp___trt__GetVideoEncoderConfigurations_); 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___trt__GetVideoEncoderConfigurations_(soap, &soap_tmp___trt__GetVideoEncoderConfigurations_, "-trt:GetVideoEncoderConfigurations", 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___trt__GetVideoEncoderConfigurations_(soap, &soap_tmp___trt__GetVideoEncoderConfigurations_, "-trt:GetVideoEncoderConfigurations", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetVideoEncoderConfigurationsResponse) return soap_closesock(soap); trt__GetVideoEncoderConfigurationsResponse->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); trt__GetVideoEncoderConfigurationsResponse->soap_get(soap, "trt:GetVideoEncoderConfigurationsResponse", ""); 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 MediaBindingProxy::GetAudioSourceConfigurations_(const char *endpoint, const char *soap_action, _trt__GetAudioSourceConfigurations *trt__GetAudioSourceConfigurations, _trt__GetAudioSourceConfigurationsResponse *trt__GetAudioSourceConfigurationsResponse) { struct soap *soap = this; struct __trt__GetAudioSourceConfigurations_ soap_tmp___trt__GetAudioSourceConfigurations_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdlGetAudioSourceConfigurations/"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetAudioSourceConfigurations_.trt__GetAudioSourceConfigurations = trt__GetAudioSourceConfigurations; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetAudioSourceConfigurations_(soap, &soap_tmp___trt__GetAudioSourceConfigurations_); 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___trt__GetAudioSourceConfigurations_(soap, &soap_tmp___trt__GetAudioSourceConfigurations_, "-trt:GetAudioSourceConfigurations", 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___trt__GetAudioSourceConfigurations_(soap, &soap_tmp___trt__GetAudioSourceConfigurations_, "-trt:GetAudioSourceConfigurations", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetAudioSourceConfigurationsResponse) return soap_closesock(soap); trt__GetAudioSourceConfigurationsResponse->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); trt__GetAudioSourceConfigurationsResponse->soap_get(soap, "trt:GetAudioSourceConfigurationsResponse", ""); 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 MediaBindingProxy::GetAudioEncoderConfigurations_(const char *endpoint, const char *soap_action, _trt__GetAudioEncoderConfigurations *trt__GetAudioEncoderConfigurations, _trt__GetAudioEncoderConfigurationsResponse *trt__GetAudioEncoderConfigurationsResponse) { struct soap *soap = this; struct __trt__GetAudioEncoderConfigurations_ soap_tmp___trt__GetAudioEncoderConfigurations_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioEncoderConfigurations"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetAudioEncoderConfigurations_.trt__GetAudioEncoderConfigurations = trt__GetAudioEncoderConfigurations; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetAudioEncoderConfigurations_(soap, &soap_tmp___trt__GetAudioEncoderConfigurations_); 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___trt__GetAudioEncoderConfigurations_(soap, &soap_tmp___trt__GetAudioEncoderConfigurations_, "-trt:GetAudioEncoderConfigurations", 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___trt__GetAudioEncoderConfigurations_(soap, &soap_tmp___trt__GetAudioEncoderConfigurations_, "-trt:GetAudioEncoderConfigurations", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetAudioEncoderConfigurationsResponse) return soap_closesock(soap); trt__GetAudioEncoderConfigurationsResponse->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); trt__GetAudioEncoderConfigurationsResponse->soap_get(soap, "trt:GetAudioEncoderConfigurationsResponse", ""); 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 MediaBindingProxy::GetVideoAnalyticsConfigurations_(const char *endpoint, const char *soap_action, _trt__GetVideoAnalyticsConfigurations *trt__GetVideoAnalyticsConfigurations, _trt__GetVideoAnalyticsConfigurationsResponse *trt__GetVideoAnalyticsConfigurationsResponse) { struct soap *soap = this; struct __trt__GetVideoAnalyticsConfigurations_ soap_tmp___trt__GetVideoAnalyticsConfigurations_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetVideoAnalyticsConfigurations"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetVideoAnalyticsConfigurations_.trt__GetVideoAnalyticsConfigurations = trt__GetVideoAnalyticsConfigurations; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetVideoAnalyticsConfigurations_(soap, &soap_tmp___trt__GetVideoAnalyticsConfigurations_); 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___trt__GetVideoAnalyticsConfigurations_(soap, &soap_tmp___trt__GetVideoAnalyticsConfigurations_, "-trt:GetVideoAnalyticsConfigurations", 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___trt__GetVideoAnalyticsConfigurations_(soap, &soap_tmp___trt__GetVideoAnalyticsConfigurations_, "-trt:GetVideoAnalyticsConfigurations", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetVideoAnalyticsConfigurationsResponse) return soap_closesock(soap); trt__GetVideoAnalyticsConfigurationsResponse->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); trt__GetVideoAnalyticsConfigurationsResponse->soap_get(soap, "trt:GetVideoAnalyticsConfigurationsResponse", ""); 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 MediaBindingProxy::GetMetadataConfigurations_(const char *endpoint, const char *soap_action, _trt__GetMetadataConfigurations *trt__GetMetadataConfigurations, _trt__GetMetadataConfigurationsResponse *trt__GetMetadataConfigurationsResponse) { struct soap *soap = this; struct __trt__GetMetadataConfigurations_ soap_tmp___trt__GetMetadataConfigurations_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetMetadataConfigurations"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetMetadataConfigurations_.trt__GetMetadataConfigurations = trt__GetMetadataConfigurations; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetMetadataConfigurations_(soap, &soap_tmp___trt__GetMetadataConfigurations_); 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___trt__GetMetadataConfigurations_(soap, &soap_tmp___trt__GetMetadataConfigurations_, "-trt:GetMetadataConfigurations", 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___trt__GetMetadataConfigurations_(soap, &soap_tmp___trt__GetMetadataConfigurations_, "-trt:GetMetadataConfigurations", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetMetadataConfigurationsResponse) return soap_closesock(soap); trt__GetMetadataConfigurationsResponse->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); trt__GetMetadataConfigurationsResponse->soap_get(soap, "trt:GetMetadataConfigurationsResponse", ""); 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 MediaBindingProxy::GetAudioOutputConfigurations_(const char *endpoint, const char *soap_action, _trt__GetAudioOutputConfigurations *trt__GetAudioOutputConfigurations, _trt__GetAudioOutputConfigurationsResponse *trt__GetAudioOutputConfigurationsResponse) { struct soap *soap = this; struct __trt__GetAudioOutputConfigurations_ soap_tmp___trt__GetAudioOutputConfigurations_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioOutputConfigurations"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetAudioOutputConfigurations_.trt__GetAudioOutputConfigurations = trt__GetAudioOutputConfigurations; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetAudioOutputConfigurations_(soap, &soap_tmp___trt__GetAudioOutputConfigurations_); 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___trt__GetAudioOutputConfigurations_(soap, &soap_tmp___trt__GetAudioOutputConfigurations_, "-trt:GetAudioOutputConfigurations", 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___trt__GetAudioOutputConfigurations_(soap, &soap_tmp___trt__GetAudioOutputConfigurations_, "-trt:GetAudioOutputConfigurations", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetAudioOutputConfigurationsResponse) return soap_closesock(soap); trt__GetAudioOutputConfigurationsResponse->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); trt__GetAudioOutputConfigurationsResponse->soap_get(soap, "trt:GetAudioOutputConfigurationsResponse", ""); 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 MediaBindingProxy::GetAudioDecoderConfigurations_(const char *endpoint, const char *soap_action, _trt__GetAudioDecoderConfigurations *trt__GetAudioDecoderConfigurations, _trt__GetAudioDecoderConfigurationsResponse *trt__GetAudioDecoderConfigurationsResponse) { struct soap *soap = this; struct __trt__GetAudioDecoderConfigurations_ soap_tmp___trt__GetAudioDecoderConfigurations_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioDecoderConfigurations"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetAudioDecoderConfigurations_.trt__GetAudioDecoderConfigurations = trt__GetAudioDecoderConfigurations; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetAudioDecoderConfigurations_(soap, &soap_tmp___trt__GetAudioDecoderConfigurations_); 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___trt__GetAudioDecoderConfigurations_(soap, &soap_tmp___trt__GetAudioDecoderConfigurations_, "-trt:GetAudioDecoderConfigurations", 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___trt__GetAudioDecoderConfigurations_(soap, &soap_tmp___trt__GetAudioDecoderConfigurations_, "-trt:GetAudioDecoderConfigurations", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetAudioDecoderConfigurationsResponse) return soap_closesock(soap); trt__GetAudioDecoderConfigurationsResponse->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); trt__GetAudioDecoderConfigurationsResponse->soap_get(soap, "trt:GetAudioDecoderConfigurationsResponse", ""); 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 MediaBindingProxy::GetVideoSourceConfiguration_(const char *endpoint, const char *soap_action, _trt__GetVideoSourceConfiguration *trt__GetVideoSourceConfiguration, _trt__GetVideoSourceConfigurationResponse *trt__GetVideoSourceConfigurationResponse) { struct soap *soap = this; struct __trt__GetVideoSourceConfiguration_ soap_tmp___trt__GetVideoSourceConfiguration_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetVideoSourceConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetVideoSourceConfiguration_.trt__GetVideoSourceConfiguration = trt__GetVideoSourceConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetVideoSourceConfiguration_(soap, &soap_tmp___trt__GetVideoSourceConfiguration_); 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___trt__GetVideoSourceConfiguration_(soap, &soap_tmp___trt__GetVideoSourceConfiguration_, "-trt:GetVideoSourceConfiguration", 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___trt__GetVideoSourceConfiguration_(soap, &soap_tmp___trt__GetVideoSourceConfiguration_, "-trt:GetVideoSourceConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetVideoSourceConfigurationResponse) return soap_closesock(soap); trt__GetVideoSourceConfigurationResponse->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); trt__GetVideoSourceConfigurationResponse->soap_get(soap, "trt:GetVideoSourceConfigurationResponse", ""); 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 MediaBindingProxy::GetVideoEncoderConfiguration_(const char *endpoint, const char *soap_action, _trt__GetVideoEncoderConfiguration *trt__GetVideoEncoderConfiguration, _trt__GetVideoEncoderConfigurationResponse *trt__GetVideoEncoderConfigurationResponse) { struct soap *soap = this; struct __trt__GetVideoEncoderConfiguration_ soap_tmp___trt__GetVideoEncoderConfiguration_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetVideoEncoderConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetVideoEncoderConfiguration_.trt__GetVideoEncoderConfiguration = trt__GetVideoEncoderConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetVideoEncoderConfiguration_(soap, &soap_tmp___trt__GetVideoEncoderConfiguration_); 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___trt__GetVideoEncoderConfiguration_(soap, &soap_tmp___trt__GetVideoEncoderConfiguration_, "-trt:GetVideoEncoderConfiguration", 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___trt__GetVideoEncoderConfiguration_(soap, &soap_tmp___trt__GetVideoEncoderConfiguration_, "-trt:GetVideoEncoderConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetVideoEncoderConfigurationResponse) return soap_closesock(soap); trt__GetVideoEncoderConfigurationResponse->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); trt__GetVideoEncoderConfigurationResponse->soap_get(soap, "trt:GetVideoEncoderConfigurationResponse", ""); 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 MediaBindingProxy::GetAudioSourceConfiguration_(const char *endpoint, const char *soap_action, _trt__GetAudioSourceConfiguration *trt__GetAudioSourceConfiguration, _trt__GetAudioSourceConfigurationResponse *trt__GetAudioSourceConfigurationResponse) { struct soap *soap = this; struct __trt__GetAudioSourceConfiguration_ soap_tmp___trt__GetAudioSourceConfiguration_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioSourceConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetAudioSourceConfiguration_.trt__GetAudioSourceConfiguration = trt__GetAudioSourceConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetAudioSourceConfiguration_(soap, &soap_tmp___trt__GetAudioSourceConfiguration_); 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___trt__GetAudioSourceConfiguration_(soap, &soap_tmp___trt__GetAudioSourceConfiguration_, "-trt:GetAudioSourceConfiguration", 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___trt__GetAudioSourceConfiguration_(soap, &soap_tmp___trt__GetAudioSourceConfiguration_, "-trt:GetAudioSourceConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetAudioSourceConfigurationResponse) return soap_closesock(soap); trt__GetAudioSourceConfigurationResponse->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); trt__GetAudioSourceConfigurationResponse->soap_get(soap, "trt:GetAudioSourceConfigurationResponse", ""); 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 MediaBindingProxy::GetAudioEncoderConfiguration_(const char *endpoint, const char *soap_action, _trt__GetAudioEncoderConfiguration *trt__GetAudioEncoderConfiguration, _trt__GetAudioEncoderConfigurationResponse *trt__GetAudioEncoderConfigurationResponse) { struct soap *soap = this; struct __trt__GetAudioEncoderConfiguration_ soap_tmp___trt__GetAudioEncoderConfiguration_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioEncoderConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetAudioEncoderConfiguration_.trt__GetAudioEncoderConfiguration = trt__GetAudioEncoderConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetAudioEncoderConfiguration_(soap, &soap_tmp___trt__GetAudioEncoderConfiguration_); 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___trt__GetAudioEncoderConfiguration_(soap, &soap_tmp___trt__GetAudioEncoderConfiguration_, "-trt:GetAudioEncoderConfiguration", 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___trt__GetAudioEncoderConfiguration_(soap, &soap_tmp___trt__GetAudioEncoderConfiguration_, "-trt:GetAudioEncoderConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetAudioEncoderConfigurationResponse) return soap_closesock(soap); trt__GetAudioEncoderConfigurationResponse->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); trt__GetAudioEncoderConfigurationResponse->soap_get(soap, "trt:GetAudioEncoderConfigurationResponse", ""); 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 MediaBindingProxy::GetVideoAnalyticsConfiguration_(const char *endpoint, const char *soap_action, _trt__GetVideoAnalyticsConfiguration *trt__GetVideoAnalyticsConfiguration, _trt__GetVideoAnalyticsConfigurationResponse *trt__GetVideoAnalyticsConfigurationResponse) { struct soap *soap = this; struct __trt__GetVideoAnalyticsConfiguration_ soap_tmp___trt__GetVideoAnalyticsConfiguration_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetVideoAnalyticsConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetVideoAnalyticsConfiguration_.trt__GetVideoAnalyticsConfiguration = trt__GetVideoAnalyticsConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetVideoAnalyticsConfiguration_(soap, &soap_tmp___trt__GetVideoAnalyticsConfiguration_); 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___trt__GetVideoAnalyticsConfiguration_(soap, &soap_tmp___trt__GetVideoAnalyticsConfiguration_, "-trt:GetVideoAnalyticsConfiguration", 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___trt__GetVideoAnalyticsConfiguration_(soap, &soap_tmp___trt__GetVideoAnalyticsConfiguration_, "-trt:GetVideoAnalyticsConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetVideoAnalyticsConfigurationResponse) return soap_closesock(soap); trt__GetVideoAnalyticsConfigurationResponse->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); trt__GetVideoAnalyticsConfigurationResponse->soap_get(soap, "trt:GetVideoAnalyticsConfigurationResponse", ""); 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 MediaBindingProxy::GetMetadataConfiguration_(const char *endpoint, const char *soap_action, _trt__GetMetadataConfiguration *trt__GetMetadataConfiguration, _trt__GetMetadataConfigurationResponse *trt__GetMetadataConfigurationResponse) { struct soap *soap = this; struct __trt__GetMetadataConfiguration_ soap_tmp___trt__GetMetadataConfiguration_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetMetadataConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetMetadataConfiguration_.trt__GetMetadataConfiguration = trt__GetMetadataConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetMetadataConfiguration_(soap, &soap_tmp___trt__GetMetadataConfiguration_); 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___trt__GetMetadataConfiguration_(soap, &soap_tmp___trt__GetMetadataConfiguration_, "-trt:GetMetadataConfiguration", 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___trt__GetMetadataConfiguration_(soap, &soap_tmp___trt__GetMetadataConfiguration_, "-trt:GetMetadataConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetMetadataConfigurationResponse) return soap_closesock(soap); trt__GetMetadataConfigurationResponse->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); trt__GetMetadataConfigurationResponse->soap_get(soap, "trt:GetMetadataConfigurationResponse", ""); 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 MediaBindingProxy::GetAudioOutputConfiguration_(const char *endpoint, const char *soap_action, _trt__GetAudioOutputConfiguration *trt__GetAudioOutputConfiguration, _trt__GetAudioOutputConfigurationResponse *trt__GetAudioOutputConfigurationResponse) { struct soap *soap = this; struct __trt__GetAudioOutputConfiguration_ soap_tmp___trt__GetAudioOutputConfiguration_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioOutputConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetAudioOutputConfiguration_.trt__GetAudioOutputConfiguration = trt__GetAudioOutputConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetAudioOutputConfiguration_(soap, &soap_tmp___trt__GetAudioOutputConfiguration_); 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___trt__GetAudioOutputConfiguration_(soap, &soap_tmp___trt__GetAudioOutputConfiguration_, "-trt:GetAudioOutputConfiguration", 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___trt__GetAudioOutputConfiguration_(soap, &soap_tmp___trt__GetAudioOutputConfiguration_, "-trt:GetAudioOutputConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetAudioOutputConfigurationResponse) return soap_closesock(soap); trt__GetAudioOutputConfigurationResponse->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); trt__GetAudioOutputConfigurationResponse->soap_get(soap, "trt:GetAudioOutputConfigurationResponse", ""); 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 MediaBindingProxy::GetAudioDecoderConfiguration_(const char *endpoint, const char *soap_action, _trt__GetAudioDecoderConfiguration *trt__GetAudioDecoderConfiguration, _trt__GetAudioDecoderConfigurationResponse *trt__GetAudioDecoderConfigurationResponse) { struct soap *soap = this; struct __trt__GetAudioDecoderConfiguration_ soap_tmp___trt__GetAudioDecoderConfiguration_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioDecoderConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetAudioDecoderConfiguration_.trt__GetAudioDecoderConfiguration = trt__GetAudioDecoderConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetAudioDecoderConfiguration_(soap, &soap_tmp___trt__GetAudioDecoderConfiguration_); 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___trt__GetAudioDecoderConfiguration_(soap, &soap_tmp___trt__GetAudioDecoderConfiguration_, "-trt:GetAudioDecoderConfiguration", 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___trt__GetAudioDecoderConfiguration_(soap, &soap_tmp___trt__GetAudioDecoderConfiguration_, "-trt:GetAudioDecoderConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetAudioDecoderConfigurationResponse) return soap_closesock(soap); trt__GetAudioDecoderConfigurationResponse->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); trt__GetAudioDecoderConfigurationResponse->soap_get(soap, "trt:GetAudioDecoderConfigurationResponse", ""); 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 MediaBindingProxy::GetCompatibleVideoEncoderConfigurations_(const char *endpoint, const char *soap_action, _trt__GetCompatibleVideoEncoderConfigurations *trt__GetCompatibleVideoEncoderConfigurations, _trt__GetCompatibleVideoEncoderConfigurationsResponse *trt__GetCompatibleVideoEncoderConfigurationsResponse) { struct soap *soap = this; struct __trt__GetCompatibleVideoEncoderConfigurations_ soap_tmp___trt__GetCompatibleVideoEncoderConfigurations_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetCompatibleVideoEncoderConfigurations"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetCompatibleVideoEncoderConfigurations_.trt__GetCompatibleVideoEncoderConfigurations = trt__GetCompatibleVideoEncoderConfigurations; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetCompatibleVideoEncoderConfigurations_(soap, &soap_tmp___trt__GetCompatibleVideoEncoderConfigurations_); 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___trt__GetCompatibleVideoEncoderConfigurations_(soap, &soap_tmp___trt__GetCompatibleVideoEncoderConfigurations_, "-trt:GetCompatibleVideoEncoderConfigurations", 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___trt__GetCompatibleVideoEncoderConfigurations_(soap, &soap_tmp___trt__GetCompatibleVideoEncoderConfigurations_, "-trt:GetCompatibleVideoEncoderConfigurations", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetCompatibleVideoEncoderConfigurationsResponse) return soap_closesock(soap); trt__GetCompatibleVideoEncoderConfigurationsResponse->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); trt__GetCompatibleVideoEncoderConfigurationsResponse->soap_get(soap, "trt:GetCompatibleVideoEncoderConfigurationsResponse", ""); 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 MediaBindingProxy::GetCompatibleVideoSourceConfigurations_(const char *endpoint, const char *soap_action, _trt__GetCompatibleVideoSourceConfigurations *trt__GetCompatibleVideoSourceConfigurations, _trt__GetCompatibleVideoSourceConfigurationsResponse *trt__GetCompatibleVideoSourceConfigurationsResponse) { struct soap *soap = this; struct __trt__GetCompatibleVideoSourceConfigurations_ soap_tmp___trt__GetCompatibleVideoSourceConfigurations_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetCompatibleVideoSourceConfigurations"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetCompatibleVideoSourceConfigurations_.trt__GetCompatibleVideoSourceConfigurations = trt__GetCompatibleVideoSourceConfigurations; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetCompatibleVideoSourceConfigurations_(soap, &soap_tmp___trt__GetCompatibleVideoSourceConfigurations_); 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___trt__GetCompatibleVideoSourceConfigurations_(soap, &soap_tmp___trt__GetCompatibleVideoSourceConfigurations_, "-trt:GetCompatibleVideoSourceConfigurations", 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___trt__GetCompatibleVideoSourceConfigurations_(soap, &soap_tmp___trt__GetCompatibleVideoSourceConfigurations_, "-trt:GetCompatibleVideoSourceConfigurations", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetCompatibleVideoSourceConfigurationsResponse) return soap_closesock(soap); trt__GetCompatibleVideoSourceConfigurationsResponse->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); trt__GetCompatibleVideoSourceConfigurationsResponse->soap_get(soap, "trt:GetCompatibleVideoSourceConfigurationsResponse", ""); 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 MediaBindingProxy::GetCompatibleAudioEncoderConfigurations_(const char *endpoint, const char *soap_action, _trt__GetCompatibleAudioEncoderConfigurations *trt__GetCompatibleAudioEncoderConfigurations, _trt__GetCompatibleAudioEncoderConfigurationsResponse *trt__GetCompatibleAudioEncoderConfigurationsResponse) { struct soap *soap = this; struct __trt__GetCompatibleAudioEncoderConfigurations_ soap_tmp___trt__GetCompatibleAudioEncoderConfigurations_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetCompatibleAudioEncoderConfigurations"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetCompatibleAudioEncoderConfigurations_.trt__GetCompatibleAudioEncoderConfigurations = trt__GetCompatibleAudioEncoderConfigurations; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetCompatibleAudioEncoderConfigurations_(soap, &soap_tmp___trt__GetCompatibleAudioEncoderConfigurations_); 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___trt__GetCompatibleAudioEncoderConfigurations_(soap, &soap_tmp___trt__GetCompatibleAudioEncoderConfigurations_, "-trt:GetCompatibleAudioEncoderConfigurations", 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___trt__GetCompatibleAudioEncoderConfigurations_(soap, &soap_tmp___trt__GetCompatibleAudioEncoderConfigurations_, "-trt:GetCompatibleAudioEncoderConfigurations", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetCompatibleAudioEncoderConfigurationsResponse) return soap_closesock(soap); trt__GetCompatibleAudioEncoderConfigurationsResponse->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); trt__GetCompatibleAudioEncoderConfigurationsResponse->soap_get(soap, "trt:GetCompatibleAudioEncoderConfigurationsResponse", ""); 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 MediaBindingProxy::GetCompatibleAudioSourceConfigurations_(const char *endpoint, const char *soap_action, _trt__GetCompatibleAudioSourceConfigurations *trt__GetCompatibleAudioSourceConfigurations, _trt__GetCompatibleAudioSourceConfigurationsResponse *trt__GetCompatibleAudioSourceConfigurationsResponse) { struct soap *soap = this; struct __trt__GetCompatibleAudioSourceConfigurations_ soap_tmp___trt__GetCompatibleAudioSourceConfigurations_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetCompatibleAudioSourceConfigurations"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetCompatibleAudioSourceConfigurations_.trt__GetCompatibleAudioSourceConfigurations = trt__GetCompatibleAudioSourceConfigurations; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetCompatibleAudioSourceConfigurations_(soap, &soap_tmp___trt__GetCompatibleAudioSourceConfigurations_); 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___trt__GetCompatibleAudioSourceConfigurations_(soap, &soap_tmp___trt__GetCompatibleAudioSourceConfigurations_, "-trt:GetCompatibleAudioSourceConfigurations", 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___trt__GetCompatibleAudioSourceConfigurations_(soap, &soap_tmp___trt__GetCompatibleAudioSourceConfigurations_, "-trt:GetCompatibleAudioSourceConfigurations", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetCompatibleAudioSourceConfigurationsResponse) return soap_closesock(soap); trt__GetCompatibleAudioSourceConfigurationsResponse->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); trt__GetCompatibleAudioSourceConfigurationsResponse->soap_get(soap, "trt:GetCompatibleAudioSourceConfigurationsResponse", ""); 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 MediaBindingProxy::GetCompatibleVideoAnalyticsConfigurations_(const char *endpoint, const char *soap_action, _trt__GetCompatibleVideoAnalyticsConfigurations *trt__GetCompatibleVideoAnalyticsConfigurations, _trt__GetCompatibleVideoAnalyticsConfigurationsResponse *trt__GetCompatibleVideoAnalyticsConfigurationsResponse) { struct soap *soap = this; struct __trt__GetCompatibleVideoAnalyticsConfigurations_ soap_tmp___trt__GetCompatibleVideoAnalyticsConfigurations_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetCompatibleVideoAnalyticsConfigurations"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetCompatibleVideoAnalyticsConfigurations_.trt__GetCompatibleVideoAnalyticsConfigurations = trt__GetCompatibleVideoAnalyticsConfigurations; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetCompatibleVideoAnalyticsConfigurations_(soap, &soap_tmp___trt__GetCompatibleVideoAnalyticsConfigurations_); 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___trt__GetCompatibleVideoAnalyticsConfigurations_(soap, &soap_tmp___trt__GetCompatibleVideoAnalyticsConfigurations_, "-trt:GetCompatibleVideoAnalyticsConfigurations", 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___trt__GetCompatibleVideoAnalyticsConfigurations_(soap, &soap_tmp___trt__GetCompatibleVideoAnalyticsConfigurations_, "-trt:GetCompatibleVideoAnalyticsConfigurations", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetCompatibleVideoAnalyticsConfigurationsResponse) return soap_closesock(soap); trt__GetCompatibleVideoAnalyticsConfigurationsResponse->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); trt__GetCompatibleVideoAnalyticsConfigurationsResponse->soap_get(soap, "trt:GetCompatibleVideoAnalyticsConfigurationsResponse", ""); 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 MediaBindingProxy::GetCompatibleMetadataConfigurations_(const char *endpoint, const char *soap_action, _trt__GetCompatibleMetadataConfigurations *trt__GetCompatibleMetadataConfigurations, _trt__GetCompatibleMetadataConfigurationsResponse *trt__GetCompatibleMetadataConfigurationsResponse) { struct soap *soap = this; struct __trt__GetCompatibleMetadataConfigurations_ soap_tmp___trt__GetCompatibleMetadataConfigurations_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetCompatibleMetadataConfigurations"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetCompatibleMetadataConfigurations_.trt__GetCompatibleMetadataConfigurations = trt__GetCompatibleMetadataConfigurations; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetCompatibleMetadataConfigurations_(soap, &soap_tmp___trt__GetCompatibleMetadataConfigurations_); 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___trt__GetCompatibleMetadataConfigurations_(soap, &soap_tmp___trt__GetCompatibleMetadataConfigurations_, "-trt:GetCompatibleMetadataConfigurations", 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___trt__GetCompatibleMetadataConfigurations_(soap, &soap_tmp___trt__GetCompatibleMetadataConfigurations_, "-trt:GetCompatibleMetadataConfigurations", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetCompatibleMetadataConfigurationsResponse) return soap_closesock(soap); trt__GetCompatibleMetadataConfigurationsResponse->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); trt__GetCompatibleMetadataConfigurationsResponse->soap_get(soap, "trt:GetCompatibleMetadataConfigurationsResponse", ""); 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 MediaBindingProxy::GetCompatibleAudioOutputConfigurations_(const char *endpoint, const char *soap_action, _trt__GetCompatibleAudioOutputConfigurations *trt__GetCompatibleAudioOutputConfigurations, _trt__GetCompatibleAudioOutputConfigurationsResponse *trt__GetCompatibleAudioOutputConfigurationsResponse) { struct soap *soap = this; struct __trt__GetCompatibleAudioOutputConfigurations_ soap_tmp___trt__GetCompatibleAudioOutputConfigurations_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetCompatibleAudioOutputConfigurations"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetCompatibleAudioOutputConfigurations_.trt__GetCompatibleAudioOutputConfigurations = trt__GetCompatibleAudioOutputConfigurations; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetCompatibleAudioOutputConfigurations_(soap, &soap_tmp___trt__GetCompatibleAudioOutputConfigurations_); 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___trt__GetCompatibleAudioOutputConfigurations_(soap, &soap_tmp___trt__GetCompatibleAudioOutputConfigurations_, "-trt:GetCompatibleAudioOutputConfigurations", 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___trt__GetCompatibleAudioOutputConfigurations_(soap, &soap_tmp___trt__GetCompatibleAudioOutputConfigurations_, "-trt:GetCompatibleAudioOutputConfigurations", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetCompatibleAudioOutputConfigurationsResponse) return soap_closesock(soap); trt__GetCompatibleAudioOutputConfigurationsResponse->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); trt__GetCompatibleAudioOutputConfigurationsResponse->soap_get(soap, "trt:GetCompatibleAudioOutputConfigurationsResponse", ""); 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 MediaBindingProxy::GetCompatibleAudioDecoderConfigurations_(const char *endpoint, const char *soap_action, _trt__GetCompatibleAudioDecoderConfigurations *trt__GetCompatibleAudioDecoderConfigurations, _trt__GetCompatibleAudioDecoderConfigurationsResponse *trt__GetCompatibleAudioDecoderConfigurationsResponse) { struct soap *soap = this; struct __trt__GetCompatibleAudioDecoderConfigurations_ soap_tmp___trt__GetCompatibleAudioDecoderConfigurations_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetCompatibleAudioDecoderConfigurations"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetCompatibleAudioDecoderConfigurations_.trt__GetCompatibleAudioDecoderConfigurations = trt__GetCompatibleAudioDecoderConfigurations; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetCompatibleAudioDecoderConfigurations_(soap, &soap_tmp___trt__GetCompatibleAudioDecoderConfigurations_); 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___trt__GetCompatibleAudioDecoderConfigurations_(soap, &soap_tmp___trt__GetCompatibleAudioDecoderConfigurations_, "-trt:GetCompatibleAudioDecoderConfigurations", 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___trt__GetCompatibleAudioDecoderConfigurations_(soap, &soap_tmp___trt__GetCompatibleAudioDecoderConfigurations_, "-trt:GetCompatibleAudioDecoderConfigurations", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetCompatibleAudioDecoderConfigurationsResponse) return soap_closesock(soap); trt__GetCompatibleAudioDecoderConfigurationsResponse->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); trt__GetCompatibleAudioDecoderConfigurationsResponse->soap_get(soap, "trt:GetCompatibleAudioDecoderConfigurationsResponse", ""); 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 MediaBindingProxy::SetVideoSourceConfiguration_(const char *endpoint, const char *soap_action, _trt__SetVideoSourceConfiguration *trt__SetVideoSourceConfiguration, _trt__SetVideoSourceConfigurationResponse *trt__SetVideoSourceConfigurationResponse) { struct soap *soap = this; struct __trt__SetVideoSourceConfiguration_ soap_tmp___trt__SetVideoSourceConfiguration_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/SetVideoSourceConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__SetVideoSourceConfiguration_.trt__SetVideoSourceConfiguration = trt__SetVideoSourceConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__SetVideoSourceConfiguration_(soap, &soap_tmp___trt__SetVideoSourceConfiguration_); 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___trt__SetVideoSourceConfiguration_(soap, &soap_tmp___trt__SetVideoSourceConfiguration_, "-trt:SetVideoSourceConfiguration", 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___trt__SetVideoSourceConfiguration_(soap, &soap_tmp___trt__SetVideoSourceConfiguration_, "-trt:SetVideoSourceConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__SetVideoSourceConfigurationResponse) return soap_closesock(soap); trt__SetVideoSourceConfigurationResponse->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); trt__SetVideoSourceConfigurationResponse->soap_get(soap, "trt:SetVideoSourceConfigurationResponse", ""); 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 MediaBindingProxy::SetVideoEncoderConfiguration_(const char *endpoint, const char *soap_action, _trt__SetVideoEncoderConfiguration *trt__SetVideoEncoderConfiguration, _trt__SetVideoEncoderConfigurationResponse *trt__SetVideoEncoderConfigurationResponse) { struct soap *soap = this; struct __trt__SetVideoEncoderConfiguration_ soap_tmp___trt__SetVideoEncoderConfiguration_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/SetVideoEncoderConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__SetVideoEncoderConfiguration_.trt__SetVideoEncoderConfiguration = trt__SetVideoEncoderConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__SetVideoEncoderConfiguration_(soap, &soap_tmp___trt__SetVideoEncoderConfiguration_); 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___trt__SetVideoEncoderConfiguration_(soap, &soap_tmp___trt__SetVideoEncoderConfiguration_, "-trt:SetVideoEncoderConfiguration", 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___trt__SetVideoEncoderConfiguration_(soap, &soap_tmp___trt__SetVideoEncoderConfiguration_, "-trt:SetVideoEncoderConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__SetVideoEncoderConfigurationResponse) return soap_closesock(soap); trt__SetVideoEncoderConfigurationResponse->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); trt__SetVideoEncoderConfigurationResponse->soap_get(soap, "trt:SetVideoEncoderConfigurationResponse", ""); 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 MediaBindingProxy::SetAudioSourceConfiguration_(const char *endpoint, const char *soap_action, _trt__SetAudioSourceConfiguration *trt__SetAudioSourceConfiguration, _trt__SetAudioSourceConfigurationResponse *trt__SetAudioSourceConfigurationResponse) { struct soap *soap = this; struct __trt__SetAudioSourceConfiguration_ soap_tmp___trt__SetAudioSourceConfiguration_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/SetAudioSourceConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__SetAudioSourceConfiguration_.trt__SetAudioSourceConfiguration = trt__SetAudioSourceConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__SetAudioSourceConfiguration_(soap, &soap_tmp___trt__SetAudioSourceConfiguration_); 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___trt__SetAudioSourceConfiguration_(soap, &soap_tmp___trt__SetAudioSourceConfiguration_, "-trt:SetAudioSourceConfiguration", 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___trt__SetAudioSourceConfiguration_(soap, &soap_tmp___trt__SetAudioSourceConfiguration_, "-trt:SetAudioSourceConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__SetAudioSourceConfigurationResponse) return soap_closesock(soap); trt__SetAudioSourceConfigurationResponse->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); trt__SetAudioSourceConfigurationResponse->soap_get(soap, "trt:SetAudioSourceConfigurationResponse", ""); 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 MediaBindingProxy::SetAudioEncoderConfiguration_(const char *endpoint, const char *soap_action, _trt__SetAudioEncoderConfiguration *trt__SetAudioEncoderConfiguration, _trt__SetAudioEncoderConfigurationResponse *trt__SetAudioEncoderConfigurationResponse) { struct soap *soap = this; struct __trt__SetAudioEncoderConfiguration_ soap_tmp___trt__SetAudioEncoderConfiguration_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/SetAudioEncoderConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__SetAudioEncoderConfiguration_.trt__SetAudioEncoderConfiguration = trt__SetAudioEncoderConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__SetAudioEncoderConfiguration_(soap, &soap_tmp___trt__SetAudioEncoderConfiguration_); 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___trt__SetAudioEncoderConfiguration_(soap, &soap_tmp___trt__SetAudioEncoderConfiguration_, "-trt:SetAudioEncoderConfiguration", 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___trt__SetAudioEncoderConfiguration_(soap, &soap_tmp___trt__SetAudioEncoderConfiguration_, "-trt:SetAudioEncoderConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__SetAudioEncoderConfigurationResponse) return soap_closesock(soap); trt__SetAudioEncoderConfigurationResponse->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); trt__SetAudioEncoderConfigurationResponse->soap_get(soap, "trt:SetAudioEncoderConfigurationResponse", ""); 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 MediaBindingProxy::SetVideoAnalyticsConfiguration_(const char *endpoint, const char *soap_action, _trt__SetVideoAnalyticsConfiguration *trt__SetVideoAnalyticsConfiguration, _trt__SetVideoAnalyticsConfigurationResponse *trt__SetVideoAnalyticsConfigurationResponse) { struct soap *soap = this; struct __trt__SetVideoAnalyticsConfiguration_ soap_tmp___trt__SetVideoAnalyticsConfiguration_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/SetVideoAnalyticsConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__SetVideoAnalyticsConfiguration_.trt__SetVideoAnalyticsConfiguration = trt__SetVideoAnalyticsConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__SetVideoAnalyticsConfiguration_(soap, &soap_tmp___trt__SetVideoAnalyticsConfiguration_); 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___trt__SetVideoAnalyticsConfiguration_(soap, &soap_tmp___trt__SetVideoAnalyticsConfiguration_, "-trt:SetVideoAnalyticsConfiguration", 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___trt__SetVideoAnalyticsConfiguration_(soap, &soap_tmp___trt__SetVideoAnalyticsConfiguration_, "-trt:SetVideoAnalyticsConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__SetVideoAnalyticsConfigurationResponse) return soap_closesock(soap); trt__SetVideoAnalyticsConfigurationResponse->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); trt__SetVideoAnalyticsConfigurationResponse->soap_get(soap, "trt:SetVideoAnalyticsConfigurationResponse", ""); 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 MediaBindingProxy::SetMetadataConfiguration_(const char *endpoint, const char *soap_action, _trt__SetMetadataConfiguration *trt__SetMetadataConfiguration, _trt__SetMetadataConfigurationResponse *trt__SetMetadataConfigurationResponse) { struct soap *soap = this; struct __trt__SetMetadataConfiguration_ soap_tmp___trt__SetMetadataConfiguration_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/SetMetadataConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__SetMetadataConfiguration_.trt__SetMetadataConfiguration = trt__SetMetadataConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__SetMetadataConfiguration_(soap, &soap_tmp___trt__SetMetadataConfiguration_); 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___trt__SetMetadataConfiguration_(soap, &soap_tmp___trt__SetMetadataConfiguration_, "-trt:SetMetadataConfiguration", 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___trt__SetMetadataConfiguration_(soap, &soap_tmp___trt__SetMetadataConfiguration_, "-trt:SetMetadataConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__SetMetadataConfigurationResponse) return soap_closesock(soap); trt__SetMetadataConfigurationResponse->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); trt__SetMetadataConfigurationResponse->soap_get(soap, "trt:SetMetadataConfigurationResponse", ""); 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 MediaBindingProxy::SetAudioOutputConfiguration_(const char *endpoint, const char *soap_action, _trt__SetAudioOutputConfiguration *trt__SetAudioOutputConfiguration, _trt__SetAudioOutputConfigurationResponse *trt__SetAudioOutputConfigurationResponse) { struct soap *soap = this; struct __trt__SetAudioOutputConfiguration_ soap_tmp___trt__SetAudioOutputConfiguration_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/SetAudioOutputConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__SetAudioOutputConfiguration_.trt__SetAudioOutputConfiguration = trt__SetAudioOutputConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__SetAudioOutputConfiguration_(soap, &soap_tmp___trt__SetAudioOutputConfiguration_); 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___trt__SetAudioOutputConfiguration_(soap, &soap_tmp___trt__SetAudioOutputConfiguration_, "-trt:SetAudioOutputConfiguration", 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___trt__SetAudioOutputConfiguration_(soap, &soap_tmp___trt__SetAudioOutputConfiguration_, "-trt:SetAudioOutputConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__SetAudioOutputConfigurationResponse) return soap_closesock(soap); trt__SetAudioOutputConfigurationResponse->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); trt__SetAudioOutputConfigurationResponse->soap_get(soap, "trt:SetAudioOutputConfigurationResponse", ""); 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 MediaBindingProxy::SetAudioDecoderConfiguration_(const char *endpoint, const char *soap_action, _trt__SetAudioDecoderConfiguration *trt__SetAudioDecoderConfiguration, _trt__SetAudioDecoderConfigurationResponse *trt__SetAudioDecoderConfigurationResponse) { struct soap *soap = this; struct __trt__SetAudioDecoderConfiguration_ soap_tmp___trt__SetAudioDecoderConfiguration_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/SetAudioDecoderConfiguration"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__SetAudioDecoderConfiguration_.trt__SetAudioDecoderConfiguration = trt__SetAudioDecoderConfiguration; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__SetAudioDecoderConfiguration_(soap, &soap_tmp___trt__SetAudioDecoderConfiguration_); 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___trt__SetAudioDecoderConfiguration_(soap, &soap_tmp___trt__SetAudioDecoderConfiguration_, "-trt:SetAudioDecoderConfiguration", 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___trt__SetAudioDecoderConfiguration_(soap, &soap_tmp___trt__SetAudioDecoderConfiguration_, "-trt:SetAudioDecoderConfiguration", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__SetAudioDecoderConfigurationResponse) return soap_closesock(soap); trt__SetAudioDecoderConfigurationResponse->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); trt__SetAudioDecoderConfigurationResponse->soap_get(soap, "trt:SetAudioDecoderConfigurationResponse", ""); 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 MediaBindingProxy::GetVideoSourceConfigurationOptions_(const char *endpoint, const char *soap_action, _trt__GetVideoSourceConfigurationOptions *trt__GetVideoSourceConfigurationOptions, _trt__GetVideoSourceConfigurationOptionsResponse *trt__GetVideoSourceConfigurationOptionsResponse) { struct soap *soap = this; struct __trt__GetVideoSourceConfigurationOptions_ soap_tmp___trt__GetVideoSourceConfigurationOptions_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdlGetVideoSourceConfigurationOptions/"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetVideoSourceConfigurationOptions_.trt__GetVideoSourceConfigurationOptions = trt__GetVideoSourceConfigurationOptions; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetVideoSourceConfigurationOptions_(soap, &soap_tmp___trt__GetVideoSourceConfigurationOptions_); 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___trt__GetVideoSourceConfigurationOptions_(soap, &soap_tmp___trt__GetVideoSourceConfigurationOptions_, "-trt:GetVideoSourceConfigurationOptions", 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___trt__GetVideoSourceConfigurationOptions_(soap, &soap_tmp___trt__GetVideoSourceConfigurationOptions_, "-trt:GetVideoSourceConfigurationOptions", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetVideoSourceConfigurationOptionsResponse) return soap_closesock(soap); trt__GetVideoSourceConfigurationOptionsResponse->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); trt__GetVideoSourceConfigurationOptionsResponse->soap_get(soap, "trt:GetVideoSourceConfigurationOptionsResponse", ""); 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 MediaBindingProxy::GetVideoEncoderConfigurationOptions_(const char *endpoint, const char *soap_action, _trt__GetVideoEncoderConfigurationOptions *trt__GetVideoEncoderConfigurationOptions, _trt__GetVideoEncoderConfigurationOptionsResponse *trt__GetVideoEncoderConfigurationOptionsResponse) { struct soap *soap = this; struct __trt__GetVideoEncoderConfigurationOptions_ soap_tmp___trt__GetVideoEncoderConfigurationOptions_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetVideoEncoderConfigurationOptions"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetVideoEncoderConfigurationOptions_.trt__GetVideoEncoderConfigurationOptions = trt__GetVideoEncoderConfigurationOptions; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetVideoEncoderConfigurationOptions_(soap, &soap_tmp___trt__GetVideoEncoderConfigurationOptions_); 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___trt__GetVideoEncoderConfigurationOptions_(soap, &soap_tmp___trt__GetVideoEncoderConfigurationOptions_, "-trt:GetVideoEncoderConfigurationOptions", 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___trt__GetVideoEncoderConfigurationOptions_(soap, &soap_tmp___trt__GetVideoEncoderConfigurationOptions_, "-trt:GetVideoEncoderConfigurationOptions", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetVideoEncoderConfigurationOptionsResponse) return soap_closesock(soap); trt__GetVideoEncoderConfigurationOptionsResponse->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); trt__GetVideoEncoderConfigurationOptionsResponse->soap_get(soap, "trt:GetVideoEncoderConfigurationOptionsResponse", ""); 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 MediaBindingProxy::GetAudioSourceConfigurationOptions_(const char *endpoint, const char *soap_action, _trt__GetAudioSourceConfigurationOptions *trt__GetAudioSourceConfigurationOptions, _trt__GetAudioSourceConfigurationOptionsResponse *trt__GetAudioSourceConfigurationOptionsResponse) { struct soap *soap = this; struct __trt__GetAudioSourceConfigurationOptions_ soap_tmp___trt__GetAudioSourceConfigurationOptions_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioSourceConfigurationOptions"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetAudioSourceConfigurationOptions_.trt__GetAudioSourceConfigurationOptions = trt__GetAudioSourceConfigurationOptions; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetAudioSourceConfigurationOptions_(soap, &soap_tmp___trt__GetAudioSourceConfigurationOptions_); 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___trt__GetAudioSourceConfigurationOptions_(soap, &soap_tmp___trt__GetAudioSourceConfigurationOptions_, "-trt:GetAudioSourceConfigurationOptions", 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___trt__GetAudioSourceConfigurationOptions_(soap, &soap_tmp___trt__GetAudioSourceConfigurationOptions_, "-trt:GetAudioSourceConfigurationOptions", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetAudioSourceConfigurationOptionsResponse) return soap_closesock(soap); trt__GetAudioSourceConfigurationOptionsResponse->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); trt__GetAudioSourceConfigurationOptionsResponse->soap_get(soap, "trt:GetAudioSourceConfigurationOptionsResponse", ""); 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 MediaBindingProxy::GetAudioEncoderConfigurationOptions_(const char *endpoint, const char *soap_action, _trt__GetAudioEncoderConfigurationOptions *trt__GetAudioEncoderConfigurationOptions, _trt__GetAudioEncoderConfigurationOptionsResponse *trt__GetAudioEncoderConfigurationOptionsResponse) { struct soap *soap = this; struct __trt__GetAudioEncoderConfigurationOptions_ soap_tmp___trt__GetAudioEncoderConfigurationOptions_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioEncoderConfigurationOptions"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetAudioEncoderConfigurationOptions_.trt__GetAudioEncoderConfigurationOptions = trt__GetAudioEncoderConfigurationOptions; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetAudioEncoderConfigurationOptions_(soap, &soap_tmp___trt__GetAudioEncoderConfigurationOptions_); 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___trt__GetAudioEncoderConfigurationOptions_(soap, &soap_tmp___trt__GetAudioEncoderConfigurationOptions_, "-trt:GetAudioEncoderConfigurationOptions", 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___trt__GetAudioEncoderConfigurationOptions_(soap, &soap_tmp___trt__GetAudioEncoderConfigurationOptions_, "-trt:GetAudioEncoderConfigurationOptions", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetAudioEncoderConfigurationOptionsResponse) return soap_closesock(soap); trt__GetAudioEncoderConfigurationOptionsResponse->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); trt__GetAudioEncoderConfigurationOptionsResponse->soap_get(soap, "trt:GetAudioEncoderConfigurationOptionsResponse", ""); 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 MediaBindingProxy::GetMetadataConfigurationOptions_(const char *endpoint, const char *soap_action, _trt__GetMetadataConfigurationOptions *trt__GetMetadataConfigurationOptions, _trt__GetMetadataConfigurationOptionsResponse *trt__GetMetadataConfigurationOptionsResponse) { struct soap *soap = this; struct __trt__GetMetadataConfigurationOptions_ soap_tmp___trt__GetMetadataConfigurationOptions_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetMetadataConfigurationOptions"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetMetadataConfigurationOptions_.trt__GetMetadataConfigurationOptions = trt__GetMetadataConfigurationOptions; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetMetadataConfigurationOptions_(soap, &soap_tmp___trt__GetMetadataConfigurationOptions_); 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___trt__GetMetadataConfigurationOptions_(soap, &soap_tmp___trt__GetMetadataConfigurationOptions_, "-trt:GetMetadataConfigurationOptions", 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___trt__GetMetadataConfigurationOptions_(soap, &soap_tmp___trt__GetMetadataConfigurationOptions_, "-trt:GetMetadataConfigurationOptions", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetMetadataConfigurationOptionsResponse) return soap_closesock(soap); trt__GetMetadataConfigurationOptionsResponse->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); trt__GetMetadataConfigurationOptionsResponse->soap_get(soap, "trt:GetMetadataConfigurationOptionsResponse", ""); 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 MediaBindingProxy::GetAudioOutputConfigurationOptions_(const char *endpoint, const char *soap_action, _trt__GetAudioOutputConfigurationOptions *trt__GetAudioOutputConfigurationOptions, _trt__GetAudioOutputConfigurationOptionsResponse *trt__GetAudioOutputConfigurationOptionsResponse) { struct soap *soap = this; struct __trt__GetAudioOutputConfigurationOptions_ soap_tmp___trt__GetAudioOutputConfigurationOptions_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioOutputConfigurationOptions"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetAudioOutputConfigurationOptions_.trt__GetAudioOutputConfigurationOptions = trt__GetAudioOutputConfigurationOptions; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetAudioOutputConfigurationOptions_(soap, &soap_tmp___trt__GetAudioOutputConfigurationOptions_); 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___trt__GetAudioOutputConfigurationOptions_(soap, &soap_tmp___trt__GetAudioOutputConfigurationOptions_, "-trt:GetAudioOutputConfigurationOptions", 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___trt__GetAudioOutputConfigurationOptions_(soap, &soap_tmp___trt__GetAudioOutputConfigurationOptions_, "-trt:GetAudioOutputConfigurationOptions", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetAudioOutputConfigurationOptionsResponse) return soap_closesock(soap); trt__GetAudioOutputConfigurationOptionsResponse->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); trt__GetAudioOutputConfigurationOptionsResponse->soap_get(soap, "trt:GetAudioOutputConfigurationOptionsResponse", ""); 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 MediaBindingProxy::GetAudioDecoderConfigurationOptions_(const char *endpoint, const char *soap_action, _trt__GetAudioDecoderConfigurationOptions *trt__GetAudioDecoderConfigurationOptions, _trt__GetAudioDecoderConfigurationOptionsResponse *trt__GetAudioDecoderConfigurationOptionsResponse) { struct soap *soap = this; struct __trt__GetAudioDecoderConfigurationOptions_ soap_tmp___trt__GetAudioDecoderConfigurationOptions_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetAudioDecoderConfigurationOptions"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetAudioDecoderConfigurationOptions_.trt__GetAudioDecoderConfigurationOptions = trt__GetAudioDecoderConfigurationOptions; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetAudioDecoderConfigurationOptions_(soap, &soap_tmp___trt__GetAudioDecoderConfigurationOptions_); 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___trt__GetAudioDecoderConfigurationOptions_(soap, &soap_tmp___trt__GetAudioDecoderConfigurationOptions_, "-trt:GetAudioDecoderConfigurationOptions", 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___trt__GetAudioDecoderConfigurationOptions_(soap, &soap_tmp___trt__GetAudioDecoderConfigurationOptions_, "-trt:GetAudioDecoderConfigurationOptions", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetAudioDecoderConfigurationOptionsResponse) return soap_closesock(soap); trt__GetAudioDecoderConfigurationOptionsResponse->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); trt__GetAudioDecoderConfigurationOptionsResponse->soap_get(soap, "trt:GetAudioDecoderConfigurationOptionsResponse", ""); 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 MediaBindingProxy::GetGuaranteedNumberOfVideoEncoderInstances_(const char *endpoint, const char *soap_action, _trt__GetGuaranteedNumberOfVideoEncoderInstances *trt__GetGuaranteedNumberOfVideoEncoderInstances, _trt__GetGuaranteedNumberOfVideoEncoderInstancesResponse *trt__GetGuaranteedNumberOfVideoEncoderInstancesResponse) { struct soap *soap = this; struct __trt__GetGuaranteedNumberOfVideoEncoderInstances_ soap_tmp___trt__GetGuaranteedNumberOfVideoEncoderInstances_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetGuaranteedNumberOfVideoEncoderInstances"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetGuaranteedNumberOfVideoEncoderInstances_.trt__GetGuaranteedNumberOfVideoEncoderInstances = trt__GetGuaranteedNumberOfVideoEncoderInstances; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetGuaranteedNumberOfVideoEncoderInstances_(soap, &soap_tmp___trt__GetGuaranteedNumberOfVideoEncoderInstances_); 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___trt__GetGuaranteedNumberOfVideoEncoderInstances_(soap, &soap_tmp___trt__GetGuaranteedNumberOfVideoEncoderInstances_, "-trt:GetGuaranteedNumberOfVideoEncoderInstances", 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___trt__GetGuaranteedNumberOfVideoEncoderInstances_(soap, &soap_tmp___trt__GetGuaranteedNumberOfVideoEncoderInstances_, "-trt:GetGuaranteedNumberOfVideoEncoderInstances", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetGuaranteedNumberOfVideoEncoderInstancesResponse) return soap_closesock(soap); trt__GetGuaranteedNumberOfVideoEncoderInstancesResponse->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); trt__GetGuaranteedNumberOfVideoEncoderInstancesResponse->soap_get(soap, "trt:GetGuaranteedNumberOfVideoEncoderInstancesResponse", ""); 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 MediaBindingProxy::GetStreamUri_(const char *endpoint, const char *soap_action, _trt__GetStreamUri *trt__GetStreamUri, _trt__GetStreamUriResponse *trt__GetStreamUriResponse) { struct soap *soap = this; struct __trt__GetStreamUri_ soap_tmp___trt__GetStreamUri_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetStreamUri"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetStreamUri_.trt__GetStreamUri = trt__GetStreamUri; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetStreamUri_(soap, &soap_tmp___trt__GetStreamUri_); 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___trt__GetStreamUri_(soap, &soap_tmp___trt__GetStreamUri_, "-trt:GetStreamUri", 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___trt__GetStreamUri_(soap, &soap_tmp___trt__GetStreamUri_, "-trt:GetStreamUri", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetStreamUriResponse) return soap_closesock(soap); trt__GetStreamUriResponse->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); trt__GetStreamUriResponse->soap_get(soap, "trt:GetStreamUriResponse", ""); 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 MediaBindingProxy::StartMulticastStreaming_(const char *endpoint, const char *soap_action, _trt__StartMulticastStreaming *trt__StartMulticastStreaming, _trt__StartMulticastStreamingResponse *trt__StartMulticastStreamingResponse) { struct soap *soap = this; struct __trt__StartMulticastStreaming_ soap_tmp___trt__StartMulticastStreaming_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/StartMulticastStreaming"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__StartMulticastStreaming_.trt__StartMulticastStreaming = trt__StartMulticastStreaming; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__StartMulticastStreaming_(soap, &soap_tmp___trt__StartMulticastStreaming_); 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___trt__StartMulticastStreaming_(soap, &soap_tmp___trt__StartMulticastStreaming_, "-trt:StartMulticastStreaming", 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___trt__StartMulticastStreaming_(soap, &soap_tmp___trt__StartMulticastStreaming_, "-trt:StartMulticastStreaming", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__StartMulticastStreamingResponse) return soap_closesock(soap); trt__StartMulticastStreamingResponse->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); trt__StartMulticastStreamingResponse->soap_get(soap, "trt:StartMulticastStreamingResponse", ""); 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 MediaBindingProxy::StopMulticastStreaming_(const char *endpoint, const char *soap_action, _trt__StopMulticastStreaming *trt__StopMulticastStreaming, _trt__StopMulticastStreamingResponse *trt__StopMulticastStreamingResponse) { struct soap *soap = this; struct __trt__StopMulticastStreaming_ soap_tmp___trt__StopMulticastStreaming_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/StopMulticastStreaming"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__StopMulticastStreaming_.trt__StopMulticastStreaming = trt__StopMulticastStreaming; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__StopMulticastStreaming_(soap, &soap_tmp___trt__StopMulticastStreaming_); 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___trt__StopMulticastStreaming_(soap, &soap_tmp___trt__StopMulticastStreaming_, "-trt:StopMulticastStreaming", 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___trt__StopMulticastStreaming_(soap, &soap_tmp___trt__StopMulticastStreaming_, "-trt:StopMulticastStreaming", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__StopMulticastStreamingResponse) return soap_closesock(soap); trt__StopMulticastStreamingResponse->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); trt__StopMulticastStreamingResponse->soap_get(soap, "trt:StopMulticastStreamingResponse", ""); 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 MediaBindingProxy::SetSynchronizationPoint_(const char *endpoint, const char *soap_action, _trt__SetSynchronizationPoint *trt__SetSynchronizationPoint, _trt__SetSynchronizationPointResponse *trt__SetSynchronizationPointResponse) { struct soap *soap = this; struct __trt__SetSynchronizationPoint_ soap_tmp___trt__SetSynchronizationPoint_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/SetSynchronizationPoint"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__SetSynchronizationPoint_.trt__SetSynchronizationPoint = trt__SetSynchronizationPoint; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__SetSynchronizationPoint_(soap, &soap_tmp___trt__SetSynchronizationPoint_); 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___trt__SetSynchronizationPoint_(soap, &soap_tmp___trt__SetSynchronizationPoint_, "-trt:SetSynchronizationPoint", 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___trt__SetSynchronizationPoint_(soap, &soap_tmp___trt__SetSynchronizationPoint_, "-trt:SetSynchronizationPoint", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__SetSynchronizationPointResponse) return soap_closesock(soap); trt__SetSynchronizationPointResponse->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); trt__SetSynchronizationPointResponse->soap_get(soap, "trt:SetSynchronizationPointResponse", ""); 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 MediaBindingProxy::GetSnapshotUri_(const char *endpoint, const char *soap_action, _trt__GetSnapshotUri *trt__GetSnapshotUri, _trt__GetSnapshotUriResponse *trt__GetSnapshotUriResponse) { struct soap *soap = this; struct __trt__GetSnapshotUri_ soap_tmp___trt__GetSnapshotUri_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetSnapshotUri"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetSnapshotUri_.trt__GetSnapshotUri = trt__GetSnapshotUri; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetSnapshotUri_(soap, &soap_tmp___trt__GetSnapshotUri_); 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___trt__GetSnapshotUri_(soap, &soap_tmp___trt__GetSnapshotUri_, "-trt:GetSnapshotUri", 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___trt__GetSnapshotUri_(soap, &soap_tmp___trt__GetSnapshotUri_, "-trt:GetSnapshotUri", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetSnapshotUriResponse) return soap_closesock(soap); trt__GetSnapshotUriResponse->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); trt__GetSnapshotUriResponse->soap_get(soap, "trt:GetSnapshotUriResponse", ""); 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 MediaBindingProxy::GetVideoSourceModes_(const char *endpoint, const char *soap_action, _trt__GetVideoSourceModes *trt__GetVideoSourceModes, _trt__GetVideoSourceModesResponse *trt__GetVideoSourceModesResponse) { struct soap *soap = this; struct __trt__GetVideoSourceModes_ soap_tmp___trt__GetVideoSourceModes_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetVideoSourceModes"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetVideoSourceModes_.trt__GetVideoSourceModes = trt__GetVideoSourceModes; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetVideoSourceModes_(soap, &soap_tmp___trt__GetVideoSourceModes_); 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___trt__GetVideoSourceModes_(soap, &soap_tmp___trt__GetVideoSourceModes_, "-trt:GetVideoSourceModes", 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___trt__GetVideoSourceModes_(soap, &soap_tmp___trt__GetVideoSourceModes_, "-trt:GetVideoSourceModes", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetVideoSourceModesResponse) return soap_closesock(soap); trt__GetVideoSourceModesResponse->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); trt__GetVideoSourceModesResponse->soap_get(soap, "trt:GetVideoSourceModesResponse", ""); 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 MediaBindingProxy::SetVideoSourceMode_(const char *endpoint, const char *soap_action, _trt__SetVideoSourceMode *trt__SetVideoSourceMode, _trt__SetVideoSourceModeResponse *trt__SetVideoSourceModeResponse) { struct soap *soap = this; struct __trt__SetVideoSourceMode_ soap_tmp___trt__SetVideoSourceMode_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/SetVideoSourceMode"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__SetVideoSourceMode_.trt__SetVideoSourceMode = trt__SetVideoSourceMode; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__SetVideoSourceMode_(soap, &soap_tmp___trt__SetVideoSourceMode_); 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___trt__SetVideoSourceMode_(soap, &soap_tmp___trt__SetVideoSourceMode_, "-trt:SetVideoSourceMode", 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___trt__SetVideoSourceMode_(soap, &soap_tmp___trt__SetVideoSourceMode_, "-trt:SetVideoSourceMode", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__SetVideoSourceModeResponse) return soap_closesock(soap); trt__SetVideoSourceModeResponse->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); trt__SetVideoSourceModeResponse->soap_get(soap, "trt:SetVideoSourceModeResponse", ""); 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 MediaBindingProxy::GetOSDs_(const char *endpoint, const char *soap_action, _trt__GetOSDs *trt__GetOSDs, _trt__GetOSDsResponse *trt__GetOSDsResponse) { struct soap *soap = this; struct __trt__GetOSDs_ soap_tmp___trt__GetOSDs_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetOSDs"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetOSDs_.trt__GetOSDs = trt__GetOSDs; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetOSDs_(soap, &soap_tmp___trt__GetOSDs_); 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___trt__GetOSDs_(soap, &soap_tmp___trt__GetOSDs_, "-trt:GetOSDs", 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___trt__GetOSDs_(soap, &soap_tmp___trt__GetOSDs_, "-trt:GetOSDs", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetOSDsResponse) return soap_closesock(soap); trt__GetOSDsResponse->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); trt__GetOSDsResponse->soap_get(soap, "trt:GetOSDsResponse", ""); 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 MediaBindingProxy::GetOSD_(const char *endpoint, const char *soap_action, _trt__GetOSD *trt__GetOSD, _trt__GetOSDResponse *trt__GetOSDResponse) { struct soap *soap = this; struct __trt__GetOSD_ soap_tmp___trt__GetOSD_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetOSD"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetOSD_.trt__GetOSD = trt__GetOSD; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetOSD_(soap, &soap_tmp___trt__GetOSD_); 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___trt__GetOSD_(soap, &soap_tmp___trt__GetOSD_, "-trt:GetOSD", 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___trt__GetOSD_(soap, &soap_tmp___trt__GetOSD_, "-trt:GetOSD", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetOSDResponse) return soap_closesock(soap); trt__GetOSDResponse->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); trt__GetOSDResponse->soap_get(soap, "trt:GetOSDResponse", ""); 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 MediaBindingProxy::GetOSDOptions_(const char *endpoint, const char *soap_action, _trt__GetOSDOptions *trt__GetOSDOptions, _trt__GetOSDOptionsResponse *trt__GetOSDOptionsResponse) { struct soap *soap = this; struct __trt__GetOSDOptions_ soap_tmp___trt__GetOSDOptions_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/GetOSDOptions"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__GetOSDOptions_.trt__GetOSDOptions = trt__GetOSDOptions; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__GetOSDOptions_(soap, &soap_tmp___trt__GetOSDOptions_); 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___trt__GetOSDOptions_(soap, &soap_tmp___trt__GetOSDOptions_, "-trt:GetOSDOptions", 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___trt__GetOSDOptions_(soap, &soap_tmp___trt__GetOSDOptions_, "-trt:GetOSDOptions", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__GetOSDOptionsResponse) return soap_closesock(soap); trt__GetOSDOptionsResponse->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); trt__GetOSDOptionsResponse->soap_get(soap, "trt:GetOSDOptionsResponse", ""); 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 MediaBindingProxy::SetOSD_(const char *endpoint, const char *soap_action, _trt__SetOSD *trt__SetOSD, _trt__SetOSDResponse *trt__SetOSDResponse) { struct soap *soap = this; struct __trt__SetOSD_ soap_tmp___trt__SetOSD_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/SetOSD"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__SetOSD_.trt__SetOSD = trt__SetOSD; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__SetOSD_(soap, &soap_tmp___trt__SetOSD_); 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___trt__SetOSD_(soap, &soap_tmp___trt__SetOSD_, "-trt:SetOSD", 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___trt__SetOSD_(soap, &soap_tmp___trt__SetOSD_, "-trt:SetOSD", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__SetOSDResponse) return soap_closesock(soap); trt__SetOSDResponse->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); trt__SetOSDResponse->soap_get(soap, "trt:SetOSDResponse", ""); 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 MediaBindingProxy::CreateOSD_(const char *endpoint, const char *soap_action, _trt__CreateOSD *trt__CreateOSD, _trt__CreateOSDResponse *trt__CreateOSDResponse) { struct soap *soap = this; struct __trt__CreateOSD_ soap_tmp___trt__CreateOSD_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/CreateOSD"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__CreateOSD_.trt__CreateOSD = trt__CreateOSD; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__CreateOSD_(soap, &soap_tmp___trt__CreateOSD_); 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___trt__CreateOSD_(soap, &soap_tmp___trt__CreateOSD_, "-trt:CreateOSD", 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___trt__CreateOSD_(soap, &soap_tmp___trt__CreateOSD_, "-trt:CreateOSD", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__CreateOSDResponse) return soap_closesock(soap); trt__CreateOSDResponse->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); trt__CreateOSDResponse->soap_get(soap, "trt:CreateOSDResponse", ""); 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 MediaBindingProxy::DeleteOSD_(const char *endpoint, const char *soap_action, _trt__DeleteOSD *trt__DeleteOSD, _trt__DeleteOSDResponse *trt__DeleteOSDResponse) { struct soap *soap = this; struct __trt__DeleteOSD_ soap_tmp___trt__DeleteOSD_; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver10/media/wsdl/DeleteOSD"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___trt__DeleteOSD_.trt__DeleteOSD = trt__DeleteOSD; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___trt__DeleteOSD_(soap, &soap_tmp___trt__DeleteOSD_); 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___trt__DeleteOSD_(soap, &soap_tmp___trt__DeleteOSD_, "-trt:DeleteOSD", 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___trt__DeleteOSD_(soap, &soap_tmp___trt__DeleteOSD_, "-trt:DeleteOSD", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!trt__DeleteOSDResponse) return soap_closesock(soap); trt__DeleteOSDResponse->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); trt__DeleteOSDResponse->soap_get(soap, "trt:DeleteOSDResponse", ""); 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 */