You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1740 lines
65 KiB
C++
1740 lines
65 KiB
C++
/* soapPTZBindingProxy.cpp
|
|
Generated by gSOAP 2.8.138 for gen/onvif.h
|
|
|
|
gSOAP XML Web services tools
|
|
Copyright (C) 2000-2025, Robert van Engelen, Genivia Inc. All Rights Reserved.
|
|
The soapcpp2 tool and its generated software are released under the GPL.
|
|
This program is released under the GPL with the additional exemption that
|
|
compiling, linking, and/or using OpenSSL is allowed.
|
|
--------------------------------------------------------------------------------
|
|
A commercial use license is available from Genivia Inc., contact@genivia.com
|
|
--------------------------------------------------------------------------------
|
|
*/
|
|
|
|
#include "soapPTZBindingProxy.h"
|
|
|
|
PTZBindingProxy::PTZBindingProxy()
|
|
{ this->soap = soap_new();
|
|
this->soap_own = true;
|
|
PTZBindingProxy_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
|
|
}
|
|
|
|
PTZBindingProxy::PTZBindingProxy(const PTZBindingProxy& rhs)
|
|
{ this->soap = rhs.soap;
|
|
this->soap_own = false;
|
|
this->soap_endpoint = rhs.soap_endpoint;
|
|
}
|
|
|
|
PTZBindingProxy::PTZBindingProxy(struct soap *_soap)
|
|
{ this->soap = _soap;
|
|
this->soap_own = false;
|
|
PTZBindingProxy_init(_soap->imode, _soap->omode);
|
|
}
|
|
|
|
PTZBindingProxy::PTZBindingProxy(struct soap *_soap, const char *soap_endpoint_url)
|
|
{ this->soap = _soap;
|
|
this->soap_own = false;
|
|
PTZBindingProxy_init(_soap->imode, _soap->omode);
|
|
soap_endpoint = soap_endpoint_url;
|
|
}
|
|
|
|
PTZBindingProxy::PTZBindingProxy(const char *soap_endpoint_url)
|
|
{ this->soap = soap_new();
|
|
this->soap_own = true;
|
|
PTZBindingProxy_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
|
|
soap_endpoint = soap_endpoint_url;
|
|
}
|
|
|
|
PTZBindingProxy::PTZBindingProxy(soap_mode iomode)
|
|
{ this->soap = soap_new();
|
|
this->soap_own = true;
|
|
PTZBindingProxy_init(iomode, iomode);
|
|
}
|
|
|
|
PTZBindingProxy::PTZBindingProxy(const char *soap_endpoint_url, soap_mode iomode)
|
|
{ this->soap = soap_new();
|
|
this->soap_own = true;
|
|
PTZBindingProxy_init(iomode, iomode);
|
|
soap_endpoint = soap_endpoint_url;
|
|
}
|
|
|
|
PTZBindingProxy::PTZBindingProxy(soap_mode imode, soap_mode omode)
|
|
{ this->soap = soap_new();
|
|
this->soap_own = true;
|
|
PTZBindingProxy_init(imode, omode);
|
|
}
|
|
|
|
PTZBindingProxy::~PTZBindingProxy()
|
|
{ if (this->soap_own)
|
|
{ PTZBindingProxy::destroy();
|
|
soap_free(this->soap);
|
|
}
|
|
}
|
|
|
|
void PTZBindingProxy::PTZBindingProxy_init(soap_mode imode, soap_mode omode)
|
|
{ soap_imode(this->soap, imode);
|
|
soap_omode(this->soap, 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 },
|
|
{ "wsa", "http://schemas.xmlsoap.org/ws/2004/08/addressing", "http://www.w3.org/2005/08/addressing", NULL },
|
|
{ "wsdd", "http://schemas.xmlsoap.org/ws/2005/04/discovery", NULL, NULL },
|
|
{ "c14n", "http://www.w3.org/2001/10/xml-exc-c14n#", NULL, NULL },
|
|
{ "ds", "http://www.w3.org/2000/09/xmldsig#", NULL, NULL },
|
|
{ "saml1", "urn:oasis:names:tc:SAML:1.0:assertion", NULL, NULL },
|
|
{ "saml2", "urn:oasis:names:tc:SAML:2.0:assertion", 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://docs.oasis-open.org/ws-sx/ws-secureconversation/200512", "http://schemas.xmlsoap.org/ws/2005/02/sc", 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 },
|
|
{ "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 },
|
|
{ "wsrfbf", "http://docs.oasis-open.org/wsrf/bf-2", NULL, NULL },
|
|
{ "xmime", "http://www.w3.org/2005/05/xmlmime", NULL, NULL },
|
|
{ "xop", "http://www.w3.org/2004/08/xop/include", NULL, NULL },
|
|
{ "tt", "http://www.onvif.org/ver10/schema", NULL, NULL },
|
|
{ "wstop", "http://docs.oasis-open.org/wsn/t-1", NULL, NULL },
|
|
{ "wsrfr", "http://docs.oasis-open.org/wsrf/r-2", NULL, NULL },
|
|
{ "tds", "http://www.onvif.org/ver10/device/wsdl", NULL, NULL },
|
|
{ "tevcpp", "http://www.onvif.org/ver10/events/wsdl/CreatePullPointBinding", NULL, NULL },
|
|
{ "teve", "http://www.onvif.org/ver10/events/wsdl/EventBinding", NULL, NULL },
|
|
{ "tevnc", "http://www.onvif.org/ver10/events/wsdl/NotificationConsumerBinding", NULL, NULL },
|
|
{ "tevnp", "http://www.onvif.org/ver10/events/wsdl/NotificationProducerBinding", NULL, NULL },
|
|
{ "tevpp", "http://www.onvif.org/ver10/events/wsdl/PullPointBinding", NULL, NULL },
|
|
{ "tevpps", "http://www.onvif.org/ver10/events/wsdl/PullPointSubscriptionBinding", NULL, NULL },
|
|
{ "tev", "http://www.onvif.org/ver10/events/wsdl", NULL, NULL },
|
|
{ "tevps", "http://www.onvif.org/ver10/events/wsdl/PausableSubscriptionManagerBinding", NULL, NULL },
|
|
{ "wsnt", "http://docs.oasis-open.org/wsn/b-2", NULL, NULL },
|
|
{ "tevs", "http://www.onvif.org/ver10/events/wsdl/SubscriptionManagerBinding", 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} /* end of namespaces[] */
|
|
};
|
|
soap_set_namespaces(this->soap, namespaces);
|
|
}
|
|
|
|
PTZBindingProxy *PTZBindingProxy::copy()
|
|
{ PTZBindingProxy *dup = SOAP_NEW_UNMANAGED(PTZBindingProxy);
|
|
if (dup)
|
|
{ soap_done(dup->soap);
|
|
soap_copy_context(dup->soap, this->soap);
|
|
}
|
|
return dup;
|
|
}
|
|
|
|
PTZBindingProxy& PTZBindingProxy::operator=(const PTZBindingProxy& rhs)
|
|
{ if (this->soap != rhs.soap)
|
|
{ if (this->soap_own)
|
|
soap_free(this->soap);
|
|
this->soap = rhs.soap;
|
|
this->soap_own = false;
|
|
this->soap_endpoint = rhs.soap_endpoint;
|
|
}
|
|
return *this;
|
|
}
|
|
|
|
void PTZBindingProxy::destroy()
|
|
{ soap_destroy(this->soap);
|
|
soap_end(this->soap);
|
|
}
|
|
|
|
void PTZBindingProxy::reset()
|
|
{ this->destroy();
|
|
soap_done(this->soap);
|
|
soap_initialize(this->soap);
|
|
PTZBindingProxy_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
|
|
}
|
|
|
|
void PTZBindingProxy::soap_noheader()
|
|
{ this->soap->header = NULL;
|
|
}
|
|
|
|
void PTZBindingProxy::soap_header(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, struct _wsse__Security *wsse__Security, 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->soap);
|
|
this->soap->header->wsa__MessageID = wsa__MessageID;
|
|
this->soap->header->wsa__RelatesTo = wsa__RelatesTo;
|
|
this->soap->header->wsa__From = wsa__From;
|
|
this->soap->header->wsa__ReplyTo = wsa__ReplyTo;
|
|
this->soap->header->wsa__FaultTo = wsa__FaultTo;
|
|
this->soap->header->wsa__To = wsa__To;
|
|
this->soap->header->wsa__Action = wsa__Action;
|
|
this->soap->header->wsdd__AppSequence = wsdd__AppSequence;
|
|
this->soap->header->wsse__Security = wsse__Security;
|
|
this->soap->header->wsa5__MessageID = wsa5__MessageID;
|
|
this->soap->header->wsa5__RelatesTo = wsa5__RelatesTo;
|
|
this->soap->header->wsa5__From = wsa5__From;
|
|
this->soap->header->wsa5__ReplyTo = wsa5__ReplyTo;
|
|
this->soap->header->wsa5__FaultTo = wsa5__FaultTo;
|
|
this->soap->header->wsa5__To = wsa5__To;
|
|
this->soap->header->wsa5__Action = wsa5__Action;
|
|
this->soap->header->chan__ChannelInstance = chan__ChannelInstance;
|
|
}
|
|
|
|
::SOAP_ENV__Header *PTZBindingProxy::soap_header()
|
|
{ return this->soap->header;
|
|
}
|
|
|
|
::SOAP_ENV__Fault *PTZBindingProxy::soap_fault()
|
|
{ return this->soap->fault;
|
|
}
|
|
|
|
const char *PTZBindingProxy::soap_fault_subcode()
|
|
{ return ::soap_fault_subcode(this->soap);
|
|
}
|
|
|
|
const char *PTZBindingProxy::soap_fault_string()
|
|
{ return ::soap_fault_string(this->soap);
|
|
}
|
|
|
|
const char *PTZBindingProxy::soap_fault_detail()
|
|
{ return ::soap_fault_detail(this->soap);
|
|
}
|
|
|
|
int PTZBindingProxy::soap_close_socket()
|
|
{ return ::soap_closesock(this->soap);
|
|
}
|
|
|
|
int PTZBindingProxy::soap_force_close_socket()
|
|
{ return ::soap_force_closesock(this->soap);
|
|
}
|
|
|
|
void PTZBindingProxy::soap_print_fault(FILE *fd)
|
|
{ ::soap_print_fault(this->soap, fd);
|
|
}
|
|
|
|
#ifndef WITH_LEAN
|
|
#ifndef WITH_COMPAT
|
|
void PTZBindingProxy::soap_stream_fault(std::ostream& os)
|
|
{ ::soap_stream_fault(this->soap, os);
|
|
}
|
|
#endif
|
|
|
|
char *PTZBindingProxy::soap_sprint_fault(char *buf, size_t len)
|
|
{ return ::soap_sprint_fault(this->soap, buf, len);
|
|
}
|
|
#endif
|
|
|
|
int PTZBindingProxy::send_GetServiceCapabilities(const char *soap_endpoint_url, const char *soap_action, _tptz__GetServiceCapabilities *tptz__GetServiceCapabilities)
|
|
{
|
|
struct __tptz__GetServiceCapabilities soap_tmp___tptz__GetServiceCapabilities;
|
|
if (soap_endpoint_url != NULL)
|
|
soap_endpoint = soap_endpoint_url;
|
|
if (soap_action == NULL)
|
|
soap_action = "http://www.onvif.org/ver20/ptz/wsdl/GetServiceCapabilities";
|
|
soap_tmp___tptz__GetServiceCapabilities.tptz__GetServiceCapabilities = tptz__GetServiceCapabilities;
|
|
soap_begin(soap);
|
|
soap_set_version(soap, 2); /* use SOAP1.2 */
|
|
soap->encodingStyle = NULL; /* use SOAP literal style */
|
|
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", "")
|
|
|| 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_endpoint, 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", "")
|
|
|| soap_body_end_out(soap)
|
|
|| soap_envelope_end_out(soap)
|
|
|| soap_end_send(soap))
|
|
return soap_closesock(soap);
|
|
return SOAP_OK;
|
|
}
|
|
|
|
int PTZBindingProxy::recv_GetServiceCapabilities(_tptz__GetServiceCapabilitiesResponse &tptz__GetServiceCapabilitiesResponse)
|
|
{
|
|
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", NULL);
|
|
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::send_GetConfigurations(const char *soap_endpoint_url, const char *soap_action, _tptz__GetConfigurations *tptz__GetConfigurations)
|
|
{
|
|
struct __tptz__GetConfigurations soap_tmp___tptz__GetConfigurations;
|
|
if (soap_endpoint_url != NULL)
|
|
soap_endpoint = soap_endpoint_url;
|
|
if (soap_action == NULL)
|
|
soap_action = "http://www.onvif.org/ver20/ptz/wsdl/GetConfigurations";
|
|
soap_tmp___tptz__GetConfigurations.tptz__GetConfigurations = tptz__GetConfigurations;
|
|
soap_begin(soap);
|
|
soap_set_version(soap, 2); /* use SOAP1.2 */
|
|
soap->encodingStyle = NULL; /* use SOAP literal style */
|
|
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", "")
|
|
|| 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_endpoint, 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", "")
|
|
|| soap_body_end_out(soap)
|
|
|| soap_envelope_end_out(soap)
|
|
|| soap_end_send(soap))
|
|
return soap_closesock(soap);
|
|
return SOAP_OK;
|
|
}
|
|
|
|
int PTZBindingProxy::recv_GetConfigurations(_tptz__GetConfigurationsResponse &tptz__GetConfigurationsResponse)
|
|
{
|
|
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", NULL);
|
|
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::send_GetPresets(const char *soap_endpoint_url, const char *soap_action, _tptz__GetPresets *tptz__GetPresets)
|
|
{
|
|
struct __tptz__GetPresets soap_tmp___tptz__GetPresets;
|
|
if (soap_endpoint_url != NULL)
|
|
soap_endpoint = soap_endpoint_url;
|
|
if (soap_action == NULL)
|
|
soap_action = "http://www.onvif.org/ver20/ptz/wsdl/GetPresets";
|
|
soap_tmp___tptz__GetPresets.tptz__GetPresets = tptz__GetPresets;
|
|
soap_begin(soap);
|
|
soap_set_version(soap, 2); /* use SOAP1.2 */
|
|
soap->encodingStyle = NULL; /* use SOAP literal style */
|
|
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", "")
|
|
|| 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_endpoint, 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", "")
|
|
|| soap_body_end_out(soap)
|
|
|| soap_envelope_end_out(soap)
|
|
|| soap_end_send(soap))
|
|
return soap_closesock(soap);
|
|
return SOAP_OK;
|
|
}
|
|
|
|
int PTZBindingProxy::recv_GetPresets(_tptz__GetPresetsResponse &tptz__GetPresetsResponse)
|
|
{
|
|
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", NULL);
|
|
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::send_SetPreset(const char *soap_endpoint_url, const char *soap_action, _tptz__SetPreset *tptz__SetPreset)
|
|
{
|
|
struct __tptz__SetPreset soap_tmp___tptz__SetPreset;
|
|
if (soap_endpoint_url != NULL)
|
|
soap_endpoint = soap_endpoint_url;
|
|
if (soap_action == NULL)
|
|
soap_action = "http://www.onvif.org/ver20/ptz/wsdl/SetPreset";
|
|
soap_tmp___tptz__SetPreset.tptz__SetPreset = tptz__SetPreset;
|
|
soap_begin(soap);
|
|
soap_set_version(soap, 2); /* use SOAP1.2 */
|
|
soap->encodingStyle = NULL; /* use SOAP literal style */
|
|
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", "")
|
|
|| 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_endpoint, 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", "")
|
|
|| soap_body_end_out(soap)
|
|
|| soap_envelope_end_out(soap)
|
|
|| soap_end_send(soap))
|
|
return soap_closesock(soap);
|
|
return SOAP_OK;
|
|
}
|
|
|
|
int PTZBindingProxy::recv_SetPreset(_tptz__SetPresetResponse &tptz__SetPresetResponse)
|
|
{
|
|
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", NULL);
|
|
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::send_RemovePreset(const char *soap_endpoint_url, const char *soap_action, _tptz__RemovePreset *tptz__RemovePreset)
|
|
{
|
|
struct __tptz__RemovePreset soap_tmp___tptz__RemovePreset;
|
|
if (soap_endpoint_url != NULL)
|
|
soap_endpoint = soap_endpoint_url;
|
|
if (soap_action == NULL)
|
|
soap_action = "http://www.onvif.org/ver20/ptz/wsdl/RemovePreset";
|
|
soap_tmp___tptz__RemovePreset.tptz__RemovePreset = tptz__RemovePreset;
|
|
soap_begin(soap);
|
|
soap_set_version(soap, 2); /* use SOAP1.2 */
|
|
soap->encodingStyle = NULL; /* use SOAP literal style */
|
|
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", "")
|
|
|| 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_endpoint, 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", "")
|
|
|| soap_body_end_out(soap)
|
|
|| soap_envelope_end_out(soap)
|
|
|| soap_end_send(soap))
|
|
return soap_closesock(soap);
|
|
return SOAP_OK;
|
|
}
|
|
|
|
int PTZBindingProxy::recv_RemovePreset(_tptz__RemovePresetResponse &tptz__RemovePresetResponse)
|
|
{
|
|
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", NULL);
|
|
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::send_GotoPreset(const char *soap_endpoint_url, const char *soap_action, _tptz__GotoPreset *tptz__GotoPreset)
|
|
{
|
|
struct __tptz__GotoPreset soap_tmp___tptz__GotoPreset;
|
|
if (soap_endpoint_url != NULL)
|
|
soap_endpoint = soap_endpoint_url;
|
|
if (soap_action == NULL)
|
|
soap_action = "http://www.onvif.org/ver20/ptz/wsdl/GotoPreset";
|
|
soap_tmp___tptz__GotoPreset.tptz__GotoPreset = tptz__GotoPreset;
|
|
soap_begin(soap);
|
|
soap_set_version(soap, 2); /* use SOAP1.2 */
|
|
soap->encodingStyle = NULL; /* use SOAP literal style */
|
|
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", "")
|
|
|| 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_endpoint, 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", "")
|
|
|| soap_body_end_out(soap)
|
|
|| soap_envelope_end_out(soap)
|
|
|| soap_end_send(soap))
|
|
return soap_closesock(soap);
|
|
return SOAP_OK;
|
|
}
|
|
|
|
int PTZBindingProxy::recv_GotoPreset(_tptz__GotoPresetResponse &tptz__GotoPresetResponse)
|
|
{
|
|
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", NULL);
|
|
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::send_GetStatus(const char *soap_endpoint_url, const char *soap_action, _tptz__GetStatus *tptz__GetStatus)
|
|
{
|
|
struct __tptz__GetStatus soap_tmp___tptz__GetStatus;
|
|
if (soap_endpoint_url != NULL)
|
|
soap_endpoint = soap_endpoint_url;
|
|
if (soap_action == NULL)
|
|
soap_action = "http://www.onvif.org/ver20/ptz/wsdl/GetStatus";
|
|
soap_tmp___tptz__GetStatus.tptz__GetStatus = tptz__GetStatus;
|
|
soap_begin(soap);
|
|
soap_set_version(soap, 2); /* use SOAP1.2 */
|
|
soap->encodingStyle = NULL; /* use SOAP literal style */
|
|
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", "")
|
|
|| 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_endpoint, 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", "")
|
|
|| soap_body_end_out(soap)
|
|
|| soap_envelope_end_out(soap)
|
|
|| soap_end_send(soap))
|
|
return soap_closesock(soap);
|
|
return SOAP_OK;
|
|
}
|
|
|
|
int PTZBindingProxy::recv_GetStatus(_tptz__GetStatusResponse &tptz__GetStatusResponse)
|
|
{
|
|
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", NULL);
|
|
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::send_GetConfiguration(const char *soap_endpoint_url, const char *soap_action, _tptz__GetConfiguration *tptz__GetConfiguration)
|
|
{
|
|
struct __tptz__GetConfiguration soap_tmp___tptz__GetConfiguration;
|
|
if (soap_endpoint_url != NULL)
|
|
soap_endpoint = soap_endpoint_url;
|
|
if (soap_action == NULL)
|
|
soap_action = "http://www.onvif.org/ver20/ptz/wsdl/GetConfiguration";
|
|
soap_tmp___tptz__GetConfiguration.tptz__GetConfiguration = tptz__GetConfiguration;
|
|
soap_begin(soap);
|
|
soap_set_version(soap, 2); /* use SOAP1.2 */
|
|
soap->encodingStyle = NULL; /* use SOAP literal style */
|
|
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", "")
|
|
|| 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_endpoint, 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", "")
|
|
|| soap_body_end_out(soap)
|
|
|| soap_envelope_end_out(soap)
|
|
|| soap_end_send(soap))
|
|
return soap_closesock(soap);
|
|
return SOAP_OK;
|
|
}
|
|
|
|
int PTZBindingProxy::recv_GetConfiguration(_tptz__GetConfigurationResponse &tptz__GetConfigurationResponse)
|
|
{
|
|
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", NULL);
|
|
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::send_GetNodes(const char *soap_endpoint_url, const char *soap_action, _tptz__GetNodes *tptz__GetNodes)
|
|
{
|
|
struct __tptz__GetNodes soap_tmp___tptz__GetNodes;
|
|
if (soap_endpoint_url != NULL)
|
|
soap_endpoint = soap_endpoint_url;
|
|
if (soap_action == NULL)
|
|
soap_action = "http://www.onvif.org/ver20/ptz/wsdl/GetNodes";
|
|
soap_tmp___tptz__GetNodes.tptz__GetNodes = tptz__GetNodes;
|
|
soap_begin(soap);
|
|
soap_set_version(soap, 2); /* use SOAP1.2 */
|
|
soap->encodingStyle = NULL; /* use SOAP literal style */
|
|
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", "")
|
|
|| 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_endpoint, 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", "")
|
|
|| soap_body_end_out(soap)
|
|
|| soap_envelope_end_out(soap)
|
|
|| soap_end_send(soap))
|
|
return soap_closesock(soap);
|
|
return SOAP_OK;
|
|
}
|
|
|
|
int PTZBindingProxy::recv_GetNodes(_tptz__GetNodesResponse &tptz__GetNodesResponse)
|
|
{
|
|
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", NULL);
|
|
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::send_GetNode(const char *soap_endpoint_url, const char *soap_action, _tptz__GetNode *tptz__GetNode)
|
|
{
|
|
struct __tptz__GetNode soap_tmp___tptz__GetNode;
|
|
if (soap_endpoint_url != NULL)
|
|
soap_endpoint = soap_endpoint_url;
|
|
if (soap_action == NULL)
|
|
soap_action = "http://www.onvif.org/ver20/ptz/wsdl/GetNode";
|
|
soap_tmp___tptz__GetNode.tptz__GetNode = tptz__GetNode;
|
|
soap_begin(soap);
|
|
soap_set_version(soap, 2); /* use SOAP1.2 */
|
|
soap->encodingStyle = NULL; /* use SOAP literal style */
|
|
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", "")
|
|
|| 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_endpoint, 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", "")
|
|
|| soap_body_end_out(soap)
|
|
|| soap_envelope_end_out(soap)
|
|
|| soap_end_send(soap))
|
|
return soap_closesock(soap);
|
|
return SOAP_OK;
|
|
}
|
|
|
|
int PTZBindingProxy::recv_GetNode(_tptz__GetNodeResponse &tptz__GetNodeResponse)
|
|
{
|
|
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", NULL);
|
|
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::send_SetConfiguration(const char *soap_endpoint_url, const char *soap_action, _tptz__SetConfiguration *tptz__SetConfiguration)
|
|
{
|
|
struct __tptz__SetConfiguration soap_tmp___tptz__SetConfiguration;
|
|
if (soap_endpoint_url != NULL)
|
|
soap_endpoint = soap_endpoint_url;
|
|
if (soap_action == NULL)
|
|
soap_action = "http://www.onvif.org/ver20/ptz/wsdl/SetConfiguration";
|
|
soap_tmp___tptz__SetConfiguration.tptz__SetConfiguration = tptz__SetConfiguration;
|
|
soap_begin(soap);
|
|
soap_set_version(soap, 2); /* use SOAP1.2 */
|
|
soap->encodingStyle = NULL; /* use SOAP literal style */
|
|
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", "")
|
|
|| 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_endpoint, 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", "")
|
|
|| soap_body_end_out(soap)
|
|
|| soap_envelope_end_out(soap)
|
|
|| soap_end_send(soap))
|
|
return soap_closesock(soap);
|
|
return SOAP_OK;
|
|
}
|
|
|
|
int PTZBindingProxy::recv_SetConfiguration(_tptz__SetConfigurationResponse &tptz__SetConfigurationResponse)
|
|
{
|
|
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", NULL);
|
|
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::send_GetConfigurationOptions(const char *soap_endpoint_url, const char *soap_action, _tptz__GetConfigurationOptions *tptz__GetConfigurationOptions)
|
|
{
|
|
struct __tptz__GetConfigurationOptions soap_tmp___tptz__GetConfigurationOptions;
|
|
if (soap_endpoint_url != NULL)
|
|
soap_endpoint = soap_endpoint_url;
|
|
if (soap_action == NULL)
|
|
soap_action = "http://www.onvif.org/ver20/ptz/wsdl/GetConfigurationOptions";
|
|
soap_tmp___tptz__GetConfigurationOptions.tptz__GetConfigurationOptions = tptz__GetConfigurationOptions;
|
|
soap_begin(soap);
|
|
soap_set_version(soap, 2); /* use SOAP1.2 */
|
|
soap->encodingStyle = NULL; /* use SOAP literal style */
|
|
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", "")
|
|
|| 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_endpoint, 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", "")
|
|
|| soap_body_end_out(soap)
|
|
|| soap_envelope_end_out(soap)
|
|
|| soap_end_send(soap))
|
|
return soap_closesock(soap);
|
|
return SOAP_OK;
|
|
}
|
|
|
|
int PTZBindingProxy::recv_GetConfigurationOptions(_tptz__GetConfigurationOptionsResponse &tptz__GetConfigurationOptionsResponse)
|
|
{
|
|
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", NULL);
|
|
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::send_GotoHomePosition(const char *soap_endpoint_url, const char *soap_action, _tptz__GotoHomePosition *tptz__GotoHomePosition)
|
|
{
|
|
struct __tptz__GotoHomePosition soap_tmp___tptz__GotoHomePosition;
|
|
if (soap_endpoint_url != NULL)
|
|
soap_endpoint = soap_endpoint_url;
|
|
if (soap_action == NULL)
|
|
soap_action = "http://www.onvif.org/ver20/ptz/wsdl/GotoHomePosition";
|
|
soap_tmp___tptz__GotoHomePosition.tptz__GotoHomePosition = tptz__GotoHomePosition;
|
|
soap_begin(soap);
|
|
soap_set_version(soap, 2); /* use SOAP1.2 */
|
|
soap->encodingStyle = NULL; /* use SOAP literal style */
|
|
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", "")
|
|
|| 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_endpoint, 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", "")
|
|
|| soap_body_end_out(soap)
|
|
|| soap_envelope_end_out(soap)
|
|
|| soap_end_send(soap))
|
|
return soap_closesock(soap);
|
|
return SOAP_OK;
|
|
}
|
|
|
|
int PTZBindingProxy::recv_GotoHomePosition(_tptz__GotoHomePositionResponse &tptz__GotoHomePositionResponse)
|
|
{
|
|
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", NULL);
|
|
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::send_SetHomePosition(const char *soap_endpoint_url, const char *soap_action, _tptz__SetHomePosition *tptz__SetHomePosition)
|
|
{
|
|
struct __tptz__SetHomePosition soap_tmp___tptz__SetHomePosition;
|
|
if (soap_endpoint_url != NULL)
|
|
soap_endpoint = soap_endpoint_url;
|
|
if (soap_action == NULL)
|
|
soap_action = "http://www.onvif.org/ver20/ptz/wsdl/SetHomePosition";
|
|
soap_tmp___tptz__SetHomePosition.tptz__SetHomePosition = tptz__SetHomePosition;
|
|
soap_begin(soap);
|
|
soap_set_version(soap, 2); /* use SOAP1.2 */
|
|
soap->encodingStyle = NULL; /* use SOAP literal style */
|
|
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", "")
|
|
|| 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_endpoint, 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", "")
|
|
|| soap_body_end_out(soap)
|
|
|| soap_envelope_end_out(soap)
|
|
|| soap_end_send(soap))
|
|
return soap_closesock(soap);
|
|
return SOAP_OK;
|
|
}
|
|
|
|
int PTZBindingProxy::recv_SetHomePosition(_tptz__SetHomePositionResponse &tptz__SetHomePositionResponse)
|
|
{
|
|
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", NULL);
|
|
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::send_ContinuousMove(const char *soap_endpoint_url, const char *soap_action, _tptz__ContinuousMove *tptz__ContinuousMove)
|
|
{
|
|
struct __tptz__ContinuousMove soap_tmp___tptz__ContinuousMove;
|
|
if (soap_endpoint_url != NULL)
|
|
soap_endpoint = soap_endpoint_url;
|
|
if (soap_action == NULL)
|
|
soap_action = "http://www.onvif.org/ver20/ptz/wsdl/ContinuousMove";
|
|
soap_tmp___tptz__ContinuousMove.tptz__ContinuousMove = tptz__ContinuousMove;
|
|
soap_begin(soap);
|
|
soap_set_version(soap, 2); /* use SOAP1.2 */
|
|
soap->encodingStyle = NULL; /* use SOAP literal style */
|
|
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", "")
|
|
|| 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_endpoint, 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", "")
|
|
|| soap_body_end_out(soap)
|
|
|| soap_envelope_end_out(soap)
|
|
|| soap_end_send(soap))
|
|
return soap_closesock(soap);
|
|
return SOAP_OK;
|
|
}
|
|
|
|
int PTZBindingProxy::recv_ContinuousMove(_tptz__ContinuousMoveResponse &tptz__ContinuousMoveResponse)
|
|
{
|
|
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", NULL);
|
|
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::send_RelativeMove(const char *soap_endpoint_url, const char *soap_action, _tptz__RelativeMove *tptz__RelativeMove)
|
|
{
|
|
struct __tptz__RelativeMove soap_tmp___tptz__RelativeMove;
|
|
if (soap_endpoint_url != NULL)
|
|
soap_endpoint = soap_endpoint_url;
|
|
if (soap_action == NULL)
|
|
soap_action = "http://www.onvif.org/ver20/ptz/wsdl/RelativeMove";
|
|
soap_tmp___tptz__RelativeMove.tptz__RelativeMove = tptz__RelativeMove;
|
|
soap_begin(soap);
|
|
soap_set_version(soap, 2); /* use SOAP1.2 */
|
|
soap->encodingStyle = NULL; /* use SOAP literal style */
|
|
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", "")
|
|
|| 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_endpoint, 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", "")
|
|
|| soap_body_end_out(soap)
|
|
|| soap_envelope_end_out(soap)
|
|
|| soap_end_send(soap))
|
|
return soap_closesock(soap);
|
|
return SOAP_OK;
|
|
}
|
|
|
|
int PTZBindingProxy::recv_RelativeMove(_tptz__RelativeMoveResponse &tptz__RelativeMoveResponse)
|
|
{
|
|
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", NULL);
|
|
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::send_SendAuxiliaryCommand(const char *soap_endpoint_url, const char *soap_action, _tptz__SendAuxiliaryCommand *tptz__SendAuxiliaryCommand)
|
|
{
|
|
struct __tptz__SendAuxiliaryCommand soap_tmp___tptz__SendAuxiliaryCommand;
|
|
if (soap_endpoint_url != NULL)
|
|
soap_endpoint = soap_endpoint_url;
|
|
if (soap_action == NULL)
|
|
soap_action = "http://www.onvif.org/ver20/ptz/wsdl/SendAuxiliaryCommand";
|
|
soap_tmp___tptz__SendAuxiliaryCommand.tptz__SendAuxiliaryCommand = tptz__SendAuxiliaryCommand;
|
|
soap_begin(soap);
|
|
soap_set_version(soap, 2); /* use SOAP1.2 */
|
|
soap->encodingStyle = NULL; /* use SOAP literal style */
|
|
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", "")
|
|
|| 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_endpoint, 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", "")
|
|
|| soap_body_end_out(soap)
|
|
|| soap_envelope_end_out(soap)
|
|
|| soap_end_send(soap))
|
|
return soap_closesock(soap);
|
|
return SOAP_OK;
|
|
}
|
|
|
|
int PTZBindingProxy::recv_SendAuxiliaryCommand(_tptz__SendAuxiliaryCommandResponse &tptz__SendAuxiliaryCommandResponse)
|
|
{
|
|
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", NULL);
|
|
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::send_AbsoluteMove(const char *soap_endpoint_url, const char *soap_action, _tptz__AbsoluteMove *tptz__AbsoluteMove)
|
|
{
|
|
struct __tptz__AbsoluteMove soap_tmp___tptz__AbsoluteMove;
|
|
if (soap_endpoint_url != NULL)
|
|
soap_endpoint = soap_endpoint_url;
|
|
if (soap_action == NULL)
|
|
soap_action = "http://www.onvif.org/ver20/ptz/wsdl/AbsoluteMove";
|
|
soap_tmp___tptz__AbsoluteMove.tptz__AbsoluteMove = tptz__AbsoluteMove;
|
|
soap_begin(soap);
|
|
soap_set_version(soap, 2); /* use SOAP1.2 */
|
|
soap->encodingStyle = NULL; /* use SOAP literal style */
|
|
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", "")
|
|
|| 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_endpoint, 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", "")
|
|
|| soap_body_end_out(soap)
|
|
|| soap_envelope_end_out(soap)
|
|
|| soap_end_send(soap))
|
|
return soap_closesock(soap);
|
|
return SOAP_OK;
|
|
}
|
|
|
|
int PTZBindingProxy::recv_AbsoluteMove(_tptz__AbsoluteMoveResponse &tptz__AbsoluteMoveResponse)
|
|
{
|
|
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", NULL);
|
|
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::send_Stop(const char *soap_endpoint_url, const char *soap_action, _tptz__Stop *tptz__Stop)
|
|
{
|
|
struct __tptz__Stop soap_tmp___tptz__Stop;
|
|
if (soap_endpoint_url != NULL)
|
|
soap_endpoint = soap_endpoint_url;
|
|
if (soap_action == NULL)
|
|
soap_action = "http://www.onvif.org/ver20/ptz/wsdl/Stop";
|
|
soap_tmp___tptz__Stop.tptz__Stop = tptz__Stop;
|
|
soap_begin(soap);
|
|
soap_set_version(soap, 2); /* use SOAP1.2 */
|
|
soap->encodingStyle = NULL; /* use SOAP literal style */
|
|
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", "")
|
|
|| 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_endpoint, 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", "")
|
|
|| soap_body_end_out(soap)
|
|
|| soap_envelope_end_out(soap)
|
|
|| soap_end_send(soap))
|
|
return soap_closesock(soap);
|
|
return SOAP_OK;
|
|
}
|
|
|
|
int PTZBindingProxy::recv_Stop(_tptz__StopResponse &tptz__StopResponse)
|
|
{
|
|
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", NULL);
|
|
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::send_GetPresetTours(const char *soap_endpoint_url, const char *soap_action, _tptz__GetPresetTours *tptz__GetPresetTours)
|
|
{
|
|
struct __tptz__GetPresetTours soap_tmp___tptz__GetPresetTours;
|
|
if (soap_endpoint_url != NULL)
|
|
soap_endpoint = soap_endpoint_url;
|
|
if (soap_action == NULL)
|
|
soap_action = "http://www.onvif.org/ver20/ptz/wsdl/GetPresetTours";
|
|
soap_tmp___tptz__GetPresetTours.tptz__GetPresetTours = tptz__GetPresetTours;
|
|
soap_begin(soap);
|
|
soap_set_version(soap, 2); /* use SOAP1.2 */
|
|
soap->encodingStyle = NULL; /* use SOAP literal style */
|
|
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", "")
|
|
|| 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_endpoint, 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", "")
|
|
|| soap_body_end_out(soap)
|
|
|| soap_envelope_end_out(soap)
|
|
|| soap_end_send(soap))
|
|
return soap_closesock(soap);
|
|
return SOAP_OK;
|
|
}
|
|
|
|
int PTZBindingProxy::recv_GetPresetTours(_tptz__GetPresetToursResponse &tptz__GetPresetToursResponse)
|
|
{
|
|
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", NULL);
|
|
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::send_GetPresetTour(const char *soap_endpoint_url, const char *soap_action, _tptz__GetPresetTour *tptz__GetPresetTour)
|
|
{
|
|
struct __tptz__GetPresetTour soap_tmp___tptz__GetPresetTour;
|
|
if (soap_endpoint_url != NULL)
|
|
soap_endpoint = soap_endpoint_url;
|
|
if (soap_action == NULL)
|
|
soap_action = "http://www.onvif.org/ver20/ptz/wsdl/GetPresetTour";
|
|
soap_tmp___tptz__GetPresetTour.tptz__GetPresetTour = tptz__GetPresetTour;
|
|
soap_begin(soap);
|
|
soap_set_version(soap, 2); /* use SOAP1.2 */
|
|
soap->encodingStyle = NULL; /* use SOAP literal style */
|
|
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", "")
|
|
|| 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_endpoint, 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", "")
|
|
|| soap_body_end_out(soap)
|
|
|| soap_envelope_end_out(soap)
|
|
|| soap_end_send(soap))
|
|
return soap_closesock(soap);
|
|
return SOAP_OK;
|
|
}
|
|
|
|
int PTZBindingProxy::recv_GetPresetTour(_tptz__GetPresetTourResponse &tptz__GetPresetTourResponse)
|
|
{
|
|
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", NULL);
|
|
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::send_GetPresetTourOptions(const char *soap_endpoint_url, const char *soap_action, _tptz__GetPresetTourOptions *tptz__GetPresetTourOptions)
|
|
{
|
|
struct __tptz__GetPresetTourOptions soap_tmp___tptz__GetPresetTourOptions;
|
|
if (soap_endpoint_url != NULL)
|
|
soap_endpoint = soap_endpoint_url;
|
|
if (soap_action == NULL)
|
|
soap_action = "http://www.onvif.org/ver20/ptz/wsdl/GetPresetTourOptions";
|
|
soap_tmp___tptz__GetPresetTourOptions.tptz__GetPresetTourOptions = tptz__GetPresetTourOptions;
|
|
soap_begin(soap);
|
|
soap_set_version(soap, 2); /* use SOAP1.2 */
|
|
soap->encodingStyle = NULL; /* use SOAP literal style */
|
|
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", "")
|
|
|| 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_endpoint, 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", "")
|
|
|| soap_body_end_out(soap)
|
|
|| soap_envelope_end_out(soap)
|
|
|| soap_end_send(soap))
|
|
return soap_closesock(soap);
|
|
return SOAP_OK;
|
|
}
|
|
|
|
int PTZBindingProxy::recv_GetPresetTourOptions(_tptz__GetPresetTourOptionsResponse &tptz__GetPresetTourOptionsResponse)
|
|
{
|
|
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", NULL);
|
|
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::send_CreatePresetTour(const char *soap_endpoint_url, const char *soap_action, _tptz__CreatePresetTour *tptz__CreatePresetTour)
|
|
{
|
|
struct __tptz__CreatePresetTour soap_tmp___tptz__CreatePresetTour;
|
|
if (soap_endpoint_url != NULL)
|
|
soap_endpoint = soap_endpoint_url;
|
|
if (soap_action == NULL)
|
|
soap_action = "http://www.onvif.org/ver20/ptz/wsdl/CreatePresetTour";
|
|
soap_tmp___tptz__CreatePresetTour.tptz__CreatePresetTour = tptz__CreatePresetTour;
|
|
soap_begin(soap);
|
|
soap_set_version(soap, 2); /* use SOAP1.2 */
|
|
soap->encodingStyle = NULL; /* use SOAP literal style */
|
|
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", "")
|
|
|| 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_endpoint, 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", "")
|
|
|| soap_body_end_out(soap)
|
|
|| soap_envelope_end_out(soap)
|
|
|| soap_end_send(soap))
|
|
return soap_closesock(soap);
|
|
return SOAP_OK;
|
|
}
|
|
|
|
int PTZBindingProxy::recv_CreatePresetTour(_tptz__CreatePresetTourResponse &tptz__CreatePresetTourResponse)
|
|
{
|
|
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", NULL);
|
|
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::send_ModifyPresetTour(const char *soap_endpoint_url, const char *soap_action, _tptz__ModifyPresetTour *tptz__ModifyPresetTour)
|
|
{
|
|
struct __tptz__ModifyPresetTour soap_tmp___tptz__ModifyPresetTour;
|
|
if (soap_endpoint_url != NULL)
|
|
soap_endpoint = soap_endpoint_url;
|
|
if (soap_action == NULL)
|
|
soap_action = "http://www.onvif.org/ver20/ptz/wsdl/ModifyPresetTour";
|
|
soap_tmp___tptz__ModifyPresetTour.tptz__ModifyPresetTour = tptz__ModifyPresetTour;
|
|
soap_begin(soap);
|
|
soap_set_version(soap, 2); /* use SOAP1.2 */
|
|
soap->encodingStyle = NULL; /* use SOAP literal style */
|
|
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", "")
|
|
|| 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_endpoint, 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", "")
|
|
|| soap_body_end_out(soap)
|
|
|| soap_envelope_end_out(soap)
|
|
|| soap_end_send(soap))
|
|
return soap_closesock(soap);
|
|
return SOAP_OK;
|
|
}
|
|
|
|
int PTZBindingProxy::recv_ModifyPresetTour(_tptz__ModifyPresetTourResponse &tptz__ModifyPresetTourResponse)
|
|
{
|
|
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", NULL);
|
|
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::send_OperatePresetTour(const char *soap_endpoint_url, const char *soap_action, _tptz__OperatePresetTour *tptz__OperatePresetTour)
|
|
{
|
|
struct __tptz__OperatePresetTour soap_tmp___tptz__OperatePresetTour;
|
|
if (soap_endpoint_url != NULL)
|
|
soap_endpoint = soap_endpoint_url;
|
|
if (soap_action == NULL)
|
|
soap_action = "http://www.onvif.org/ver20/ptz/wsdl/OperatePresetTour";
|
|
soap_tmp___tptz__OperatePresetTour.tptz__OperatePresetTour = tptz__OperatePresetTour;
|
|
soap_begin(soap);
|
|
soap_set_version(soap, 2); /* use SOAP1.2 */
|
|
soap->encodingStyle = NULL; /* use SOAP literal style */
|
|
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", "")
|
|
|| 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_endpoint, 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", "")
|
|
|| soap_body_end_out(soap)
|
|
|| soap_envelope_end_out(soap)
|
|
|| soap_end_send(soap))
|
|
return soap_closesock(soap);
|
|
return SOAP_OK;
|
|
}
|
|
|
|
int PTZBindingProxy::recv_OperatePresetTour(_tptz__OperatePresetTourResponse &tptz__OperatePresetTourResponse)
|
|
{
|
|
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", NULL);
|
|
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::send_RemovePresetTour(const char *soap_endpoint_url, const char *soap_action, _tptz__RemovePresetTour *tptz__RemovePresetTour)
|
|
{
|
|
struct __tptz__RemovePresetTour soap_tmp___tptz__RemovePresetTour;
|
|
if (soap_endpoint_url != NULL)
|
|
soap_endpoint = soap_endpoint_url;
|
|
if (soap_action == NULL)
|
|
soap_action = "http://www.onvif.org/ver20/ptz/wsdl/RemovePresetTour";
|
|
soap_tmp___tptz__RemovePresetTour.tptz__RemovePresetTour = tptz__RemovePresetTour;
|
|
soap_begin(soap);
|
|
soap_set_version(soap, 2); /* use SOAP1.2 */
|
|
soap->encodingStyle = NULL; /* use SOAP literal style */
|
|
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", "")
|
|
|| 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_endpoint, 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", "")
|
|
|| soap_body_end_out(soap)
|
|
|| soap_envelope_end_out(soap)
|
|
|| soap_end_send(soap))
|
|
return soap_closesock(soap);
|
|
return SOAP_OK;
|
|
}
|
|
|
|
int PTZBindingProxy::recv_RemovePresetTour(_tptz__RemovePresetTourResponse &tptz__RemovePresetTourResponse)
|
|
{
|
|
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", NULL);
|
|
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::send_GetCompatibleConfigurations(const char *soap_endpoint_url, const char *soap_action, _tptz__GetCompatibleConfigurations *tptz__GetCompatibleConfigurations)
|
|
{
|
|
struct __tptz__GetCompatibleConfigurations soap_tmp___tptz__GetCompatibleConfigurations;
|
|
if (soap_endpoint_url != NULL)
|
|
soap_endpoint = soap_endpoint_url;
|
|
if (soap_action == NULL)
|
|
soap_action = "http://www.onvif.org/ver20/ptz/wsdl/GetCompatibleConfigurations";
|
|
soap_tmp___tptz__GetCompatibleConfigurations.tptz__GetCompatibleConfigurations = tptz__GetCompatibleConfigurations;
|
|
soap_begin(soap);
|
|
soap_set_version(soap, 2); /* use SOAP1.2 */
|
|
soap->encodingStyle = NULL; /* use SOAP literal style */
|
|
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", "")
|
|
|| 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_endpoint, 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", "")
|
|
|| soap_body_end_out(soap)
|
|
|| soap_envelope_end_out(soap)
|
|
|| soap_end_send(soap))
|
|
return soap_closesock(soap);
|
|
return SOAP_OK;
|
|
}
|
|
|
|
int PTZBindingProxy::recv_GetCompatibleConfigurations(_tptz__GetCompatibleConfigurationsResponse &tptz__GetCompatibleConfigurationsResponse)
|
|
{
|
|
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", NULL);
|
|
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 */
|