You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1592 lines
61 KiB
1592 lines
61 KiB
/* soapPTZBindingProxy.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 "soapPTZBindingProxy.h"
|
|
|
|
PTZBindingProxy::PTZBindingProxy()
|
|
{ PTZBindingProxy_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
|
|
}
|
|
|
|
PTZBindingProxy::PTZBindingProxy(const struct soap &_soap) : soap(_soap)
|
|
{ }
|
|
|
|
PTZBindingProxy::PTZBindingProxy(const char *url)
|
|
{ PTZBindingProxy_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
|
|
soap_endpoint = url;
|
|
}
|
|
|
|
PTZBindingProxy::PTZBindingProxy(soap_mode iomode)
|
|
{ PTZBindingProxy_init(iomode, iomode);
|
|
}
|
|
|
|
PTZBindingProxy::PTZBindingProxy(const char *url, soap_mode iomode)
|
|
{ PTZBindingProxy_init(iomode, iomode);
|
|
soap_endpoint = url;
|
|
}
|
|
|
|
PTZBindingProxy::PTZBindingProxy(soap_mode imode, soap_mode omode)
|
|
{ PTZBindingProxy_init(imode, omode);
|
|
}
|
|
|
|
PTZBindingProxy::~PTZBindingProxy()
|
|
{ }
|
|
|
|
void PTZBindingProxy::PTZBindingProxy_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 PTZBindingProxy::destroy()
|
|
{ soap_destroy(this);
|
|
soap_end(this);
|
|
}
|
|
|
|
void PTZBindingProxy::reset()
|
|
{ destroy();
|
|
soap_done(this);
|
|
soap_initialize(this);
|
|
PTZBindingProxy_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
|
|
}
|
|
|
|
void PTZBindingProxy::soap_noheader()
|
|
{ this->header = NULL;
|
|
}
|
|
|
|
void PTZBindingProxy::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 *PTZBindingProxy::soap_header()
|
|
{ return this->header;
|
|
}
|
|
|
|
const SOAP_ENV__Fault *PTZBindingProxy::soap_fault()
|
|
{ return this->fault;
|
|
}
|
|
|
|
const char *PTZBindingProxy::soap_fault_string()
|
|
{ return *soap_faultstring(this);
|
|
}
|
|
|
|
const char *PTZBindingProxy::soap_fault_detail()
|
|
{ return *soap_faultdetail(this);
|
|
}
|
|
|
|
int PTZBindingProxy::soap_close_socket()
|
|
{ return soap_closesock(this);
|
|
}
|
|
|
|
int PTZBindingProxy::soap_force_close_socket()
|
|
{ return soap_force_closesock(this);
|
|
}
|
|
|
|
void PTZBindingProxy::soap_print_fault(FILE *fd)
|
|
{ ::soap_print_fault(this, fd);
|
|
}
|
|
|
|
#ifndef WITH_LEAN
|
|
#ifndef WITH_COMPAT
|
|
void PTZBindingProxy::soap_stream_fault(std::ostream& os)
|
|
{ ::soap_stream_fault(this, os);
|
|
}
|
|
#endif
|
|
|
|
char *PTZBindingProxy::soap_sprint_fault(char *buf, size_t len)
|
|
{ return ::soap_sprint_fault(this, buf, len);
|
|
}
|
|
#endif
|
|
|
|
int PTZBindingProxy::GetServiceCapabilities(const char *endpoint, const char *soap_action, _tptz__GetServiceCapabilities *tptz__GetServiceCapabilities, _tptz__GetServiceCapabilitiesResponse *tptz__GetServiceCapabilitiesResponse)
|
|
{ struct soap *soap = this;
|
|
struct __tptz__GetServiceCapabilities soap_tmp___tptz__GetServiceCapabilities;
|
|
if (endpoint)
|
|
soap_endpoint = endpoint;
|
|
if (soap_action == NULL)
|
|
soap_action = "http://www.onvif.org/ver20/ptz/wsdl/GetServiceCapabilities";
|
|
soap_begin(soap);
|
|
soap->encodingStyle = NULL;
|
|
soap_tmp___tptz__GetServiceCapabilities.tptz__GetServiceCapabilities = tptz__GetServiceCapabilities;
|
|
soap_set_version(soap, 2); /* SOAP1.2 */
|
|
soap_serializeheader(soap);
|
|
soap_serialize___tptz__GetServiceCapabilities(soap, &soap_tmp___tptz__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___tptz__GetServiceCapabilities(soap, &soap_tmp___tptz__GetServiceCapabilities, "-tptz: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___tptz__GetServiceCapabilities(soap, &soap_tmp___tptz__GetServiceCapabilities, "-tptz:GetServiceCapabilities", NULL)
|
|
|| soap_body_end_out(soap)
|
|
|| soap_envelope_end_out(soap)
|
|
|| soap_end_send(soap))
|
|
return soap_closesock(soap);
|
|
if (!tptz__GetServiceCapabilitiesResponse)
|
|
return soap_closesock(soap);
|
|
tptz__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);
|
|
tptz__GetServiceCapabilitiesResponse->soap_get(soap, "tptz: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 PTZBindingProxy::GetConfigurations(const char *endpoint, const char *soap_action, _tptz__GetConfigurations *tptz__GetConfigurations, _tptz__GetConfigurationsResponse *tptz__GetConfigurationsResponse)
|
|
{ struct soap *soap = this;
|
|
struct __tptz__GetConfigurations soap_tmp___tptz__GetConfigurations;
|
|
if (endpoint)
|
|
soap_endpoint = endpoint;
|
|
if (soap_action == NULL)
|
|
soap_action = "http://www.onvif.org/ver20/ptz/wsdl/GetConfigurations";
|
|
soap_begin(soap);
|
|
soap->encodingStyle = NULL;
|
|
soap_tmp___tptz__GetConfigurations.tptz__GetConfigurations = tptz__GetConfigurations;
|
|
soap_set_version(soap, 2); /* SOAP1.2 */
|
|
soap_serializeheader(soap);
|
|
soap_serialize___tptz__GetConfigurations(soap, &soap_tmp___tptz__GetConfigurations);
|
|
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___tptz__GetConfigurations(soap, &soap_tmp___tptz__GetConfigurations, "-tptz:GetConfigurations", 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___tptz__GetConfigurations(soap, &soap_tmp___tptz__GetConfigurations, "-tptz:GetConfigurations", NULL)
|
|
|| soap_body_end_out(soap)
|
|
|| soap_envelope_end_out(soap)
|
|
|| soap_end_send(soap))
|
|
return soap_closesock(soap);
|
|
if (!tptz__GetConfigurationsResponse)
|
|
return soap_closesock(soap);
|
|
tptz__GetConfigurationsResponse->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);
|
|
tptz__GetConfigurationsResponse->soap_get(soap, "tptz:GetConfigurationsResponse", "");
|
|
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 PTZBindingProxy::GetPresets(const char *endpoint, const char *soap_action, _tptz__GetPresets *tptz__GetPresets, _tptz__GetPresetsResponse *tptz__GetPresetsResponse)
|
|
{ struct soap *soap = this;
|
|
struct __tptz__GetPresets soap_tmp___tptz__GetPresets;
|
|
if (endpoint)
|
|
soap_endpoint = endpoint;
|
|
if (soap_action == NULL)
|
|
soap_action = "http://www.onvif.org/ver20/ptz/wsdl/GetPresets";
|
|
soap_begin(soap);
|
|
soap->encodingStyle = NULL;
|
|
soap_tmp___tptz__GetPresets.tptz__GetPresets = tptz__GetPresets;
|
|
soap_set_version(soap, 2); /* SOAP1.2 */
|
|
soap_serializeheader(soap);
|
|
soap_serialize___tptz__GetPresets(soap, &soap_tmp___tptz__GetPresets);
|
|
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___tptz__GetPresets(soap, &soap_tmp___tptz__GetPresets, "-tptz:GetPresets", 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___tptz__GetPresets(soap, &soap_tmp___tptz__GetPresets, "-tptz:GetPresets", NULL)
|
|
|| soap_body_end_out(soap)
|
|
|| soap_envelope_end_out(soap)
|
|
|| soap_end_send(soap))
|
|
return soap_closesock(soap);
|
|
if (!tptz__GetPresetsResponse)
|
|
return soap_closesock(soap);
|
|
tptz__GetPresetsResponse->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);
|
|
tptz__GetPresetsResponse->soap_get(soap, "tptz:GetPresetsResponse", "");
|
|
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 PTZBindingProxy::SetPreset(const char *endpoint, const char *soap_action, _tptz__SetPreset *tptz__SetPreset, _tptz__SetPresetResponse *tptz__SetPresetResponse)
|
|
{ struct soap *soap = this;
|
|
struct __tptz__SetPreset soap_tmp___tptz__SetPreset;
|
|
if (endpoint)
|
|
soap_endpoint = endpoint;
|
|
if (soap_action == NULL)
|
|
soap_action = "http://www.onvif.org/ver20/ptz/wsdl/SetPreset";
|
|
soap_begin(soap);
|
|
soap->encodingStyle = NULL;
|
|
soap_tmp___tptz__SetPreset.tptz__SetPreset = tptz__SetPreset;
|
|
soap_set_version(soap, 2); /* SOAP1.2 */
|
|
soap_serializeheader(soap);
|
|
soap_serialize___tptz__SetPreset(soap, &soap_tmp___tptz__SetPreset);
|
|
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___tptz__SetPreset(soap, &soap_tmp___tptz__SetPreset, "-tptz:SetPreset", 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___tptz__SetPreset(soap, &soap_tmp___tptz__SetPreset, "-tptz:SetPreset", NULL)
|
|
|| soap_body_end_out(soap)
|
|
|| soap_envelope_end_out(soap)
|
|
|| soap_end_send(soap))
|
|
return soap_closesock(soap);
|
|
if (!tptz__SetPresetResponse)
|
|
return soap_closesock(soap);
|
|
tptz__SetPresetResponse->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);
|
|
tptz__SetPresetResponse->soap_get(soap, "tptz:SetPresetResponse", "");
|
|
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 PTZBindingProxy::RemovePreset(const char *endpoint, const char *soap_action, _tptz__RemovePreset *tptz__RemovePreset, _tptz__RemovePresetResponse *tptz__RemovePresetResponse)
|
|
{ struct soap *soap = this;
|
|
struct __tptz__RemovePreset soap_tmp___tptz__RemovePreset;
|
|
if (endpoint)
|
|
soap_endpoint = endpoint;
|
|
if (soap_action == NULL)
|
|
soap_action = "http://www.onvif.org/ver20/ptz/wsdl/RemovePreset";
|
|
soap_begin(soap);
|
|
soap->encodingStyle = NULL;
|
|
soap_tmp___tptz__RemovePreset.tptz__RemovePreset = tptz__RemovePreset;
|
|
soap_set_version(soap, 2); /* SOAP1.2 */
|
|
soap_serializeheader(soap);
|
|
soap_serialize___tptz__RemovePreset(soap, &soap_tmp___tptz__RemovePreset);
|
|
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___tptz__RemovePreset(soap, &soap_tmp___tptz__RemovePreset, "-tptz:RemovePreset", 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___tptz__RemovePreset(soap, &soap_tmp___tptz__RemovePreset, "-tptz:RemovePreset", NULL)
|
|
|| soap_body_end_out(soap)
|
|
|| soap_envelope_end_out(soap)
|
|
|| soap_end_send(soap))
|
|
return soap_closesock(soap);
|
|
if (!tptz__RemovePresetResponse)
|
|
return soap_closesock(soap);
|
|
tptz__RemovePresetResponse->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);
|
|
tptz__RemovePresetResponse->soap_get(soap, "tptz:RemovePresetResponse", "");
|
|
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 PTZBindingProxy::GotoPreset(const char *endpoint, const char *soap_action, _tptz__GotoPreset *tptz__GotoPreset, _tptz__GotoPresetResponse *tptz__GotoPresetResponse)
|
|
{ struct soap *soap = this;
|
|
struct __tptz__GotoPreset soap_tmp___tptz__GotoPreset;
|
|
if (endpoint)
|
|
soap_endpoint = endpoint;
|
|
if (soap_action == NULL)
|
|
soap_action = "http://www.onvif.org/ver20/ptz/wsdl/GotoPreset";
|
|
soap_begin(soap);
|
|
soap->encodingStyle = NULL;
|
|
soap_tmp___tptz__GotoPreset.tptz__GotoPreset = tptz__GotoPreset;
|
|
soap_set_version(soap, 2); /* SOAP1.2 */
|
|
soap_serializeheader(soap);
|
|
soap_serialize___tptz__GotoPreset(soap, &soap_tmp___tptz__GotoPreset);
|
|
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___tptz__GotoPreset(soap, &soap_tmp___tptz__GotoPreset, "-tptz:GotoPreset", 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___tptz__GotoPreset(soap, &soap_tmp___tptz__GotoPreset, "-tptz:GotoPreset", NULL)
|
|
|| soap_body_end_out(soap)
|
|
|| soap_envelope_end_out(soap)
|
|
|| soap_end_send(soap))
|
|
return soap_closesock(soap);
|
|
if (!tptz__GotoPresetResponse)
|
|
return soap_closesock(soap);
|
|
tptz__GotoPresetResponse->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);
|
|
tptz__GotoPresetResponse->soap_get(soap, "tptz:GotoPresetResponse", "");
|
|
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 PTZBindingProxy::GetStatus(const char *endpoint, const char *soap_action, _tptz__GetStatus *tptz__GetStatus, _tptz__GetStatusResponse *tptz__GetStatusResponse)
|
|
{ struct soap *soap = this;
|
|
struct __tptz__GetStatus soap_tmp___tptz__GetStatus;
|
|
if (endpoint)
|
|
soap_endpoint = endpoint;
|
|
if (soap_action == NULL)
|
|
soap_action = "http://www.onvif.org/ver20/ptz/wsdl/GetStatus";
|
|
soap_begin(soap);
|
|
soap->encodingStyle = NULL;
|
|
soap_tmp___tptz__GetStatus.tptz__GetStatus = tptz__GetStatus;
|
|
soap_set_version(soap, 2); /* SOAP1.2 */
|
|
soap_serializeheader(soap);
|
|
soap_serialize___tptz__GetStatus(soap, &soap_tmp___tptz__GetStatus);
|
|
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___tptz__GetStatus(soap, &soap_tmp___tptz__GetStatus, "-tptz:GetStatus", 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___tptz__GetStatus(soap, &soap_tmp___tptz__GetStatus, "-tptz:GetStatus", NULL)
|
|
|| soap_body_end_out(soap)
|
|
|| soap_envelope_end_out(soap)
|
|
|| soap_end_send(soap))
|
|
return soap_closesock(soap);
|
|
if (!tptz__GetStatusResponse)
|
|
return soap_closesock(soap);
|
|
tptz__GetStatusResponse->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);
|
|
tptz__GetStatusResponse->soap_get(soap, "tptz:GetStatusResponse", "");
|
|
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 PTZBindingProxy::GetConfiguration(const char *endpoint, const char *soap_action, _tptz__GetConfiguration *tptz__GetConfiguration, _tptz__GetConfigurationResponse *tptz__GetConfigurationResponse)
|
|
{ struct soap *soap = this;
|
|
struct __tptz__GetConfiguration soap_tmp___tptz__GetConfiguration;
|
|
if (endpoint)
|
|
soap_endpoint = endpoint;
|
|
if (soap_action == NULL)
|
|
soap_action = "http://www.onvif.org/ver20/ptz/wsdl/GetConfiguration";
|
|
soap_begin(soap);
|
|
soap->encodingStyle = NULL;
|
|
soap_tmp___tptz__GetConfiguration.tptz__GetConfiguration = tptz__GetConfiguration;
|
|
soap_set_version(soap, 2); /* SOAP1.2 */
|
|
soap_serializeheader(soap);
|
|
soap_serialize___tptz__GetConfiguration(soap, &soap_tmp___tptz__GetConfiguration);
|
|
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___tptz__GetConfiguration(soap, &soap_tmp___tptz__GetConfiguration, "-tptz:GetConfiguration", 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___tptz__GetConfiguration(soap, &soap_tmp___tptz__GetConfiguration, "-tptz:GetConfiguration", NULL)
|
|
|| soap_body_end_out(soap)
|
|
|| soap_envelope_end_out(soap)
|
|
|| soap_end_send(soap))
|
|
return soap_closesock(soap);
|
|
if (!tptz__GetConfigurationResponse)
|
|
return soap_closesock(soap);
|
|
tptz__GetConfigurationResponse->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);
|
|
tptz__GetConfigurationResponse->soap_get(soap, "tptz:GetConfigurationResponse", "");
|
|
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 PTZBindingProxy::GetNodes(const char *endpoint, const char *soap_action, _tptz__GetNodes *tptz__GetNodes, _tptz__GetNodesResponse *tptz__GetNodesResponse)
|
|
{ struct soap *soap = this;
|
|
struct __tptz__GetNodes soap_tmp___tptz__GetNodes;
|
|
if (endpoint)
|
|
soap_endpoint = endpoint;
|
|
if (soap_action == NULL)
|
|
soap_action = "http://www.onvif.org/ver20/ptz/wsdl/GetNodes";
|
|
soap_begin(soap);
|
|
soap->encodingStyle = NULL;
|
|
soap_tmp___tptz__GetNodes.tptz__GetNodes = tptz__GetNodes;
|
|
soap_set_version(soap, 2); /* SOAP1.2 */
|
|
soap_serializeheader(soap);
|
|
soap_serialize___tptz__GetNodes(soap, &soap_tmp___tptz__GetNodes);
|
|
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___tptz__GetNodes(soap, &soap_tmp___tptz__GetNodes, "-tptz:GetNodes", 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___tptz__GetNodes(soap, &soap_tmp___tptz__GetNodes, "-tptz:GetNodes", NULL)
|
|
|| soap_body_end_out(soap)
|
|
|| soap_envelope_end_out(soap)
|
|
|| soap_end_send(soap))
|
|
return soap_closesock(soap);
|
|
if (!tptz__GetNodesResponse)
|
|
return soap_closesock(soap);
|
|
tptz__GetNodesResponse->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);
|
|
tptz__GetNodesResponse->soap_get(soap, "tptz:GetNodesResponse", "");
|
|
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 PTZBindingProxy::GetNode(const char *endpoint, const char *soap_action, _tptz__GetNode *tptz__GetNode, _tptz__GetNodeResponse *tptz__GetNodeResponse)
|
|
{ struct soap *soap = this;
|
|
struct __tptz__GetNode soap_tmp___tptz__GetNode;
|
|
if (endpoint)
|
|
soap_endpoint = endpoint;
|
|
if (soap_action == NULL)
|
|
soap_action = "http://www.onvif.org/ver20/ptz/wsdl/GetNode";
|
|
soap_begin(soap);
|
|
soap->encodingStyle = NULL;
|
|
soap_tmp___tptz__GetNode.tptz__GetNode = tptz__GetNode;
|
|
soap_set_version(soap, 2); /* SOAP1.2 */
|
|
soap_serializeheader(soap);
|
|
soap_serialize___tptz__GetNode(soap, &soap_tmp___tptz__GetNode);
|
|
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___tptz__GetNode(soap, &soap_tmp___tptz__GetNode, "-tptz:GetNode", 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___tptz__GetNode(soap, &soap_tmp___tptz__GetNode, "-tptz:GetNode", NULL)
|
|
|| soap_body_end_out(soap)
|
|
|| soap_envelope_end_out(soap)
|
|
|| soap_end_send(soap))
|
|
return soap_closesock(soap);
|
|
if (!tptz__GetNodeResponse)
|
|
return soap_closesock(soap);
|
|
tptz__GetNodeResponse->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);
|
|
tptz__GetNodeResponse->soap_get(soap, "tptz:GetNodeResponse", "");
|
|
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 PTZBindingProxy::SetConfiguration(const char *endpoint, const char *soap_action, _tptz__SetConfiguration *tptz__SetConfiguration, _tptz__SetConfigurationResponse *tptz__SetConfigurationResponse)
|
|
{ struct soap *soap = this;
|
|
struct __tptz__SetConfiguration soap_tmp___tptz__SetConfiguration;
|
|
if (endpoint)
|
|
soap_endpoint = endpoint;
|
|
if (soap_action == NULL)
|
|
soap_action = "http://www.onvif.org/ver20/ptz/wsdl/SetConfiguration";
|
|
soap_begin(soap);
|
|
soap->encodingStyle = NULL;
|
|
soap_tmp___tptz__SetConfiguration.tptz__SetConfiguration = tptz__SetConfiguration;
|
|
soap_set_version(soap, 2); /* SOAP1.2 */
|
|
soap_serializeheader(soap);
|
|
soap_serialize___tptz__SetConfiguration(soap, &soap_tmp___tptz__SetConfiguration);
|
|
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___tptz__SetConfiguration(soap, &soap_tmp___tptz__SetConfiguration, "-tptz:SetConfiguration", 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___tptz__SetConfiguration(soap, &soap_tmp___tptz__SetConfiguration, "-tptz:SetConfiguration", NULL)
|
|
|| soap_body_end_out(soap)
|
|
|| soap_envelope_end_out(soap)
|
|
|| soap_end_send(soap))
|
|
return soap_closesock(soap);
|
|
if (!tptz__SetConfigurationResponse)
|
|
return soap_closesock(soap);
|
|
tptz__SetConfigurationResponse->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);
|
|
tptz__SetConfigurationResponse->soap_get(soap, "tptz:SetConfigurationResponse", "");
|
|
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 PTZBindingProxy::GetConfigurationOptions(const char *endpoint, const char *soap_action, _tptz__GetConfigurationOptions *tptz__GetConfigurationOptions, _tptz__GetConfigurationOptionsResponse *tptz__GetConfigurationOptionsResponse)
|
|
{ struct soap *soap = this;
|
|
struct __tptz__GetConfigurationOptions soap_tmp___tptz__GetConfigurationOptions;
|
|
if (endpoint)
|
|
soap_endpoint = endpoint;
|
|
if (soap_action == NULL)
|
|
soap_action = "http://www.onvif.org/ver20/ptz/wsdl/GetConfigurationOptions";
|
|
soap_begin(soap);
|
|
soap->encodingStyle = NULL;
|
|
soap_tmp___tptz__GetConfigurationOptions.tptz__GetConfigurationOptions = tptz__GetConfigurationOptions;
|
|
soap_set_version(soap, 2); /* SOAP1.2 */
|
|
soap_serializeheader(soap);
|
|
soap_serialize___tptz__GetConfigurationOptions(soap, &soap_tmp___tptz__GetConfigurationOptions);
|
|
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___tptz__GetConfigurationOptions(soap, &soap_tmp___tptz__GetConfigurationOptions, "-tptz:GetConfigurationOptions", 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___tptz__GetConfigurationOptions(soap, &soap_tmp___tptz__GetConfigurationOptions, "-tptz:GetConfigurationOptions", NULL)
|
|
|| soap_body_end_out(soap)
|
|
|| soap_envelope_end_out(soap)
|
|
|| soap_end_send(soap))
|
|
return soap_closesock(soap);
|
|
if (!tptz__GetConfigurationOptionsResponse)
|
|
return soap_closesock(soap);
|
|
tptz__GetConfigurationOptionsResponse->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);
|
|
tptz__GetConfigurationOptionsResponse->soap_get(soap, "tptz:GetConfigurationOptionsResponse", "");
|
|
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 PTZBindingProxy::GotoHomePosition(const char *endpoint, const char *soap_action, _tptz__GotoHomePosition *tptz__GotoHomePosition, _tptz__GotoHomePositionResponse *tptz__GotoHomePositionResponse)
|
|
{ struct soap *soap = this;
|
|
struct __tptz__GotoHomePosition soap_tmp___tptz__GotoHomePosition;
|
|
if (endpoint)
|
|
soap_endpoint = endpoint;
|
|
if (soap_action == NULL)
|
|
soap_action = "http://www.onvif.org/ver20/ptz/wsdl/GotoHomePosition";
|
|
soap_begin(soap);
|
|
soap->encodingStyle = NULL;
|
|
soap_tmp___tptz__GotoHomePosition.tptz__GotoHomePosition = tptz__GotoHomePosition;
|
|
soap_set_version(soap, 2); /* SOAP1.2 */
|
|
soap_serializeheader(soap);
|
|
soap_serialize___tptz__GotoHomePosition(soap, &soap_tmp___tptz__GotoHomePosition);
|
|
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___tptz__GotoHomePosition(soap, &soap_tmp___tptz__GotoHomePosition, "-tptz:GotoHomePosition", 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___tptz__GotoHomePosition(soap, &soap_tmp___tptz__GotoHomePosition, "-tptz:GotoHomePosition", NULL)
|
|
|| soap_body_end_out(soap)
|
|
|| soap_envelope_end_out(soap)
|
|
|| soap_end_send(soap))
|
|
return soap_closesock(soap);
|
|
if (!tptz__GotoHomePositionResponse)
|
|
return soap_closesock(soap);
|
|
tptz__GotoHomePositionResponse->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);
|
|
tptz__GotoHomePositionResponse->soap_get(soap, "tptz:GotoHomePositionResponse", "");
|
|
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 PTZBindingProxy::SetHomePosition(const char *endpoint, const char *soap_action, _tptz__SetHomePosition *tptz__SetHomePosition, _tptz__SetHomePositionResponse *tptz__SetHomePositionResponse)
|
|
{ struct soap *soap = this;
|
|
struct __tptz__SetHomePosition soap_tmp___tptz__SetHomePosition;
|
|
if (endpoint)
|
|
soap_endpoint = endpoint;
|
|
if (soap_action == NULL)
|
|
soap_action = "http://www.onvif.org/ver20/ptz/wsdl/SetHomePosition";
|
|
soap_begin(soap);
|
|
soap->encodingStyle = NULL;
|
|
soap_tmp___tptz__SetHomePosition.tptz__SetHomePosition = tptz__SetHomePosition;
|
|
soap_set_version(soap, 2); /* SOAP1.2 */
|
|
soap_serializeheader(soap);
|
|
soap_serialize___tptz__SetHomePosition(soap, &soap_tmp___tptz__SetHomePosition);
|
|
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___tptz__SetHomePosition(soap, &soap_tmp___tptz__SetHomePosition, "-tptz:SetHomePosition", 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___tptz__SetHomePosition(soap, &soap_tmp___tptz__SetHomePosition, "-tptz:SetHomePosition", NULL)
|
|
|| soap_body_end_out(soap)
|
|
|| soap_envelope_end_out(soap)
|
|
|| soap_end_send(soap))
|
|
return soap_closesock(soap);
|
|
if (!tptz__SetHomePositionResponse)
|
|
return soap_closesock(soap);
|
|
tptz__SetHomePositionResponse->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);
|
|
tptz__SetHomePositionResponse->soap_get(soap, "tptz:SetHomePositionResponse", "");
|
|
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 PTZBindingProxy::ContinuousMove(const char *endpoint, const char *soap_action, _tptz__ContinuousMove *tptz__ContinuousMove, _tptz__ContinuousMoveResponse *tptz__ContinuousMoveResponse)
|
|
{ struct soap *soap = this;
|
|
struct __tptz__ContinuousMove soap_tmp___tptz__ContinuousMove;
|
|
if (endpoint)
|
|
soap_endpoint = endpoint;
|
|
if (soap_action == NULL)
|
|
soap_action = "http://www.onvif.org/ver20/ptz/wsdl/ContinuousMove";
|
|
soap_begin(soap);
|
|
soap->encodingStyle = NULL;
|
|
soap_tmp___tptz__ContinuousMove.tptz__ContinuousMove = tptz__ContinuousMove;
|
|
soap_set_version(soap, 2); /* SOAP1.2 */
|
|
soap_serializeheader(soap);
|
|
soap_serialize___tptz__ContinuousMove(soap, &soap_tmp___tptz__ContinuousMove);
|
|
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___tptz__ContinuousMove(soap, &soap_tmp___tptz__ContinuousMove, "-tptz:ContinuousMove", 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___tptz__ContinuousMove(soap, &soap_tmp___tptz__ContinuousMove, "-tptz:ContinuousMove", NULL)
|
|
|| soap_body_end_out(soap)
|
|
|| soap_envelope_end_out(soap)
|
|
|| soap_end_send(soap))
|
|
return soap_closesock(soap);
|
|
if (!tptz__ContinuousMoveResponse)
|
|
return soap_closesock(soap);
|
|
tptz__ContinuousMoveResponse->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);
|
|
tptz__ContinuousMoveResponse->soap_get(soap, "tptz:ContinuousMoveResponse", "");
|
|
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 PTZBindingProxy::RelativeMove(const char *endpoint, const char *soap_action, _tptz__RelativeMove *tptz__RelativeMove, _tptz__RelativeMoveResponse *tptz__RelativeMoveResponse)
|
|
{ struct soap *soap = this;
|
|
struct __tptz__RelativeMove soap_tmp___tptz__RelativeMove;
|
|
if (endpoint)
|
|
soap_endpoint = endpoint;
|
|
if (soap_action == NULL)
|
|
soap_action = "http://www.onvif.org/ver20/ptz/wsdl/RelativeMove";
|
|
soap_begin(soap);
|
|
soap->encodingStyle = NULL;
|
|
soap_tmp___tptz__RelativeMove.tptz__RelativeMove = tptz__RelativeMove;
|
|
soap_set_version(soap, 2); /* SOAP1.2 */
|
|
soap_serializeheader(soap);
|
|
soap_serialize___tptz__RelativeMove(soap, &soap_tmp___tptz__RelativeMove);
|
|
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___tptz__RelativeMove(soap, &soap_tmp___tptz__RelativeMove, "-tptz:RelativeMove", 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___tptz__RelativeMove(soap, &soap_tmp___tptz__RelativeMove, "-tptz:RelativeMove", NULL)
|
|
|| soap_body_end_out(soap)
|
|
|| soap_envelope_end_out(soap)
|
|
|| soap_end_send(soap))
|
|
return soap_closesock(soap);
|
|
if (!tptz__RelativeMoveResponse)
|
|
return soap_closesock(soap);
|
|
tptz__RelativeMoveResponse->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);
|
|
tptz__RelativeMoveResponse->soap_get(soap, "tptz:RelativeMoveResponse", "");
|
|
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 PTZBindingProxy::SendAuxiliaryCommand(const char *endpoint, const char *soap_action, _tptz__SendAuxiliaryCommand *tptz__SendAuxiliaryCommand, _tptz__SendAuxiliaryCommandResponse *tptz__SendAuxiliaryCommandResponse)
|
|
{ struct soap *soap = this;
|
|
struct __tptz__SendAuxiliaryCommand soap_tmp___tptz__SendAuxiliaryCommand;
|
|
if (endpoint)
|
|
soap_endpoint = endpoint;
|
|
if (soap_action == NULL)
|
|
soap_action = "http://www.onvif.org/ver20/ptz/wsdl/SendAuxiliaryCommand";
|
|
soap_begin(soap);
|
|
soap->encodingStyle = NULL;
|
|
soap_tmp___tptz__SendAuxiliaryCommand.tptz__SendAuxiliaryCommand = tptz__SendAuxiliaryCommand;
|
|
soap_set_version(soap, 2); /* SOAP1.2 */
|
|
soap_serializeheader(soap);
|
|
soap_serialize___tptz__SendAuxiliaryCommand(soap, &soap_tmp___tptz__SendAuxiliaryCommand);
|
|
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___tptz__SendAuxiliaryCommand(soap, &soap_tmp___tptz__SendAuxiliaryCommand, "-tptz:SendAuxiliaryCommand", 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___tptz__SendAuxiliaryCommand(soap, &soap_tmp___tptz__SendAuxiliaryCommand, "-tptz:SendAuxiliaryCommand", NULL)
|
|
|| soap_body_end_out(soap)
|
|
|| soap_envelope_end_out(soap)
|
|
|| soap_end_send(soap))
|
|
return soap_closesock(soap);
|
|
if (!tptz__SendAuxiliaryCommandResponse)
|
|
return soap_closesock(soap);
|
|
tptz__SendAuxiliaryCommandResponse->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);
|
|
tptz__SendAuxiliaryCommandResponse->soap_get(soap, "tptz:SendAuxiliaryCommandResponse", "");
|
|
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 PTZBindingProxy::AbsoluteMove(const char *endpoint, const char *soap_action, _tptz__AbsoluteMove *tptz__AbsoluteMove, _tptz__AbsoluteMoveResponse *tptz__AbsoluteMoveResponse)
|
|
{ struct soap *soap = this;
|
|
struct __tptz__AbsoluteMove soap_tmp___tptz__AbsoluteMove;
|
|
if (endpoint)
|
|
soap_endpoint = endpoint;
|
|
if (soap_action == NULL)
|
|
soap_action = "http://www.onvif.org/ver20/ptz/wsdl/AbsoluteMove";
|
|
soap_begin(soap);
|
|
soap->encodingStyle = NULL;
|
|
soap_tmp___tptz__AbsoluteMove.tptz__AbsoluteMove = tptz__AbsoluteMove;
|
|
soap_set_version(soap, 2); /* SOAP1.2 */
|
|
soap_serializeheader(soap);
|
|
soap_serialize___tptz__AbsoluteMove(soap, &soap_tmp___tptz__AbsoluteMove);
|
|
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___tptz__AbsoluteMove(soap, &soap_tmp___tptz__AbsoluteMove, "-tptz:AbsoluteMove", 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___tptz__AbsoluteMove(soap, &soap_tmp___tptz__AbsoluteMove, "-tptz:AbsoluteMove", NULL)
|
|
|| soap_body_end_out(soap)
|
|
|| soap_envelope_end_out(soap)
|
|
|| soap_end_send(soap))
|
|
return soap_closesock(soap);
|
|
if (!tptz__AbsoluteMoveResponse)
|
|
return soap_closesock(soap);
|
|
tptz__AbsoluteMoveResponse->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);
|
|
tptz__AbsoluteMoveResponse->soap_get(soap, "tptz:AbsoluteMoveResponse", "");
|
|
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 PTZBindingProxy::Stop(const char *endpoint, const char *soap_action, _tptz__Stop *tptz__Stop, _tptz__StopResponse *tptz__StopResponse)
|
|
{ struct soap *soap = this;
|
|
struct __tptz__Stop soap_tmp___tptz__Stop;
|
|
if (endpoint)
|
|
soap_endpoint = endpoint;
|
|
if (soap_action == NULL)
|
|
soap_action = "http://www.onvif.org/ver20/ptz/wsdl/Stop";
|
|
soap_begin(soap);
|
|
soap->encodingStyle = NULL;
|
|
soap_tmp___tptz__Stop.tptz__Stop = tptz__Stop;
|
|
soap_set_version(soap, 2); /* SOAP1.2 */
|
|
soap_serializeheader(soap);
|
|
soap_serialize___tptz__Stop(soap, &soap_tmp___tptz__Stop);
|
|
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___tptz__Stop(soap, &soap_tmp___tptz__Stop, "-tptz:Stop", 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___tptz__Stop(soap, &soap_tmp___tptz__Stop, "-tptz:Stop", NULL)
|
|
|| soap_body_end_out(soap)
|
|
|| soap_envelope_end_out(soap)
|
|
|| soap_end_send(soap))
|
|
return soap_closesock(soap);
|
|
if (!tptz__StopResponse)
|
|
return soap_closesock(soap);
|
|
tptz__StopResponse->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);
|
|
tptz__StopResponse->soap_get(soap, "tptz:StopResponse", "");
|
|
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 PTZBindingProxy::GetPresetTours(const char *endpoint, const char *soap_action, _tptz__GetPresetTours *tptz__GetPresetTours, _tptz__GetPresetToursResponse *tptz__GetPresetToursResponse)
|
|
{ struct soap *soap = this;
|
|
struct __tptz__GetPresetTours soap_tmp___tptz__GetPresetTours;
|
|
if (endpoint)
|
|
soap_endpoint = endpoint;
|
|
if (soap_action == NULL)
|
|
soap_action = "http://www.onvif.org/ver20/ptz/wsdl/GetPresetTours";
|
|
soap_begin(soap);
|
|
soap->encodingStyle = NULL;
|
|
soap_tmp___tptz__GetPresetTours.tptz__GetPresetTours = tptz__GetPresetTours;
|
|
soap_set_version(soap, 2); /* SOAP1.2 */
|
|
soap_serializeheader(soap);
|
|
soap_serialize___tptz__GetPresetTours(soap, &soap_tmp___tptz__GetPresetTours);
|
|
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___tptz__GetPresetTours(soap, &soap_tmp___tptz__GetPresetTours, "-tptz:GetPresetTours", 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___tptz__GetPresetTours(soap, &soap_tmp___tptz__GetPresetTours, "-tptz:GetPresetTours", NULL)
|
|
|| soap_body_end_out(soap)
|
|
|| soap_envelope_end_out(soap)
|
|
|| soap_end_send(soap))
|
|
return soap_closesock(soap);
|
|
if (!tptz__GetPresetToursResponse)
|
|
return soap_closesock(soap);
|
|
tptz__GetPresetToursResponse->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);
|
|
tptz__GetPresetToursResponse->soap_get(soap, "tptz:GetPresetToursResponse", "");
|
|
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 PTZBindingProxy::GetPresetTour(const char *endpoint, const char *soap_action, _tptz__GetPresetTour *tptz__GetPresetTour, _tptz__GetPresetTourResponse *tptz__GetPresetTourResponse)
|
|
{ struct soap *soap = this;
|
|
struct __tptz__GetPresetTour soap_tmp___tptz__GetPresetTour;
|
|
if (endpoint)
|
|
soap_endpoint = endpoint;
|
|
if (soap_action == NULL)
|
|
soap_action = "http://www.onvif.org/ver20/ptz/wsdl/GetPresetTour";
|
|
soap_begin(soap);
|
|
soap->encodingStyle = NULL;
|
|
soap_tmp___tptz__GetPresetTour.tptz__GetPresetTour = tptz__GetPresetTour;
|
|
soap_set_version(soap, 2); /* SOAP1.2 */
|
|
soap_serializeheader(soap);
|
|
soap_serialize___tptz__GetPresetTour(soap, &soap_tmp___tptz__GetPresetTour);
|
|
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___tptz__GetPresetTour(soap, &soap_tmp___tptz__GetPresetTour, "-tptz:GetPresetTour", 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___tptz__GetPresetTour(soap, &soap_tmp___tptz__GetPresetTour, "-tptz:GetPresetTour", NULL)
|
|
|| soap_body_end_out(soap)
|
|
|| soap_envelope_end_out(soap)
|
|
|| soap_end_send(soap))
|
|
return soap_closesock(soap);
|
|
if (!tptz__GetPresetTourResponse)
|
|
return soap_closesock(soap);
|
|
tptz__GetPresetTourResponse->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);
|
|
tptz__GetPresetTourResponse->soap_get(soap, "tptz:GetPresetTourResponse", "");
|
|
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 PTZBindingProxy::GetPresetTourOptions(const char *endpoint, const char *soap_action, _tptz__GetPresetTourOptions *tptz__GetPresetTourOptions, _tptz__GetPresetTourOptionsResponse *tptz__GetPresetTourOptionsResponse)
|
|
{ struct soap *soap = this;
|
|
struct __tptz__GetPresetTourOptions soap_tmp___tptz__GetPresetTourOptions;
|
|
if (endpoint)
|
|
soap_endpoint = endpoint;
|
|
if (soap_action == NULL)
|
|
soap_action = "http://www.onvif.org/ver20/ptz/wsdl/GetPresetTourOptions";
|
|
soap_begin(soap);
|
|
soap->encodingStyle = NULL;
|
|
soap_tmp___tptz__GetPresetTourOptions.tptz__GetPresetTourOptions = tptz__GetPresetTourOptions;
|
|
soap_set_version(soap, 2); /* SOAP1.2 */
|
|
soap_serializeheader(soap);
|
|
soap_serialize___tptz__GetPresetTourOptions(soap, &soap_tmp___tptz__GetPresetTourOptions);
|
|
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___tptz__GetPresetTourOptions(soap, &soap_tmp___tptz__GetPresetTourOptions, "-tptz:GetPresetTourOptions", 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___tptz__GetPresetTourOptions(soap, &soap_tmp___tptz__GetPresetTourOptions, "-tptz:GetPresetTourOptions", NULL)
|
|
|| soap_body_end_out(soap)
|
|
|| soap_envelope_end_out(soap)
|
|
|| soap_end_send(soap))
|
|
return soap_closesock(soap);
|
|
if (!tptz__GetPresetTourOptionsResponse)
|
|
return soap_closesock(soap);
|
|
tptz__GetPresetTourOptionsResponse->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);
|
|
tptz__GetPresetTourOptionsResponse->soap_get(soap, "tptz:GetPresetTourOptionsResponse", "");
|
|
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 PTZBindingProxy::CreatePresetTour(const char *endpoint, const char *soap_action, _tptz__CreatePresetTour *tptz__CreatePresetTour, _tptz__CreatePresetTourResponse *tptz__CreatePresetTourResponse)
|
|
{ struct soap *soap = this;
|
|
struct __tptz__CreatePresetTour soap_tmp___tptz__CreatePresetTour;
|
|
if (endpoint)
|
|
soap_endpoint = endpoint;
|
|
if (soap_action == NULL)
|
|
soap_action = "http://www.onvif.org/ver20/ptz/wsdl/CreatePresetTour";
|
|
soap_begin(soap);
|
|
soap->encodingStyle = NULL;
|
|
soap_tmp___tptz__CreatePresetTour.tptz__CreatePresetTour = tptz__CreatePresetTour;
|
|
soap_set_version(soap, 2); /* SOAP1.2 */
|
|
soap_serializeheader(soap);
|
|
soap_serialize___tptz__CreatePresetTour(soap, &soap_tmp___tptz__CreatePresetTour);
|
|
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___tptz__CreatePresetTour(soap, &soap_tmp___tptz__CreatePresetTour, "-tptz:CreatePresetTour", 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___tptz__CreatePresetTour(soap, &soap_tmp___tptz__CreatePresetTour, "-tptz:CreatePresetTour", NULL)
|
|
|| soap_body_end_out(soap)
|
|
|| soap_envelope_end_out(soap)
|
|
|| soap_end_send(soap))
|
|
return soap_closesock(soap);
|
|
if (!tptz__CreatePresetTourResponse)
|
|
return soap_closesock(soap);
|
|
tptz__CreatePresetTourResponse->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);
|
|
tptz__CreatePresetTourResponse->soap_get(soap, "tptz:CreatePresetTourResponse", "");
|
|
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 PTZBindingProxy::ModifyPresetTour(const char *endpoint, const char *soap_action, _tptz__ModifyPresetTour *tptz__ModifyPresetTour, _tptz__ModifyPresetTourResponse *tptz__ModifyPresetTourResponse)
|
|
{ struct soap *soap = this;
|
|
struct __tptz__ModifyPresetTour soap_tmp___tptz__ModifyPresetTour;
|
|
if (endpoint)
|
|
soap_endpoint = endpoint;
|
|
if (soap_action == NULL)
|
|
soap_action = "http://www.onvif.org/ver20/ptz/wsdl/ModifyPresetTour";
|
|
soap_begin(soap);
|
|
soap->encodingStyle = NULL;
|
|
soap_tmp___tptz__ModifyPresetTour.tptz__ModifyPresetTour = tptz__ModifyPresetTour;
|
|
soap_set_version(soap, 2); /* SOAP1.2 */
|
|
soap_serializeheader(soap);
|
|
soap_serialize___tptz__ModifyPresetTour(soap, &soap_tmp___tptz__ModifyPresetTour);
|
|
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___tptz__ModifyPresetTour(soap, &soap_tmp___tptz__ModifyPresetTour, "-tptz:ModifyPresetTour", 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___tptz__ModifyPresetTour(soap, &soap_tmp___tptz__ModifyPresetTour, "-tptz:ModifyPresetTour", NULL)
|
|
|| soap_body_end_out(soap)
|
|
|| soap_envelope_end_out(soap)
|
|
|| soap_end_send(soap))
|
|
return soap_closesock(soap);
|
|
if (!tptz__ModifyPresetTourResponse)
|
|
return soap_closesock(soap);
|
|
tptz__ModifyPresetTourResponse->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);
|
|
tptz__ModifyPresetTourResponse->soap_get(soap, "tptz:ModifyPresetTourResponse", "");
|
|
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 PTZBindingProxy::OperatePresetTour(const char *endpoint, const char *soap_action, _tptz__OperatePresetTour *tptz__OperatePresetTour, _tptz__OperatePresetTourResponse *tptz__OperatePresetTourResponse)
|
|
{ struct soap *soap = this;
|
|
struct __tptz__OperatePresetTour soap_tmp___tptz__OperatePresetTour;
|
|
if (endpoint)
|
|
soap_endpoint = endpoint;
|
|
if (soap_action == NULL)
|
|
soap_action = "http://www.onvif.org/ver20/ptz/wsdl/OperatePresetTour";
|
|
soap_begin(soap);
|
|
soap->encodingStyle = NULL;
|
|
soap_tmp___tptz__OperatePresetTour.tptz__OperatePresetTour = tptz__OperatePresetTour;
|
|
soap_set_version(soap, 2); /* SOAP1.2 */
|
|
soap_serializeheader(soap);
|
|
soap_serialize___tptz__OperatePresetTour(soap, &soap_tmp___tptz__OperatePresetTour);
|
|
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___tptz__OperatePresetTour(soap, &soap_tmp___tptz__OperatePresetTour, "-tptz:OperatePresetTour", 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___tptz__OperatePresetTour(soap, &soap_tmp___tptz__OperatePresetTour, "-tptz:OperatePresetTour", NULL)
|
|
|| soap_body_end_out(soap)
|
|
|| soap_envelope_end_out(soap)
|
|
|| soap_end_send(soap))
|
|
return soap_closesock(soap);
|
|
if (!tptz__OperatePresetTourResponse)
|
|
return soap_closesock(soap);
|
|
tptz__OperatePresetTourResponse->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);
|
|
tptz__OperatePresetTourResponse->soap_get(soap, "tptz:OperatePresetTourResponse", "");
|
|
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 PTZBindingProxy::RemovePresetTour(const char *endpoint, const char *soap_action, _tptz__RemovePresetTour *tptz__RemovePresetTour, _tptz__RemovePresetTourResponse *tptz__RemovePresetTourResponse)
|
|
{ struct soap *soap = this;
|
|
struct __tptz__RemovePresetTour soap_tmp___tptz__RemovePresetTour;
|
|
if (endpoint)
|
|
soap_endpoint = endpoint;
|
|
if (soap_action == NULL)
|
|
soap_action = "http://www.onvif.org/ver20/ptz/wsdl/RemovePresetTour";
|
|
soap_begin(soap);
|
|
soap->encodingStyle = NULL;
|
|
soap_tmp___tptz__RemovePresetTour.tptz__RemovePresetTour = tptz__RemovePresetTour;
|
|
soap_set_version(soap, 2); /* SOAP1.2 */
|
|
soap_serializeheader(soap);
|
|
soap_serialize___tptz__RemovePresetTour(soap, &soap_tmp___tptz__RemovePresetTour);
|
|
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___tptz__RemovePresetTour(soap, &soap_tmp___tptz__RemovePresetTour, "-tptz:RemovePresetTour", 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___tptz__RemovePresetTour(soap, &soap_tmp___tptz__RemovePresetTour, "-tptz:RemovePresetTour", NULL)
|
|
|| soap_body_end_out(soap)
|
|
|| soap_envelope_end_out(soap)
|
|
|| soap_end_send(soap))
|
|
return soap_closesock(soap);
|
|
if (!tptz__RemovePresetTourResponse)
|
|
return soap_closesock(soap);
|
|
tptz__RemovePresetTourResponse->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);
|
|
tptz__RemovePresetTourResponse->soap_get(soap, "tptz:RemovePresetTourResponse", "");
|
|
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 PTZBindingProxy::GetCompatibleConfigurations(const char *endpoint, const char *soap_action, _tptz__GetCompatibleConfigurations *tptz__GetCompatibleConfigurations, _tptz__GetCompatibleConfigurationsResponse *tptz__GetCompatibleConfigurationsResponse)
|
|
{ struct soap *soap = this;
|
|
struct __tptz__GetCompatibleConfigurations soap_tmp___tptz__GetCompatibleConfigurations;
|
|
if (endpoint)
|
|
soap_endpoint = endpoint;
|
|
if (soap_action == NULL)
|
|
soap_action = "http://www.onvif.org/ver20/ptz/wsdl/GetCompatibleConfigurations";
|
|
soap_begin(soap);
|
|
soap->encodingStyle = NULL;
|
|
soap_tmp___tptz__GetCompatibleConfigurations.tptz__GetCompatibleConfigurations = tptz__GetCompatibleConfigurations;
|
|
soap_set_version(soap, 2); /* SOAP1.2 */
|
|
soap_serializeheader(soap);
|
|
soap_serialize___tptz__GetCompatibleConfigurations(soap, &soap_tmp___tptz__GetCompatibleConfigurations);
|
|
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___tptz__GetCompatibleConfigurations(soap, &soap_tmp___tptz__GetCompatibleConfigurations, "-tptz:GetCompatibleConfigurations", 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___tptz__GetCompatibleConfigurations(soap, &soap_tmp___tptz__GetCompatibleConfigurations, "-tptz:GetCompatibleConfigurations", NULL)
|
|
|| soap_body_end_out(soap)
|
|
|| soap_envelope_end_out(soap)
|
|
|| soap_end_send(soap))
|
|
return soap_closesock(soap);
|
|
if (!tptz__GetCompatibleConfigurationsResponse)
|
|
return soap_closesock(soap);
|
|
tptz__GetCompatibleConfigurationsResponse->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);
|
|
tptz__GetCompatibleConfigurationsResponse->soap_get(soap, "tptz:GetCompatibleConfigurationsResponse", "");
|
|
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 */
|