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.
v4l2onvif/gen/soapPTZBindingService.cpp

1490 lines
59 KiB
C++

/* soapPTZBindingService.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 "soapPTZBindingService.h"
PTZBindingService::PTZBindingService()
{ this->soap = soap_new();
this->soap_own = true;
PTZBindingService_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
}
PTZBindingService::PTZBindingService(const PTZBindingService& rhs)
{ this->soap = rhs.soap;
this->soap_own = false;
}
PTZBindingService::PTZBindingService(struct soap *_soap)
{ this->soap = _soap;
this->soap_own = false;
PTZBindingService_init(_soap->imode, _soap->omode);
}
PTZBindingService::PTZBindingService(soap_mode iomode)
{ this->soap = soap_new();
this->soap_own = true;
PTZBindingService_init(iomode, iomode);
}
PTZBindingService::PTZBindingService(soap_mode imode, soap_mode omode)
{ this->soap = soap_new();
this->soap_own = true;
PTZBindingService_init(imode, omode);
}
PTZBindingService::~PTZBindingService()
{ if (this->soap_own)
{ PTZBindingService::destroy();
soap_free(this->soap);
}
}
void PTZBindingService::PTZBindingService_init(soap_mode imode, soap_mode omode)
{ soap_imode(this->soap, imode);
soap_omode(this->soap, omode);
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);
}
void PTZBindingService::destroy()
{ soap_destroy(this->soap);
soap_end(this->soap);
}
void PTZBindingService::reset()
{ this->destroy();
soap_done(this->soap);
soap_initialize(this->soap);
PTZBindingService_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
}
#ifndef WITH_PURE_VIRTUAL
PTZBindingService *PTZBindingService::copy()
{ PTZBindingService *dup = SOAP_NEW_UNMANAGED(PTZBindingService);
if (dup)
{ soap_done(dup->soap);
soap_copy_context(dup->soap, this->soap);
}
return dup;
}
#endif
PTZBindingService& PTZBindingService::operator=(const PTZBindingService& rhs)
{ if (this->soap != rhs.soap)
{ if (this->soap_own)
soap_free(this->soap);
this->soap = rhs.soap;
this->soap_own = false;
}
return *this;
}
int PTZBindingService::soap_close_socket()
{ return soap_closesock(this->soap);
}
int PTZBindingService::soap_force_close_socket()
{ return soap_force_closesock(this->soap);
}
int PTZBindingService::soap_senderfault(const char *string, const char *detailXML)
{ return ::soap_sender_fault(this->soap, string, detailXML);
}
int PTZBindingService::soap_senderfault(const char *subcodeQName, const char *string, const char *detailXML)
{ return ::soap_sender_fault_subcode(this->soap, subcodeQName, string, detailXML);
}
int PTZBindingService::soap_receiverfault(const char *string, const char *detailXML)
{ return ::soap_receiver_fault(this->soap, string, detailXML);
}
int PTZBindingService::soap_receiverfault(const char *subcodeQName, const char *string, const char *detailXML)
{ return ::soap_receiver_fault_subcode(this->soap, subcodeQName, string, detailXML);
}
void PTZBindingService::soap_print_fault(FILE *fd)
{ ::soap_print_fault(this->soap, fd);
}
#ifndef WITH_LEAN
#ifndef WITH_COMPAT
void PTZBindingService::soap_stream_fault(std::ostream& os)
{ ::soap_stream_fault(this->soap, os);
}
#endif
char *PTZBindingService::soap_sprint_fault(char *buf, size_t len)
{ return ::soap_sprint_fault(this->soap, buf, len);
}
#endif
void PTZBindingService::soap_noheader()
{ this->soap->header = NULL;
}
void PTZBindingService::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 *PTZBindingService::soap_header()
{ return this->soap->header;
}
#ifndef WITH_NOIO
int PTZBindingService::run(int port, int backlog)
{ if (!soap_valid_socket(this->soap->master) && !soap_valid_socket(this->bind(NULL, port, backlog)))
return this->soap->error;
for (;;)
{ if (!soap_valid_socket(this->accept()))
{ if (this->soap->errnum == 0) // timeout?
this->soap->error = SOAP_OK;
break;
}
if (this->serve())
break;
this->destroy();
}
return this->soap->error;
}
#if defined(WITH_OPENSSL) || defined(WITH_GNUTLS)
int PTZBindingService::ssl_run(int port, int backlog)
{ if (!soap_valid_socket(this->soap->master) && !soap_valid_socket(this->bind(NULL, port, backlog)))
return this->soap->error;
for (;;)
{ if (!soap_valid_socket(this->accept()))
{ if (this->soap->errnum == 0) // timeout?
this->soap->error = SOAP_OK;
break;
}
if (this->ssl_accept() || this->serve())
break;
this->destroy();
}
return this->soap->error;
}
#endif
SOAP_SOCKET PTZBindingService::bind(const char *host, int port, int backlog)
{ return soap_bind(this->soap, host, port, backlog);
}
SOAP_SOCKET PTZBindingService::accept()
{ return soap_accept(this->soap);
}
#if defined(WITH_OPENSSL) || defined(WITH_GNUTLS)
int PTZBindingService::ssl_accept()
{ return soap_ssl_accept(this->soap);
}
#endif
#endif
int PTZBindingService::serve()
{
#ifndef WITH_FASTCGI
this->soap->keep_alive = this->soap->max_keep_alive + 1;
#endif
do
{
#ifndef WITH_FASTCGI
if (this->soap->keep_alive > 0 && this->soap->max_keep_alive > 0)
this->soap->keep_alive--;
#endif
if (soap_begin_serve(this->soap))
{ if (this->soap->error >= SOAP_STOP)
continue;
return this->soap->error;
}
if ((dispatch() || (this->soap->fserveloop && this->soap->fserveloop(this->soap))) && this->soap->error && this->soap->error < SOAP_STOP)
{
#ifdef WITH_FASTCGI
soap_send_fault(this->soap);
#else
return soap_send_fault(this->soap);
#endif
}
#ifdef WITH_FASTCGI
soap_destroy(this->soap);
soap_end(this->soap);
} while (1);
#else
} while (this->soap->keep_alive);
#endif
return SOAP_OK;
}
static int serve___tptz__GetServiceCapabilities(struct soap*, PTZBindingService*);
static int serve___tptz__GetConfigurations(struct soap*, PTZBindingService*);
static int serve___tptz__GetPresets(struct soap*, PTZBindingService*);
static int serve___tptz__SetPreset(struct soap*, PTZBindingService*);
static int serve___tptz__RemovePreset(struct soap*, PTZBindingService*);
static int serve___tptz__GotoPreset(struct soap*, PTZBindingService*);
static int serve___tptz__GetStatus(struct soap*, PTZBindingService*);
static int serve___tptz__GetConfiguration(struct soap*, PTZBindingService*);
static int serve___tptz__GetNodes(struct soap*, PTZBindingService*);
static int serve___tptz__GetNode(struct soap*, PTZBindingService*);
static int serve___tptz__SetConfiguration(struct soap*, PTZBindingService*);
static int serve___tptz__GetConfigurationOptions(struct soap*, PTZBindingService*);
static int serve___tptz__GotoHomePosition(struct soap*, PTZBindingService*);
static int serve___tptz__SetHomePosition(struct soap*, PTZBindingService*);
static int serve___tptz__ContinuousMove(struct soap*, PTZBindingService*);
static int serve___tptz__RelativeMove(struct soap*, PTZBindingService*);
static int serve___tptz__SendAuxiliaryCommand(struct soap*, PTZBindingService*);
static int serve___tptz__AbsoluteMove(struct soap*, PTZBindingService*);
static int serve___tptz__Stop(struct soap*, PTZBindingService*);
static int serve___tptz__GetPresetTours(struct soap*, PTZBindingService*);
static int serve___tptz__GetPresetTour(struct soap*, PTZBindingService*);
static int serve___tptz__GetPresetTourOptions(struct soap*, PTZBindingService*);
static int serve___tptz__CreatePresetTour(struct soap*, PTZBindingService*);
static int serve___tptz__ModifyPresetTour(struct soap*, PTZBindingService*);
static int serve___tptz__OperatePresetTour(struct soap*, PTZBindingService*);
static int serve___tptz__RemovePresetTour(struct soap*, PTZBindingService*);
static int serve___tptz__GetCompatibleConfigurations(struct soap*, PTZBindingService*);
int PTZBindingService::dispatch()
{ return dispatch(this->soap);
}
int PTZBindingService::dispatch(struct soap* soap)
{
PTZBindingService_init(soap->imode, soap->omode);
(void)soap_peek_element(soap);
if (!soap_match_tag(soap, soap->tag, "tptz:GetServiceCapabilities"))
return serve___tptz__GetServiceCapabilities(soap, this);
if (!soap_match_tag(soap, soap->tag, "tptz:GetConfigurations"))
return serve___tptz__GetConfigurations(soap, this);
if (!soap_match_tag(soap, soap->tag, "tptz:GetPresets"))
return serve___tptz__GetPresets(soap, this);
if (!soap_match_tag(soap, soap->tag, "tptz:SetPreset"))
return serve___tptz__SetPreset(soap, this);
if (!soap_match_tag(soap, soap->tag, "tptz:RemovePreset"))
return serve___tptz__RemovePreset(soap, this);
if (!soap_match_tag(soap, soap->tag, "tptz:GotoPreset"))
return serve___tptz__GotoPreset(soap, this);
if (!soap_match_tag(soap, soap->tag, "tptz:GetStatus"))
return serve___tptz__GetStatus(soap, this);
if (!soap_match_tag(soap, soap->tag, "tptz:GetConfiguration"))
return serve___tptz__GetConfiguration(soap, this);
if (!soap_match_tag(soap, soap->tag, "tptz:GetNodes"))
return serve___tptz__GetNodes(soap, this);
if (!soap_match_tag(soap, soap->tag, "tptz:GetNode"))
return serve___tptz__GetNode(soap, this);
if (!soap_match_tag(soap, soap->tag, "tptz:SetConfiguration"))
return serve___tptz__SetConfiguration(soap, this);
if (!soap_match_tag(soap, soap->tag, "tptz:GetConfigurationOptions"))
return serve___tptz__GetConfigurationOptions(soap, this);
if (!soap_match_tag(soap, soap->tag, "tptz:GotoHomePosition"))
return serve___tptz__GotoHomePosition(soap, this);
if (!soap_match_tag(soap, soap->tag, "tptz:SetHomePosition"))
return serve___tptz__SetHomePosition(soap, this);
if (!soap_match_tag(soap, soap->tag, "tptz:ContinuousMove"))
return serve___tptz__ContinuousMove(soap, this);
if (!soap_match_tag(soap, soap->tag, "tptz:RelativeMove"))
return serve___tptz__RelativeMove(soap, this);
if (!soap_match_tag(soap, soap->tag, "tptz:SendAuxiliaryCommand"))
return serve___tptz__SendAuxiliaryCommand(soap, this);
if (!soap_match_tag(soap, soap->tag, "tptz:AbsoluteMove"))
return serve___tptz__AbsoluteMove(soap, this);
if (!soap_match_tag(soap, soap->tag, "tptz:Stop"))
return serve___tptz__Stop(soap, this);
if (!soap_match_tag(soap, soap->tag, "tptz:GetPresetTours"))
return serve___tptz__GetPresetTours(soap, this);
if (!soap_match_tag(soap, soap->tag, "tptz:GetPresetTour"))
return serve___tptz__GetPresetTour(soap, this);
if (!soap_match_tag(soap, soap->tag, "tptz:GetPresetTourOptions"))
return serve___tptz__GetPresetTourOptions(soap, this);
if (!soap_match_tag(soap, soap->tag, "tptz:CreatePresetTour"))
return serve___tptz__CreatePresetTour(soap, this);
if (!soap_match_tag(soap, soap->tag, "tptz:ModifyPresetTour"))
return serve___tptz__ModifyPresetTour(soap, this);
if (!soap_match_tag(soap, soap->tag, "tptz:OperatePresetTour"))
return serve___tptz__OperatePresetTour(soap, this);
if (!soap_match_tag(soap, soap->tag, "tptz:RemovePresetTour"))
return serve___tptz__RemovePresetTour(soap, this);
if (!soap_match_tag(soap, soap->tag, "tptz:GetCompatibleConfigurations"))
return serve___tptz__GetCompatibleConfigurations(soap, this);
return soap->error = SOAP_NO_METHOD;
}
static int serve___tptz__GetServiceCapabilities(struct soap *soap, PTZBindingService *service)
{ struct __tptz__GetServiceCapabilities soap_tmp___tptz__GetServiceCapabilities;
_tptz__GetServiceCapabilitiesResponse tptz__GetServiceCapabilitiesResponse;
tptz__GetServiceCapabilitiesResponse.soap_default(soap);
soap_default___tptz__GetServiceCapabilities(soap, &soap_tmp___tptz__GetServiceCapabilities);
if (!soap_get___tptz__GetServiceCapabilities(soap, &soap_tmp___tptz__GetServiceCapabilities, "-tptz:GetServiceCapabilities", NULL))
return soap->error;
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap->error;
soap->error = service->GetServiceCapabilities(soap_tmp___tptz__GetServiceCapabilities.tptz__GetServiceCapabilities, tptz__GetServiceCapabilitiesResponse);
if (soap->error)
return soap->error;
soap->encodingStyle = NULL; /* use SOAP literal style */
soap_serializeheader(soap);
tptz__GetServiceCapabilitiesResponse.soap_serialize(soap);
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)
|| tptz__GetServiceCapabilitiesResponse.soap_put(soap, "tptz:GetServiceCapabilitiesResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap))
return soap->error;
};
if (soap_end_count(soap)
|| soap_response(soap, SOAP_OK)
|| soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| tptz__GetServiceCapabilitiesResponse.soap_put(soap, "tptz:GetServiceCapabilitiesResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap->error;
return soap_closesock(soap);
}
static int serve___tptz__GetConfigurations(struct soap *soap, PTZBindingService *service)
{ struct __tptz__GetConfigurations soap_tmp___tptz__GetConfigurations;
_tptz__GetConfigurationsResponse tptz__GetConfigurationsResponse;
tptz__GetConfigurationsResponse.soap_default(soap);
soap_default___tptz__GetConfigurations(soap, &soap_tmp___tptz__GetConfigurations);
if (!soap_get___tptz__GetConfigurations(soap, &soap_tmp___tptz__GetConfigurations, "-tptz:GetConfigurations", NULL))
return soap->error;
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap->error;
soap->error = service->GetConfigurations(soap_tmp___tptz__GetConfigurations.tptz__GetConfigurations, tptz__GetConfigurationsResponse);
if (soap->error)
return soap->error;
soap->encodingStyle = NULL; /* use SOAP literal style */
soap_serializeheader(soap);
tptz__GetConfigurationsResponse.soap_serialize(soap);
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)
|| tptz__GetConfigurationsResponse.soap_put(soap, "tptz:GetConfigurationsResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap))
return soap->error;
};
if (soap_end_count(soap)
|| soap_response(soap, SOAP_OK)
|| soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| tptz__GetConfigurationsResponse.soap_put(soap, "tptz:GetConfigurationsResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap->error;
return soap_closesock(soap);
}
static int serve___tptz__GetPresets(struct soap *soap, PTZBindingService *service)
{ struct __tptz__GetPresets soap_tmp___tptz__GetPresets;
_tptz__GetPresetsResponse tptz__GetPresetsResponse;
tptz__GetPresetsResponse.soap_default(soap);
soap_default___tptz__GetPresets(soap, &soap_tmp___tptz__GetPresets);
if (!soap_get___tptz__GetPresets(soap, &soap_tmp___tptz__GetPresets, "-tptz:GetPresets", NULL))
return soap->error;
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap->error;
soap->error = service->GetPresets(soap_tmp___tptz__GetPresets.tptz__GetPresets, tptz__GetPresetsResponse);
if (soap->error)
return soap->error;
soap->encodingStyle = NULL; /* use SOAP literal style */
soap_serializeheader(soap);
tptz__GetPresetsResponse.soap_serialize(soap);
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)
|| tptz__GetPresetsResponse.soap_put(soap, "tptz:GetPresetsResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap))
return soap->error;
};
if (soap_end_count(soap)
|| soap_response(soap, SOAP_OK)
|| soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| tptz__GetPresetsResponse.soap_put(soap, "tptz:GetPresetsResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap->error;
return soap_closesock(soap);
}
static int serve___tptz__SetPreset(struct soap *soap, PTZBindingService *service)
{ struct __tptz__SetPreset soap_tmp___tptz__SetPreset;
_tptz__SetPresetResponse tptz__SetPresetResponse;
tptz__SetPresetResponse.soap_default(soap);
soap_default___tptz__SetPreset(soap, &soap_tmp___tptz__SetPreset);
if (!soap_get___tptz__SetPreset(soap, &soap_tmp___tptz__SetPreset, "-tptz:SetPreset", NULL))
return soap->error;
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap->error;
soap->error = service->SetPreset(soap_tmp___tptz__SetPreset.tptz__SetPreset, tptz__SetPresetResponse);
if (soap->error)
return soap->error;
soap->encodingStyle = NULL; /* use SOAP literal style */
soap_serializeheader(soap);
tptz__SetPresetResponse.soap_serialize(soap);
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)
|| tptz__SetPresetResponse.soap_put(soap, "tptz:SetPresetResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap))
return soap->error;
};
if (soap_end_count(soap)
|| soap_response(soap, SOAP_OK)
|| soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| tptz__SetPresetResponse.soap_put(soap, "tptz:SetPresetResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap->error;
return soap_closesock(soap);
}
static int serve___tptz__RemovePreset(struct soap *soap, PTZBindingService *service)
{ struct __tptz__RemovePreset soap_tmp___tptz__RemovePreset;
_tptz__RemovePresetResponse tptz__RemovePresetResponse;
tptz__RemovePresetResponse.soap_default(soap);
soap_default___tptz__RemovePreset(soap, &soap_tmp___tptz__RemovePreset);
if (!soap_get___tptz__RemovePreset(soap, &soap_tmp___tptz__RemovePreset, "-tptz:RemovePreset", NULL))
return soap->error;
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap->error;
soap->error = service->RemovePreset(soap_tmp___tptz__RemovePreset.tptz__RemovePreset, tptz__RemovePresetResponse);
if (soap->error)
return soap->error;
soap->encodingStyle = NULL; /* use SOAP literal style */
soap_serializeheader(soap);
tptz__RemovePresetResponse.soap_serialize(soap);
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)
|| tptz__RemovePresetResponse.soap_put(soap, "tptz:RemovePresetResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap))
return soap->error;
};
if (soap_end_count(soap)
|| soap_response(soap, SOAP_OK)
|| soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| tptz__RemovePresetResponse.soap_put(soap, "tptz:RemovePresetResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap->error;
return soap_closesock(soap);
}
static int serve___tptz__GotoPreset(struct soap *soap, PTZBindingService *service)
{ struct __tptz__GotoPreset soap_tmp___tptz__GotoPreset;
_tptz__GotoPresetResponse tptz__GotoPresetResponse;
tptz__GotoPresetResponse.soap_default(soap);
soap_default___tptz__GotoPreset(soap, &soap_tmp___tptz__GotoPreset);
if (!soap_get___tptz__GotoPreset(soap, &soap_tmp___tptz__GotoPreset, "-tptz:GotoPreset", NULL))
return soap->error;
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap->error;
soap->error = service->GotoPreset(soap_tmp___tptz__GotoPreset.tptz__GotoPreset, tptz__GotoPresetResponse);
if (soap->error)
return soap->error;
soap->encodingStyle = NULL; /* use SOAP literal style */
soap_serializeheader(soap);
tptz__GotoPresetResponse.soap_serialize(soap);
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)
|| tptz__GotoPresetResponse.soap_put(soap, "tptz:GotoPresetResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap))
return soap->error;
};
if (soap_end_count(soap)
|| soap_response(soap, SOAP_OK)
|| soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| tptz__GotoPresetResponse.soap_put(soap, "tptz:GotoPresetResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap->error;
return soap_closesock(soap);
}
static int serve___tptz__GetStatus(struct soap *soap, PTZBindingService *service)
{ struct __tptz__GetStatus soap_tmp___tptz__GetStatus;
_tptz__GetStatusResponse tptz__GetStatusResponse;
tptz__GetStatusResponse.soap_default(soap);
soap_default___tptz__GetStatus(soap, &soap_tmp___tptz__GetStatus);
if (!soap_get___tptz__GetStatus(soap, &soap_tmp___tptz__GetStatus, "-tptz:GetStatus", NULL))
return soap->error;
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap->error;
soap->error = service->GetStatus(soap_tmp___tptz__GetStatus.tptz__GetStatus, tptz__GetStatusResponse);
if (soap->error)
return soap->error;
soap->encodingStyle = NULL; /* use SOAP literal style */
soap_serializeheader(soap);
tptz__GetStatusResponse.soap_serialize(soap);
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)
|| tptz__GetStatusResponse.soap_put(soap, "tptz:GetStatusResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap))
return soap->error;
};
if (soap_end_count(soap)
|| soap_response(soap, SOAP_OK)
|| soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| tptz__GetStatusResponse.soap_put(soap, "tptz:GetStatusResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap->error;
return soap_closesock(soap);
}
static int serve___tptz__GetConfiguration(struct soap *soap, PTZBindingService *service)
{ struct __tptz__GetConfiguration soap_tmp___tptz__GetConfiguration;
_tptz__GetConfigurationResponse tptz__GetConfigurationResponse;
tptz__GetConfigurationResponse.soap_default(soap);
soap_default___tptz__GetConfiguration(soap, &soap_tmp___tptz__GetConfiguration);
if (!soap_get___tptz__GetConfiguration(soap, &soap_tmp___tptz__GetConfiguration, "-tptz:GetConfiguration", NULL))
return soap->error;
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap->error;
soap->error = service->GetConfiguration(soap_tmp___tptz__GetConfiguration.tptz__GetConfiguration, tptz__GetConfigurationResponse);
if (soap->error)
return soap->error;
soap->encodingStyle = NULL; /* use SOAP literal style */
soap_serializeheader(soap);
tptz__GetConfigurationResponse.soap_serialize(soap);
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)
|| tptz__GetConfigurationResponse.soap_put(soap, "tptz:GetConfigurationResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap))
return soap->error;
};
if (soap_end_count(soap)
|| soap_response(soap, SOAP_OK)
|| soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| tptz__GetConfigurationResponse.soap_put(soap, "tptz:GetConfigurationResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap->error;
return soap_closesock(soap);
}
static int serve___tptz__GetNodes(struct soap *soap, PTZBindingService *service)
{ struct __tptz__GetNodes soap_tmp___tptz__GetNodes;
_tptz__GetNodesResponse tptz__GetNodesResponse;
tptz__GetNodesResponse.soap_default(soap);
soap_default___tptz__GetNodes(soap, &soap_tmp___tptz__GetNodes);
if (!soap_get___tptz__GetNodes(soap, &soap_tmp___tptz__GetNodes, "-tptz:GetNodes", NULL))
return soap->error;
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap->error;
soap->error = service->GetNodes(soap_tmp___tptz__GetNodes.tptz__GetNodes, tptz__GetNodesResponse);
if (soap->error)
return soap->error;
soap->encodingStyle = NULL; /* use SOAP literal style */
soap_serializeheader(soap);
tptz__GetNodesResponse.soap_serialize(soap);
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)
|| tptz__GetNodesResponse.soap_put(soap, "tptz:GetNodesResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap))
return soap->error;
};
if (soap_end_count(soap)
|| soap_response(soap, SOAP_OK)
|| soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| tptz__GetNodesResponse.soap_put(soap, "tptz:GetNodesResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap->error;
return soap_closesock(soap);
}
static int serve___tptz__GetNode(struct soap *soap, PTZBindingService *service)
{ struct __tptz__GetNode soap_tmp___tptz__GetNode;
_tptz__GetNodeResponse tptz__GetNodeResponse;
tptz__GetNodeResponse.soap_default(soap);
soap_default___tptz__GetNode(soap, &soap_tmp___tptz__GetNode);
if (!soap_get___tptz__GetNode(soap, &soap_tmp___tptz__GetNode, "-tptz:GetNode", NULL))
return soap->error;
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap->error;
soap->error = service->GetNode(soap_tmp___tptz__GetNode.tptz__GetNode, tptz__GetNodeResponse);
if (soap->error)
return soap->error;
soap->encodingStyle = NULL; /* use SOAP literal style */
soap_serializeheader(soap);
tptz__GetNodeResponse.soap_serialize(soap);
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)
|| tptz__GetNodeResponse.soap_put(soap, "tptz:GetNodeResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap))
return soap->error;
};
if (soap_end_count(soap)
|| soap_response(soap, SOAP_OK)
|| soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| tptz__GetNodeResponse.soap_put(soap, "tptz:GetNodeResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap->error;
return soap_closesock(soap);
}
static int serve___tptz__SetConfiguration(struct soap *soap, PTZBindingService *service)
{ struct __tptz__SetConfiguration soap_tmp___tptz__SetConfiguration;
_tptz__SetConfigurationResponse tptz__SetConfigurationResponse;
tptz__SetConfigurationResponse.soap_default(soap);
soap_default___tptz__SetConfiguration(soap, &soap_tmp___tptz__SetConfiguration);
if (!soap_get___tptz__SetConfiguration(soap, &soap_tmp___tptz__SetConfiguration, "-tptz:SetConfiguration", NULL))
return soap->error;
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap->error;
soap->error = service->SetConfiguration(soap_tmp___tptz__SetConfiguration.tptz__SetConfiguration, tptz__SetConfigurationResponse);
if (soap->error)
return soap->error;
soap->encodingStyle = NULL; /* use SOAP literal style */
soap_serializeheader(soap);
tptz__SetConfigurationResponse.soap_serialize(soap);
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)
|| tptz__SetConfigurationResponse.soap_put(soap, "tptz:SetConfigurationResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap))
return soap->error;
};
if (soap_end_count(soap)
|| soap_response(soap, SOAP_OK)
|| soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| tptz__SetConfigurationResponse.soap_put(soap, "tptz:SetConfigurationResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap->error;
return soap_closesock(soap);
}
static int serve___tptz__GetConfigurationOptions(struct soap *soap, PTZBindingService *service)
{ struct __tptz__GetConfigurationOptions soap_tmp___tptz__GetConfigurationOptions;
_tptz__GetConfigurationOptionsResponse tptz__GetConfigurationOptionsResponse;
tptz__GetConfigurationOptionsResponse.soap_default(soap);
soap_default___tptz__GetConfigurationOptions(soap, &soap_tmp___tptz__GetConfigurationOptions);
if (!soap_get___tptz__GetConfigurationOptions(soap, &soap_tmp___tptz__GetConfigurationOptions, "-tptz:GetConfigurationOptions", NULL))
return soap->error;
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap->error;
soap->error = service->GetConfigurationOptions(soap_tmp___tptz__GetConfigurationOptions.tptz__GetConfigurationOptions, tptz__GetConfigurationOptionsResponse);
if (soap->error)
return soap->error;
soap->encodingStyle = NULL; /* use SOAP literal style */
soap_serializeheader(soap);
tptz__GetConfigurationOptionsResponse.soap_serialize(soap);
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)
|| tptz__GetConfigurationOptionsResponse.soap_put(soap, "tptz:GetConfigurationOptionsResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap))
return soap->error;
};
if (soap_end_count(soap)
|| soap_response(soap, SOAP_OK)
|| soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| tptz__GetConfigurationOptionsResponse.soap_put(soap, "tptz:GetConfigurationOptionsResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap->error;
return soap_closesock(soap);
}
static int serve___tptz__GotoHomePosition(struct soap *soap, PTZBindingService *service)
{ struct __tptz__GotoHomePosition soap_tmp___tptz__GotoHomePosition;
_tptz__GotoHomePositionResponse tptz__GotoHomePositionResponse;
tptz__GotoHomePositionResponse.soap_default(soap);
soap_default___tptz__GotoHomePosition(soap, &soap_tmp___tptz__GotoHomePosition);
if (!soap_get___tptz__GotoHomePosition(soap, &soap_tmp___tptz__GotoHomePosition, "-tptz:GotoHomePosition", NULL))
return soap->error;
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap->error;
soap->error = service->GotoHomePosition(soap_tmp___tptz__GotoHomePosition.tptz__GotoHomePosition, tptz__GotoHomePositionResponse);
if (soap->error)
return soap->error;
soap->encodingStyle = NULL; /* use SOAP literal style */
soap_serializeheader(soap);
tptz__GotoHomePositionResponse.soap_serialize(soap);
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)
|| tptz__GotoHomePositionResponse.soap_put(soap, "tptz:GotoHomePositionResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap))
return soap->error;
};
if (soap_end_count(soap)
|| soap_response(soap, SOAP_OK)
|| soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| tptz__GotoHomePositionResponse.soap_put(soap, "tptz:GotoHomePositionResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap->error;
return soap_closesock(soap);
}
static int serve___tptz__SetHomePosition(struct soap *soap, PTZBindingService *service)
{ struct __tptz__SetHomePosition soap_tmp___tptz__SetHomePosition;
_tptz__SetHomePositionResponse tptz__SetHomePositionResponse;
tptz__SetHomePositionResponse.soap_default(soap);
soap_default___tptz__SetHomePosition(soap, &soap_tmp___tptz__SetHomePosition);
if (!soap_get___tptz__SetHomePosition(soap, &soap_tmp___tptz__SetHomePosition, "-tptz:SetHomePosition", NULL))
return soap->error;
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap->error;
soap->error = service->SetHomePosition(soap_tmp___tptz__SetHomePosition.tptz__SetHomePosition, tptz__SetHomePositionResponse);
if (soap->error)
return soap->error;
soap->encodingStyle = NULL; /* use SOAP literal style */
soap_serializeheader(soap);
tptz__SetHomePositionResponse.soap_serialize(soap);
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)
|| tptz__SetHomePositionResponse.soap_put(soap, "tptz:SetHomePositionResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap))
return soap->error;
};
if (soap_end_count(soap)
|| soap_response(soap, SOAP_OK)
|| soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| tptz__SetHomePositionResponse.soap_put(soap, "tptz:SetHomePositionResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap->error;
return soap_closesock(soap);
}
static int serve___tptz__ContinuousMove(struct soap *soap, PTZBindingService *service)
{ struct __tptz__ContinuousMove soap_tmp___tptz__ContinuousMove;
_tptz__ContinuousMoveResponse tptz__ContinuousMoveResponse;
tptz__ContinuousMoveResponse.soap_default(soap);
soap_default___tptz__ContinuousMove(soap, &soap_tmp___tptz__ContinuousMove);
if (!soap_get___tptz__ContinuousMove(soap, &soap_tmp___tptz__ContinuousMove, "-tptz:ContinuousMove", NULL))
return soap->error;
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap->error;
soap->error = service->ContinuousMove(soap_tmp___tptz__ContinuousMove.tptz__ContinuousMove, tptz__ContinuousMoveResponse);
if (soap->error)
return soap->error;
soap->encodingStyle = NULL; /* use SOAP literal style */
soap_serializeheader(soap);
tptz__ContinuousMoveResponse.soap_serialize(soap);
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)
|| tptz__ContinuousMoveResponse.soap_put(soap, "tptz:ContinuousMoveResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap))
return soap->error;
};
if (soap_end_count(soap)
|| soap_response(soap, SOAP_OK)
|| soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| tptz__ContinuousMoveResponse.soap_put(soap, "tptz:ContinuousMoveResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap->error;
return soap_closesock(soap);
}
static int serve___tptz__RelativeMove(struct soap *soap, PTZBindingService *service)
{ struct __tptz__RelativeMove soap_tmp___tptz__RelativeMove;
_tptz__RelativeMoveResponse tptz__RelativeMoveResponse;
tptz__RelativeMoveResponse.soap_default(soap);
soap_default___tptz__RelativeMove(soap, &soap_tmp___tptz__RelativeMove);
if (!soap_get___tptz__RelativeMove(soap, &soap_tmp___tptz__RelativeMove, "-tptz:RelativeMove", NULL))
return soap->error;
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap->error;
soap->error = service->RelativeMove(soap_tmp___tptz__RelativeMove.tptz__RelativeMove, tptz__RelativeMoveResponse);
if (soap->error)
return soap->error;
soap->encodingStyle = NULL; /* use SOAP literal style */
soap_serializeheader(soap);
tptz__RelativeMoveResponse.soap_serialize(soap);
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)
|| tptz__RelativeMoveResponse.soap_put(soap, "tptz:RelativeMoveResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap))
return soap->error;
};
if (soap_end_count(soap)
|| soap_response(soap, SOAP_OK)
|| soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| tptz__RelativeMoveResponse.soap_put(soap, "tptz:RelativeMoveResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap->error;
return soap_closesock(soap);
}
static int serve___tptz__SendAuxiliaryCommand(struct soap *soap, PTZBindingService *service)
{ struct __tptz__SendAuxiliaryCommand soap_tmp___tptz__SendAuxiliaryCommand;
_tptz__SendAuxiliaryCommandResponse tptz__SendAuxiliaryCommandResponse;
tptz__SendAuxiliaryCommandResponse.soap_default(soap);
soap_default___tptz__SendAuxiliaryCommand(soap, &soap_tmp___tptz__SendAuxiliaryCommand);
if (!soap_get___tptz__SendAuxiliaryCommand(soap, &soap_tmp___tptz__SendAuxiliaryCommand, "-tptz:SendAuxiliaryCommand", NULL))
return soap->error;
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap->error;
soap->error = service->SendAuxiliaryCommand(soap_tmp___tptz__SendAuxiliaryCommand.tptz__SendAuxiliaryCommand, tptz__SendAuxiliaryCommandResponse);
if (soap->error)
return soap->error;
soap->encodingStyle = NULL; /* use SOAP literal style */
soap_serializeheader(soap);
tptz__SendAuxiliaryCommandResponse.soap_serialize(soap);
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)
|| tptz__SendAuxiliaryCommandResponse.soap_put(soap, "tptz:SendAuxiliaryCommandResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap))
return soap->error;
};
if (soap_end_count(soap)
|| soap_response(soap, SOAP_OK)
|| soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| tptz__SendAuxiliaryCommandResponse.soap_put(soap, "tptz:SendAuxiliaryCommandResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap->error;
return soap_closesock(soap);
}
static int serve___tptz__AbsoluteMove(struct soap *soap, PTZBindingService *service)
{ struct __tptz__AbsoluteMove soap_tmp___tptz__AbsoluteMove;
_tptz__AbsoluteMoveResponse tptz__AbsoluteMoveResponse;
tptz__AbsoluteMoveResponse.soap_default(soap);
soap_default___tptz__AbsoluteMove(soap, &soap_tmp___tptz__AbsoluteMove);
if (!soap_get___tptz__AbsoluteMove(soap, &soap_tmp___tptz__AbsoluteMove, "-tptz:AbsoluteMove", NULL))
return soap->error;
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap->error;
soap->error = service->AbsoluteMove(soap_tmp___tptz__AbsoluteMove.tptz__AbsoluteMove, tptz__AbsoluteMoveResponse);
if (soap->error)
return soap->error;
soap->encodingStyle = NULL; /* use SOAP literal style */
soap_serializeheader(soap);
tptz__AbsoluteMoveResponse.soap_serialize(soap);
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)
|| tptz__AbsoluteMoveResponse.soap_put(soap, "tptz:AbsoluteMoveResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap))
return soap->error;
};
if (soap_end_count(soap)
|| soap_response(soap, SOAP_OK)
|| soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| tptz__AbsoluteMoveResponse.soap_put(soap, "tptz:AbsoluteMoveResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap->error;
return soap_closesock(soap);
}
static int serve___tptz__Stop(struct soap *soap, PTZBindingService *service)
{ struct __tptz__Stop soap_tmp___tptz__Stop;
_tptz__StopResponse tptz__StopResponse;
tptz__StopResponse.soap_default(soap);
soap_default___tptz__Stop(soap, &soap_tmp___tptz__Stop);
if (!soap_get___tptz__Stop(soap, &soap_tmp___tptz__Stop, "-tptz:Stop", NULL))
return soap->error;
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap->error;
soap->error = service->Stop(soap_tmp___tptz__Stop.tptz__Stop, tptz__StopResponse);
if (soap->error)
return soap->error;
soap->encodingStyle = NULL; /* use SOAP literal style */
soap_serializeheader(soap);
tptz__StopResponse.soap_serialize(soap);
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)
|| tptz__StopResponse.soap_put(soap, "tptz:StopResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap))
return soap->error;
};
if (soap_end_count(soap)
|| soap_response(soap, SOAP_OK)
|| soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| tptz__StopResponse.soap_put(soap, "tptz:StopResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap->error;
return soap_closesock(soap);
}
static int serve___tptz__GetPresetTours(struct soap *soap, PTZBindingService *service)
{ struct __tptz__GetPresetTours soap_tmp___tptz__GetPresetTours;
_tptz__GetPresetToursResponse tptz__GetPresetToursResponse;
tptz__GetPresetToursResponse.soap_default(soap);
soap_default___tptz__GetPresetTours(soap, &soap_tmp___tptz__GetPresetTours);
if (!soap_get___tptz__GetPresetTours(soap, &soap_tmp___tptz__GetPresetTours, "-tptz:GetPresetTours", NULL))
return soap->error;
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap->error;
soap->error = service->GetPresetTours(soap_tmp___tptz__GetPresetTours.tptz__GetPresetTours, tptz__GetPresetToursResponse);
if (soap->error)
return soap->error;
soap->encodingStyle = NULL; /* use SOAP literal style */
soap_serializeheader(soap);
tptz__GetPresetToursResponse.soap_serialize(soap);
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)
|| tptz__GetPresetToursResponse.soap_put(soap, "tptz:GetPresetToursResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap))
return soap->error;
};
if (soap_end_count(soap)
|| soap_response(soap, SOAP_OK)
|| soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| tptz__GetPresetToursResponse.soap_put(soap, "tptz:GetPresetToursResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap->error;
return soap_closesock(soap);
}
static int serve___tptz__GetPresetTour(struct soap *soap, PTZBindingService *service)
{ struct __tptz__GetPresetTour soap_tmp___tptz__GetPresetTour;
_tptz__GetPresetTourResponse tptz__GetPresetTourResponse;
tptz__GetPresetTourResponse.soap_default(soap);
soap_default___tptz__GetPresetTour(soap, &soap_tmp___tptz__GetPresetTour);
if (!soap_get___tptz__GetPresetTour(soap, &soap_tmp___tptz__GetPresetTour, "-tptz:GetPresetTour", NULL))
return soap->error;
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap->error;
soap->error = service->GetPresetTour(soap_tmp___tptz__GetPresetTour.tptz__GetPresetTour, tptz__GetPresetTourResponse);
if (soap->error)
return soap->error;
soap->encodingStyle = NULL; /* use SOAP literal style */
soap_serializeheader(soap);
tptz__GetPresetTourResponse.soap_serialize(soap);
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)
|| tptz__GetPresetTourResponse.soap_put(soap, "tptz:GetPresetTourResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap))
return soap->error;
};
if (soap_end_count(soap)
|| soap_response(soap, SOAP_OK)
|| soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| tptz__GetPresetTourResponse.soap_put(soap, "tptz:GetPresetTourResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap->error;
return soap_closesock(soap);
}
static int serve___tptz__GetPresetTourOptions(struct soap *soap, PTZBindingService *service)
{ struct __tptz__GetPresetTourOptions soap_tmp___tptz__GetPresetTourOptions;
_tptz__GetPresetTourOptionsResponse tptz__GetPresetTourOptionsResponse;
tptz__GetPresetTourOptionsResponse.soap_default(soap);
soap_default___tptz__GetPresetTourOptions(soap, &soap_tmp___tptz__GetPresetTourOptions);
if (!soap_get___tptz__GetPresetTourOptions(soap, &soap_tmp___tptz__GetPresetTourOptions, "-tptz:GetPresetTourOptions", NULL))
return soap->error;
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap->error;
soap->error = service->GetPresetTourOptions(soap_tmp___tptz__GetPresetTourOptions.tptz__GetPresetTourOptions, tptz__GetPresetTourOptionsResponse);
if (soap->error)
return soap->error;
soap->encodingStyle = NULL; /* use SOAP literal style */
soap_serializeheader(soap);
tptz__GetPresetTourOptionsResponse.soap_serialize(soap);
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)
|| tptz__GetPresetTourOptionsResponse.soap_put(soap, "tptz:GetPresetTourOptionsResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap))
return soap->error;
};
if (soap_end_count(soap)
|| soap_response(soap, SOAP_OK)
|| soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| tptz__GetPresetTourOptionsResponse.soap_put(soap, "tptz:GetPresetTourOptionsResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap->error;
return soap_closesock(soap);
}
static int serve___tptz__CreatePresetTour(struct soap *soap, PTZBindingService *service)
{ struct __tptz__CreatePresetTour soap_tmp___tptz__CreatePresetTour;
_tptz__CreatePresetTourResponse tptz__CreatePresetTourResponse;
tptz__CreatePresetTourResponse.soap_default(soap);
soap_default___tptz__CreatePresetTour(soap, &soap_tmp___tptz__CreatePresetTour);
if (!soap_get___tptz__CreatePresetTour(soap, &soap_tmp___tptz__CreatePresetTour, "-tptz:CreatePresetTour", NULL))
return soap->error;
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap->error;
soap->error = service->CreatePresetTour(soap_tmp___tptz__CreatePresetTour.tptz__CreatePresetTour, tptz__CreatePresetTourResponse);
if (soap->error)
return soap->error;
soap->encodingStyle = NULL; /* use SOAP literal style */
soap_serializeheader(soap);
tptz__CreatePresetTourResponse.soap_serialize(soap);
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)
|| tptz__CreatePresetTourResponse.soap_put(soap, "tptz:CreatePresetTourResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap))
return soap->error;
};
if (soap_end_count(soap)
|| soap_response(soap, SOAP_OK)
|| soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| tptz__CreatePresetTourResponse.soap_put(soap, "tptz:CreatePresetTourResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap->error;
return soap_closesock(soap);
}
static int serve___tptz__ModifyPresetTour(struct soap *soap, PTZBindingService *service)
{ struct __tptz__ModifyPresetTour soap_tmp___tptz__ModifyPresetTour;
_tptz__ModifyPresetTourResponse tptz__ModifyPresetTourResponse;
tptz__ModifyPresetTourResponse.soap_default(soap);
soap_default___tptz__ModifyPresetTour(soap, &soap_tmp___tptz__ModifyPresetTour);
if (!soap_get___tptz__ModifyPresetTour(soap, &soap_tmp___tptz__ModifyPresetTour, "-tptz:ModifyPresetTour", NULL))
return soap->error;
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap->error;
soap->error = service->ModifyPresetTour(soap_tmp___tptz__ModifyPresetTour.tptz__ModifyPresetTour, tptz__ModifyPresetTourResponse);
if (soap->error)
return soap->error;
soap->encodingStyle = NULL; /* use SOAP literal style */
soap_serializeheader(soap);
tptz__ModifyPresetTourResponse.soap_serialize(soap);
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)
|| tptz__ModifyPresetTourResponse.soap_put(soap, "tptz:ModifyPresetTourResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap))
return soap->error;
};
if (soap_end_count(soap)
|| soap_response(soap, SOAP_OK)
|| soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| tptz__ModifyPresetTourResponse.soap_put(soap, "tptz:ModifyPresetTourResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap->error;
return soap_closesock(soap);
}
static int serve___tptz__OperatePresetTour(struct soap *soap, PTZBindingService *service)
{ struct __tptz__OperatePresetTour soap_tmp___tptz__OperatePresetTour;
_tptz__OperatePresetTourResponse tptz__OperatePresetTourResponse;
tptz__OperatePresetTourResponse.soap_default(soap);
soap_default___tptz__OperatePresetTour(soap, &soap_tmp___tptz__OperatePresetTour);
if (!soap_get___tptz__OperatePresetTour(soap, &soap_tmp___tptz__OperatePresetTour, "-tptz:OperatePresetTour", NULL))
return soap->error;
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap->error;
soap->error = service->OperatePresetTour(soap_tmp___tptz__OperatePresetTour.tptz__OperatePresetTour, tptz__OperatePresetTourResponse);
if (soap->error)
return soap->error;
soap->encodingStyle = NULL; /* use SOAP literal style */
soap_serializeheader(soap);
tptz__OperatePresetTourResponse.soap_serialize(soap);
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)
|| tptz__OperatePresetTourResponse.soap_put(soap, "tptz:OperatePresetTourResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap))
return soap->error;
};
if (soap_end_count(soap)
|| soap_response(soap, SOAP_OK)
|| soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| tptz__OperatePresetTourResponse.soap_put(soap, "tptz:OperatePresetTourResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap->error;
return soap_closesock(soap);
}
static int serve___tptz__RemovePresetTour(struct soap *soap, PTZBindingService *service)
{ struct __tptz__RemovePresetTour soap_tmp___tptz__RemovePresetTour;
_tptz__RemovePresetTourResponse tptz__RemovePresetTourResponse;
tptz__RemovePresetTourResponse.soap_default(soap);
soap_default___tptz__RemovePresetTour(soap, &soap_tmp___tptz__RemovePresetTour);
if (!soap_get___tptz__RemovePresetTour(soap, &soap_tmp___tptz__RemovePresetTour, "-tptz:RemovePresetTour", NULL))
return soap->error;
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap->error;
soap->error = service->RemovePresetTour(soap_tmp___tptz__RemovePresetTour.tptz__RemovePresetTour, tptz__RemovePresetTourResponse);
if (soap->error)
return soap->error;
soap->encodingStyle = NULL; /* use SOAP literal style */
soap_serializeheader(soap);
tptz__RemovePresetTourResponse.soap_serialize(soap);
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)
|| tptz__RemovePresetTourResponse.soap_put(soap, "tptz:RemovePresetTourResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap))
return soap->error;
};
if (soap_end_count(soap)
|| soap_response(soap, SOAP_OK)
|| soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| tptz__RemovePresetTourResponse.soap_put(soap, "tptz:RemovePresetTourResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap->error;
return soap_closesock(soap);
}
static int serve___tptz__GetCompatibleConfigurations(struct soap *soap, PTZBindingService *service)
{ struct __tptz__GetCompatibleConfigurations soap_tmp___tptz__GetCompatibleConfigurations;
_tptz__GetCompatibleConfigurationsResponse tptz__GetCompatibleConfigurationsResponse;
tptz__GetCompatibleConfigurationsResponse.soap_default(soap);
soap_default___tptz__GetCompatibleConfigurations(soap, &soap_tmp___tptz__GetCompatibleConfigurations);
if (!soap_get___tptz__GetCompatibleConfigurations(soap, &soap_tmp___tptz__GetCompatibleConfigurations, "-tptz:GetCompatibleConfigurations", NULL))
return soap->error;
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap->error;
soap->error = service->GetCompatibleConfigurations(soap_tmp___tptz__GetCompatibleConfigurations.tptz__GetCompatibleConfigurations, tptz__GetCompatibleConfigurationsResponse);
if (soap->error)
return soap->error;
soap->encodingStyle = NULL; /* use SOAP literal style */
soap_serializeheader(soap);
tptz__GetCompatibleConfigurationsResponse.soap_serialize(soap);
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)
|| tptz__GetCompatibleConfigurationsResponse.soap_put(soap, "tptz:GetCompatibleConfigurationsResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap))
return soap->error;
};
if (soap_end_count(soap)
|| soap_response(soap, SOAP_OK)
|| soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| tptz__GetCompatibleConfigurationsResponse.soap_put(soap, "tptz:GetCompatibleConfigurationsResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap->error;
return soap_closesock(soap);
}
/* End of server object code */