You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1420 lines
54 KiB

/* soapPTZBindingService.cpp
Generated by gSOAP 2.8.17r from onvif.h
Copyright(C) 2000-2013, Robert van Engelen, Genivia Inc. All Rights Reserved.
The generated code is released under one of the following licenses:
GPL or Genivia's license for commercial use.
This program is released under the GPL with the additional exemption that
compiling, linking, and/or using OpenSSL is allowed.
*/
#include "soapPTZBindingService.h"
PTZBindingService::PTZBindingService()
{ PTZBindingService_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
}
PTZBindingService::PTZBindingService(const struct soap &_soap) : soap(_soap)
{ }
PTZBindingService::PTZBindingService(soap_mode iomode)
{ PTZBindingService_init(iomode, iomode);
}
PTZBindingService::PTZBindingService(soap_mode imode, soap_mode omode)
{ PTZBindingService_init(imode, omode);
}
PTZBindingService::~PTZBindingService()
{ }
void PTZBindingService::PTZBindingService_init(soap_mode imode, soap_mode omode)
{ soap_imode(this, imode);
soap_omode(this, 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},
{"c14n", "http://www.w3.org/2001/10/xml-exc-c14n#", NULL, NULL},
{"wsu", "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd", NULL, NULL},
{"xenc", "http://www.w3.org/2001/04/xmlenc#", NULL, NULL},
{"wsc", "http://schemas.xmlsoap.org/ws/2005/02/sc", NULL, NULL},
{"ds", "http://www.w3.org/2000/09/xmldsig#", NULL, NULL},
{"wsse", "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd", "http://docs.oasis-open.org/wss/oasis-wss-wssecurity-secext-1.1.xsd", NULL},
{"wsa", "http://schemas.xmlsoap.org/ws/2004/08/addressing", NULL, NULL},
{"wsdd", "http://schemas.xmlsoap.org/ws/2005/04/discovery", NULL, NULL},
{"chan", "http://schemas.microsoft.com/ws/2005/02/duplex", NULL, NULL},
{"wsa5", "http://www.w3.org/2005/08/addressing", "http://schemas.xmlsoap.org/ws/2004/08/addressing", NULL},
{"xmime", "http://tempuri.org/xmime.xsd", NULL, NULL},
{"xop", "http://www.w3.org/2004/08/xop/include", NULL, NULL},
{"tt", "http://www.onvif.org/ver10/schema", NULL, NULL},
{"wsrfbf", "http://docs.oasis-open.org/wsrf/bf-2", NULL, NULL},
{"wstop", "http://docs.oasis-open.org/wsn/t-1", NULL, NULL},
{"wsrfr", "http://docs.oasis-open.org/wsrf/r-2", NULL, NULL},
{"tdn", "http://www.onvif.org/ver10/network/wsdl", NULL, NULL},
{"tds", "http://www.onvif.org/ver10/device/wsdl", NULL, NULL},
{"tev", "http://www.onvif.org/ver10/events/wsdl", NULL, NULL},
{"wsnt", "http://docs.oasis-open.org/wsn/b-2", NULL, NULL},
{"timg", "http://www.onvif.org/ver20/imaging/wsdl", NULL, NULL},
{"tls", "http://www.onvif.org/ver10/display/wsdl", NULL, NULL},
{"tmd", "http://www.onvif.org/ver10/deviceIO/wsdl", NULL, NULL},
{"tptz", "http://www.onvif.org/ver20/ptz/wsdl", NULL, NULL},
{"trc", "http://www.onvif.org/ver10/recording/wsdl", NULL, NULL},
{"trp", "http://www.onvif.org/ver10/replay/wsdl", NULL, NULL},
{"trt", "http://www.onvif.org/ver10/media/wsdl", NULL, NULL},
{"trv", "http://www.onvif.org/ver10/receiver/wsdl", NULL, NULL},
{"tse", "http://www.onvif.org/ver10/search/wsdl", NULL, NULL},
{NULL, NULL, NULL, NULL}
};
soap_set_namespaces(this, namespaces);
}
void PTZBindingService::destroy()
{ soap_destroy(this);
soap_end(this);
}
void PTZBindingService::reset()
{ destroy();
soap_done(this);
soap_initialize(this);
PTZBindingService_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
}
#ifndef WITH_PURE_VIRTUAL
PTZBindingService *PTZBindingService::copy()
{ PTZBindingService *dup = SOAP_NEW_COPY(PTZBindingService(*(struct soap*)this));
return dup;
}
#endif
int PTZBindingService::soap_close_socket()
{ return soap_closesock(this);
}
int PTZBindingService::soap_force_close_socket()
{ return soap_force_closesock(this);
}
int PTZBindingService::soap_senderfault(const char *string, const char *detailXML)
{ return ::soap_sender_fault(this, string, detailXML);
}
int PTZBindingService::soap_senderfault(const char *subcodeQName, const char *string, const char *detailXML)
{ return ::soap_sender_fault_subcode(this, subcodeQName, string, detailXML);
}
int PTZBindingService::soap_receiverfault(const char *string, const char *detailXML)
{ return ::soap_receiver_fault(this, string, detailXML);
}
int PTZBindingService::soap_receiverfault(const char *subcodeQName, const char *string, const char *detailXML)
{ return ::soap_receiver_fault_subcode(this, subcodeQName, string, detailXML);
}
void PTZBindingService::soap_print_fault(FILE *fd)
{ ::soap_print_fault(this, fd);
}
#ifndef WITH_LEAN
#ifndef WITH_COMPAT
void PTZBindingService::soap_stream_fault(std::ostream& os)
{ ::soap_stream_fault(this, os);
}
#endif
char *PTZBindingService::soap_sprint_fault(char *buf, size_t len)
{ return ::soap_sprint_fault(this, buf, len);
}
#endif
void PTZBindingService::soap_noheader()
{ this->header = NULL;
}
void PTZBindingService::soap_header(struct _wsse__Security *wsse__Security, char *wsa__MessageID, struct wsa__Relationship *wsa__RelatesTo, struct wsa__EndpointReferenceType *wsa__From, struct wsa__EndpointReferenceType *wsa__ReplyTo, struct wsa__EndpointReferenceType *wsa__FaultTo, char *wsa__To, char *wsa__Action, struct wsdd__AppSequenceType *wsdd__AppSequence, char *wsa5__MessageID, struct wsa5__RelatesToType *wsa5__RelatesTo, struct wsa5__EndpointReferenceType *wsa5__From, struct wsa5__EndpointReferenceType *wsa5__ReplyTo, struct wsa5__EndpointReferenceType *wsa5__FaultTo, char *wsa5__To, char *wsa5__Action, struct chan__ChannelInstanceType *chan__ChannelInstance)
{ ::soap_header(this);
this->header->wsse__Security = wsse__Security;
this->header->wsa__MessageID = wsa__MessageID;
this->header->wsa__RelatesTo = wsa__RelatesTo;
this->header->wsa__From = wsa__From;
this->header->wsa__ReplyTo = wsa__ReplyTo;
this->header->wsa__FaultTo = wsa__FaultTo;
this->header->wsa__To = wsa__To;
this->header->wsa__Action = wsa__Action;
this->header->wsdd__AppSequence = wsdd__AppSequence;
this->header->wsa5__MessageID = wsa5__MessageID;
this->header->wsa5__RelatesTo = wsa5__RelatesTo;
this->header->wsa5__From = wsa5__From;
this->header->wsa5__ReplyTo = wsa5__ReplyTo;
this->header->wsa5__FaultTo = wsa5__FaultTo;
this->header->wsa5__To = wsa5__To;
this->header->wsa5__Action = wsa5__Action;
this->header->chan__ChannelInstance = chan__ChannelInstance;
}
const SOAP_ENV__Header *PTZBindingService::soap_header()
{ return this->header;
}
int PTZBindingService::run(int port)
{ if (soap_valid_socket(this->master) || soap_valid_socket(bind(NULL, port, 100)))
{ for (;;)
{ if (!soap_valid_socket(accept()) || serve())
return this->error;
soap_destroy(this);
soap_end(this);
}
}
else
return this->error;
return SOAP_OK;
}
SOAP_SOCKET PTZBindingService::bind(const char *host, int port, int backlog)
{ return soap_bind(this, host, port, backlog);
}
SOAP_SOCKET PTZBindingService::accept()
{ return soap_accept(this);
}
#if defined(WITH_OPENSSL) || defined(WITH_GNUTLS)
int PTZBindingService::ssl_accept()
{ return soap_ssl_accept(this);
}
#endif
int PTZBindingService::serve()
{
#ifndef WITH_FASTCGI
unsigned int k = this->max_keep_alive;
#endif
do
{
#ifndef WITH_FASTCGI
if (this->max_keep_alive > 0 && !--k)
this->keep_alive = 0;
#endif
if (soap_begin_serve(this))
{ if (this->error >= SOAP_STOP)
continue;
return this->error;
}
if (dispatch() || (this->fserveloop && this->fserveloop(this)))
{
#ifdef WITH_FASTCGI
soap_send_fault(this);
#else
return soap_send_fault(this);
#endif
}
#ifdef WITH_FASTCGI
soap_destroy(this);
soap_end(this);
} while (1);
#else
} while (this->keep_alive);
#endif
return SOAP_OK;
}
static int serve___tptz__GetServiceCapabilities(PTZBindingService*);
static int serve___tptz__GetConfigurations(PTZBindingService*);
static int serve___tptz__GetPresets(PTZBindingService*);
static int serve___tptz__SetPreset(PTZBindingService*);
static int serve___tptz__RemovePreset(PTZBindingService*);
static int serve___tptz__GotoPreset(PTZBindingService*);
static int serve___tptz__GetStatus(PTZBindingService*);
static int serve___tptz__GetConfiguration(PTZBindingService*);
static int serve___tptz__GetNodes(PTZBindingService*);
static int serve___tptz__GetNode(PTZBindingService*);
static int serve___tptz__SetConfiguration(PTZBindingService*);
static int serve___tptz__GetConfigurationOptions(PTZBindingService*);
static int serve___tptz__GotoHomePosition(PTZBindingService*);
static int serve___tptz__SetHomePosition(PTZBindingService*);
static int serve___tptz__ContinuousMove(PTZBindingService*);
static int serve___tptz__RelativeMove(PTZBindingService*);
static int serve___tptz__SendAuxiliaryCommand(PTZBindingService*);
static int serve___tptz__AbsoluteMove(PTZBindingService*);
static int serve___tptz__Stop(PTZBindingService*);
static int serve___tptz__GetPresetTours(PTZBindingService*);
static int serve___tptz__GetPresetTour(PTZBindingService*);
static int serve___tptz__GetPresetTourOptions(PTZBindingService*);
static int serve___tptz__CreatePresetTour(PTZBindingService*);
static int serve___tptz__ModifyPresetTour(PTZBindingService*);
static int serve___tptz__OperatePresetTour(PTZBindingService*);
static int serve___tptz__RemovePresetTour(PTZBindingService*);
static int serve___tptz__GetCompatibleConfigurations(PTZBindingService*);
int PTZBindingService::dispatch()
{ soap_peek_element(this);
if (!soap_match_tag(this, this->tag, "tptz:GetServiceCapabilities"))
return serve___tptz__GetServiceCapabilities(this);
if (!soap_match_tag(this, this->tag, "tptz:GetConfigurations"))
return serve___tptz__GetConfigurations(this);
if (!soap_match_tag(this, this->tag, "tptz:GetPresets"))
return serve___tptz__GetPresets(this);
if (!soap_match_tag(this, this->tag, "tptz:SetPreset"))
return serve___tptz__SetPreset(this);
if (!soap_match_tag(this, this->tag, "tptz:RemovePreset"))
return serve___tptz__RemovePreset(this);
if (!soap_match_tag(this, this->tag, "tptz:GotoPreset"))
return serve___tptz__GotoPreset(this);
if (!soap_match_tag(this, this->tag, "tptz:GetStatus"))
return serve___tptz__GetStatus(this);
if (!soap_match_tag(this, this->tag, "tptz:GetConfiguration"))
return serve___tptz__GetConfiguration(this);
if (!soap_match_tag(this, this->tag, "tptz:GetNodes"))
return serve___tptz__GetNodes(this);
if (!soap_match_tag(this, this->tag, "tptz:GetNode"))
return serve___tptz__GetNode(this);
if (!soap_match_tag(this, this->tag, "tptz:SetConfiguration"))
return serve___tptz__SetConfiguration(this);
if (!soap_match_tag(this, this->tag, "tptz:GetConfigurationOptions"))
return serve___tptz__GetConfigurationOptions(this);
if (!soap_match_tag(this, this->tag, "tptz:GotoHomePosition"))
return serve___tptz__GotoHomePosition(this);
if (!soap_match_tag(this, this->tag, "tptz:SetHomePosition"))
return serve___tptz__SetHomePosition(this);
if (!soap_match_tag(this, this->tag, "tptz:ContinuousMove"))
return serve___tptz__ContinuousMove(this);
if (!soap_match_tag(this, this->tag, "tptz:RelativeMove"))
return serve___tptz__RelativeMove(this);
if (!soap_match_tag(this, this->tag, "tptz:SendAuxiliaryCommand"))
return serve___tptz__SendAuxiliaryCommand(this);
if (!soap_match_tag(this, this->tag, "tptz:AbsoluteMove"))
return serve___tptz__AbsoluteMove(this);
if (!soap_match_tag(this, this->tag, "tptz:Stop"))
return serve___tptz__Stop(this);
if (!soap_match_tag(this, this->tag, "tptz:GetPresetTours"))
return serve___tptz__GetPresetTours(this);
if (!soap_match_tag(this, this->tag, "tptz:GetPresetTour"))
return serve___tptz__GetPresetTour(this);
if (!soap_match_tag(this, this->tag, "tptz:GetPresetTourOptions"))
return serve___tptz__GetPresetTourOptions(this);
if (!soap_match_tag(this, this->tag, "tptz:CreatePresetTour"))
return serve___tptz__CreatePresetTour(this);
if (!soap_match_tag(this, this->tag, "tptz:ModifyPresetTour"))
return serve___tptz__ModifyPresetTour(this);
if (!soap_match_tag(this, this->tag, "tptz:OperatePresetTour"))
return serve___tptz__OperatePresetTour(this);
if (!soap_match_tag(this, this->tag, "tptz:RemovePresetTour"))
return serve___tptz__RemovePresetTour(this);
if (!soap_match_tag(this, this->tag, "tptz:GetCompatibleConfigurations"))
return serve___tptz__GetCompatibleConfigurations(this);
return this->error = SOAP_NO_METHOD;
}
static int serve___tptz__GetServiceCapabilities(PTZBindingService *soap)
{ 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 = soap->GetServiceCapabilities(soap_tmp___tptz__GetServiceCapabilities.tptz__GetServiceCapabilities, &tptz__GetServiceCapabilitiesResponse);
if (soap->error)
return soap->error;
soap->encodingStyle = NULL;
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(PTZBindingService *soap)
{ 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 = soap->GetConfigurations(soap_tmp___tptz__GetConfigurations.tptz__GetConfigurations, &tptz__GetConfigurationsResponse);
if (soap->error)
return soap->error;
soap->encodingStyle = NULL;
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(PTZBindingService *soap)
{ 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 = soap->GetPresets(soap_tmp___tptz__GetPresets.tptz__GetPresets, &tptz__GetPresetsResponse);
if (soap->error)
return soap->error;
soap->encodingStyle = NULL;
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(PTZBindingService *soap)
{ 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 = soap->SetPreset(soap_tmp___tptz__SetPreset.tptz__SetPreset, &tptz__SetPresetResponse);
if (soap->error)
return soap->error;
soap->encodingStyle = NULL;
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(PTZBindingService *soap)
{ 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 = soap->RemovePreset(soap_tmp___tptz__RemovePreset.tptz__RemovePreset, &tptz__RemovePresetResponse);
if (soap->error)
return soap->error;
soap->encodingStyle = NULL;
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(PTZBindingService *soap)
{ 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 = soap->GotoPreset(soap_tmp___tptz__GotoPreset.tptz__GotoPreset, &tptz__GotoPresetResponse);
if (soap->error)
return soap->error;
soap->encodingStyle = NULL;
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(PTZBindingService *soap)
{ 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 = soap->GetStatus(soap_tmp___tptz__GetStatus.tptz__GetStatus, &tptz__GetStatusResponse);
if (soap->error)
return soap->error;
soap->encodingStyle = NULL;
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(PTZBindingService *soap)
{ 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 = soap->GetConfiguration(soap_tmp___tptz__GetConfiguration.tptz__GetConfiguration, &tptz__GetConfigurationResponse);
if (soap->error)
return soap->error;
soap->encodingStyle = NULL;
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(PTZBindingService *soap)
{ 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 = soap->GetNodes(soap_tmp___tptz__GetNodes.tptz__GetNodes, &tptz__GetNodesResponse);
if (soap->error)
return soap->error;
soap->encodingStyle = NULL;
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(PTZBindingService *soap)
{ 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 = soap->GetNode(soap_tmp___tptz__GetNode.tptz__GetNode, &tptz__GetNodeResponse);
if (soap->error)
return soap->error;
soap->encodingStyle = NULL;
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(PTZBindingService *soap)
{ 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 = soap->SetConfiguration(soap_tmp___tptz__SetConfiguration.tptz__SetConfiguration, &tptz__SetConfigurationResponse);
if (soap->error)
return soap->error;
soap->encodingStyle = NULL;
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(PTZBindingService *soap)
{ 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 = soap->GetConfigurationOptions(soap_tmp___tptz__GetConfigurationOptions.tptz__GetConfigurationOptions, &tptz__GetConfigurationOptionsResponse);
if (soap->error)
return soap->error;
soap->encodingStyle = NULL;
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(PTZBindingService *soap)
{ 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 = soap->GotoHomePosition(soap_tmp___tptz__GotoHomePosition.tptz__GotoHomePosition, &tptz__GotoHomePositionResponse);
if (soap->error)
return soap->error;
soap->encodingStyle = NULL;
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(PTZBindingService *soap)
{ 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 = soap->SetHomePosition(soap_tmp___tptz__SetHomePosition.tptz__SetHomePosition, &tptz__SetHomePositionResponse);
if (soap->error)
return soap->error;
soap->encodingStyle = NULL;
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(PTZBindingService *soap)
{ 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 = soap->ContinuousMove(soap_tmp___tptz__ContinuousMove.tptz__ContinuousMove, &tptz__ContinuousMoveResponse);
if (soap->error)
return soap->error;
soap->encodingStyle = NULL;
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(PTZBindingService *soap)
{ 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 = soap->RelativeMove(soap_tmp___tptz__RelativeMove.tptz__RelativeMove, &tptz__RelativeMoveResponse);
if (soap->error)
return soap->error;
soap->encodingStyle = NULL;
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(PTZBindingService *soap)
{ 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 = soap->SendAuxiliaryCommand(soap_tmp___tptz__SendAuxiliaryCommand.tptz__SendAuxiliaryCommand, &tptz__SendAuxiliaryCommandResponse);
if (soap->error)
return soap->error;
soap->encodingStyle = NULL;
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(PTZBindingService *soap)
{ 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 = soap->AbsoluteMove(soap_tmp___tptz__AbsoluteMove.tptz__AbsoluteMove, &tptz__AbsoluteMoveResponse);
if (soap->error)
return soap->error;
soap->encodingStyle = NULL;
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(PTZBindingService *soap)
{ 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 = soap->Stop(soap_tmp___tptz__Stop.tptz__Stop, &tptz__StopResponse);
if (soap->error)
return soap->error;
soap->encodingStyle = NULL;
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(PTZBindingService *soap)
{ 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 = soap->GetPresetTours(soap_tmp___tptz__GetPresetTours.tptz__GetPresetTours, &tptz__GetPresetToursResponse);
if (soap->error)
return soap->error;
soap->encodingStyle = NULL;
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(PTZBindingService *soap)
{ 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 = soap->GetPresetTour(soap_tmp___tptz__GetPresetTour.tptz__GetPresetTour, &tptz__GetPresetTourResponse);
if (soap->error)
return soap->error;
soap->encodingStyle = NULL;
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(PTZBindingService *soap)
{ 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 = soap->GetPresetTourOptions(soap_tmp___tptz__GetPresetTourOptions.tptz__GetPresetTourOptions, &tptz__GetPresetTourOptionsResponse);
if (soap->error)
return soap->error;
soap->encodingStyle = NULL;
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(PTZBindingService *soap)
{ 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 = soap->CreatePresetTour(soap_tmp___tptz__CreatePresetTour.tptz__CreatePresetTour, &tptz__CreatePresetTourResponse);
if (soap->error)
return soap->error;
soap->encodingStyle = NULL;
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(PTZBindingService *soap)
{ 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 = soap->ModifyPresetTour(soap_tmp___tptz__ModifyPresetTour.tptz__ModifyPresetTour, &tptz__ModifyPresetTourResponse);
if (soap->error)
return soap->error;
soap->encodingStyle = NULL;
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(PTZBindingService *soap)
{ 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 = soap->OperatePresetTour(soap_tmp___tptz__OperatePresetTour.tptz__OperatePresetTour, &tptz__OperatePresetTourResponse);
if (soap->error)
return soap->error;
soap->encodingStyle = NULL;
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(PTZBindingService *soap)
{ 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 = soap->RemovePresetTour(soap_tmp___tptz__RemovePresetTour.tptz__RemovePresetTour, &tptz__RemovePresetTourResponse);
if (soap->error)
return soap->error;
soap->encodingStyle = NULL;
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(PTZBindingService *soap)
{ 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 = soap->GetCompatibleConfigurations(soap_tmp___tptz__GetCompatibleConfigurations.tptz__GetCompatibleConfigurations, &tptz__GetCompatibleConfigurationsResponse);
if (soap->error)
return soap->error;
soap->encodingStyle = NULL;
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 */