|
|
/* soapImagingBindingProxy.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 thatcompiling, linking, and/or using OpenSSL is allowed.*/
#include "soapImagingBindingProxy.h"
ImagingBindingProxy::ImagingBindingProxy(){ ImagingBindingProxy_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);}
ImagingBindingProxy::ImagingBindingProxy(const struct soap &_soap) : soap(_soap){ }
ImagingBindingProxy::ImagingBindingProxy(const char *url){ ImagingBindingProxy_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT); soap_endpoint = url;}
ImagingBindingProxy::ImagingBindingProxy(soap_mode iomode){ ImagingBindingProxy_init(iomode, iomode);}
ImagingBindingProxy::ImagingBindingProxy(const char *url, soap_mode iomode){ ImagingBindingProxy_init(iomode, iomode); soap_endpoint = url;}
ImagingBindingProxy::ImagingBindingProxy(soap_mode imode, soap_mode omode){ ImagingBindingProxy_init(imode, omode);}
ImagingBindingProxy::~ImagingBindingProxy(){ }
void ImagingBindingProxy::ImagingBindingProxy_init(soap_mode imode, soap_mode omode){ soap_imode(this, imode); soap_omode(this, omode); soap_endpoint = NULL; static const struct Namespace namespaces[] ={ {"SOAP-ENV", "http://www.w3.org/2003/05/soap-envelope", "http://schemas.xmlsoap.org/soap/envelope/", NULL}, {"SOAP-ENC", "http://www.w3.org/2003/05/soap-encoding", "http://schemas.xmlsoap.org/soap/encoding/", NULL}, {"xsi", "http://www.w3.org/2001/XMLSchema-instance", "http://www.w3.org/*/XMLSchema-instance", NULL}, {"xsd", "http://www.w3.org/2001/XMLSchema", "http://www.w3.org/*/XMLSchema", NULL}, {"c14n", "http://www.w3.org/2001/10/xml-exc-c14n#", NULL, NULL}, {"wsu", "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd", NULL, NULL}, {"xenc", "http://www.w3.org/2001/04/xmlenc#", NULL, NULL}, {"wsc", "http://schemas.xmlsoap.org/ws/2005/02/sc", NULL, NULL}, {"ds", "http://www.w3.org/2000/09/xmldsig#", NULL, NULL}, {"wsse", "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd", "http://docs.oasis-open.org/wss/oasis-wss-wssecurity-secext-1.1.xsd", NULL}, {"wsa", "http://schemas.xmlsoap.org/ws/2004/08/addressing", NULL, NULL}, {"wsdd", "http://schemas.xmlsoap.org/ws/2005/04/discovery", NULL, NULL}, {"chan", "http://schemas.microsoft.com/ws/2005/02/duplex", NULL, NULL}, {"wsa5", "http://www.w3.org/2005/08/addressing", "http://schemas.xmlsoap.org/ws/2004/08/addressing", NULL}, {"xmime", "http://tempuri.org/xmime.xsd", NULL, NULL}, {"xop", "http://www.w3.org/2004/08/xop/include", NULL, NULL}, {"tt", "http://www.onvif.org/ver10/schema", NULL, NULL}, {"wsrfbf", "http://docs.oasis-open.org/wsrf/bf-2", NULL, NULL}, {"wstop", "http://docs.oasis-open.org/wsn/t-1", NULL, NULL}, {"wsrfr", "http://docs.oasis-open.org/wsrf/r-2", NULL, NULL}, {"tdn", "http://www.onvif.org/ver10/network/wsdl", NULL, NULL}, {"tds", "http://www.onvif.org/ver10/device/wsdl", NULL, NULL}, {"tev", "http://www.onvif.org/ver10/events/wsdl", NULL, NULL}, {"wsnt", "http://docs.oasis-open.org/wsn/b-2", NULL, NULL}, {"timg", "http://www.onvif.org/ver20/imaging/wsdl", NULL, NULL}, {"tls", "http://www.onvif.org/ver10/display/wsdl", NULL, NULL}, {"tmd", "http://www.onvif.org/ver10/deviceIO/wsdl", NULL, NULL}, {"tptz", "http://www.onvif.org/ver20/ptz/wsdl", NULL, NULL}, {"trc", "http://www.onvif.org/ver10/recording/wsdl", NULL, NULL}, {"trp", "http://www.onvif.org/ver10/replay/wsdl", NULL, NULL}, {"trt", "http://www.onvif.org/ver10/media/wsdl", NULL, NULL}, {"trv", "http://www.onvif.org/ver10/receiver/wsdl", NULL, NULL}, {"tse", "http://www.onvif.org/ver10/search/wsdl", NULL, NULL}, {NULL, NULL, NULL, NULL}}; soap_set_namespaces(this, namespaces);}
void ImagingBindingProxy::destroy(){ soap_destroy(this); soap_end(this);}
void ImagingBindingProxy::reset(){ destroy(); soap_done(this); soap_initialize(this); ImagingBindingProxy_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);}
void ImagingBindingProxy::soap_noheader(){ this->header = NULL;}
void ImagingBindingProxy::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 *ImagingBindingProxy::soap_header(){ return this->header;}
const SOAP_ENV__Fault *ImagingBindingProxy::soap_fault(){ return this->fault;}
const char *ImagingBindingProxy::soap_fault_string(){ return *soap_faultstring(this);}
const char *ImagingBindingProxy::soap_fault_detail(){ return *soap_faultdetail(this);}
int ImagingBindingProxy::soap_close_socket(){ return soap_closesock(this);}
int ImagingBindingProxy::soap_force_close_socket(){ return soap_force_closesock(this);}
void ImagingBindingProxy::soap_print_fault(FILE *fd){ ::soap_print_fault(this, fd);}
#ifndef WITH_LEAN
#ifndef WITH_COMPAT
void ImagingBindingProxy::soap_stream_fault(std::ostream& os){ ::soap_stream_fault(this, os);}#endif
char *ImagingBindingProxy::soap_sprint_fault(char *buf, size_t len){ return ::soap_sprint_fault(this, buf, len);}#endif
int ImagingBindingProxy::GetServiceCapabilities(const char *endpoint, const char *soap_action, _timg__GetServiceCapabilities *timg__GetServiceCapabilities, _timg__GetServiceCapabilitiesResponse *timg__GetServiceCapabilitiesResponse){ struct soap *soap = this; struct __timg__GetServiceCapabilities soap_tmp___timg__GetServiceCapabilities; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver20/imaging/wsdl/GetServiceCapabilities"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___timg__GetServiceCapabilities.timg__GetServiceCapabilities = timg__GetServiceCapabilities; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___timg__GetServiceCapabilities(soap, &soap_tmp___timg__GetServiceCapabilities); if (soap_begin_count(soap)) return soap->error; if (soap->mode & SOAP_IO_LENGTH) { if (soap_envelope_begin_out(soap) || soap_putheader(soap) || soap_body_begin_out(soap) || soap_put___timg__GetServiceCapabilities(soap, &soap_tmp___timg__GetServiceCapabilities, "-timg:GetServiceCapabilities", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap)) return soap->error; } if (soap_end_count(soap)) return soap->error; if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action) || soap_envelope_begin_out(soap) || soap_putheader(soap) || soap_body_begin_out(soap) || soap_put___timg__GetServiceCapabilities(soap, &soap_tmp___timg__GetServiceCapabilities, "-timg:GetServiceCapabilities", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!timg__GetServiceCapabilitiesResponse) return soap_closesock(soap); timg__GetServiceCapabilitiesResponse->soap_default(soap); if (soap_begin_recv(soap) || soap_envelope_begin_in(soap) || soap_recv_header(soap) || soap_body_begin_in(soap)) return soap_closesock(soap); timg__GetServiceCapabilitiesResponse->soap_get(soap, "timg:GetServiceCapabilitiesResponse", ""); if (soap->error) return soap_recv_fault(soap, 0); if (soap_body_end_in(soap) || soap_envelope_end_in(soap) || soap_end_recv(soap)) return soap_closesock(soap); return soap_closesock(soap);}
int ImagingBindingProxy::GetImagingSettings(const char *endpoint, const char *soap_action, _timg__GetImagingSettings *timg__GetImagingSettings, _timg__GetImagingSettingsResponse *timg__GetImagingSettingsResponse){ struct soap *soap = this; struct __timg__GetImagingSettings soap_tmp___timg__GetImagingSettings; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver20/imaging/wsdl/GetImagingSettings"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___timg__GetImagingSettings.timg__GetImagingSettings = timg__GetImagingSettings; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___timg__GetImagingSettings(soap, &soap_tmp___timg__GetImagingSettings); if (soap_begin_count(soap)) return soap->error; if (soap->mode & SOAP_IO_LENGTH) { if (soap_envelope_begin_out(soap) || soap_putheader(soap) || soap_body_begin_out(soap) || soap_put___timg__GetImagingSettings(soap, &soap_tmp___timg__GetImagingSettings, "-timg:GetImagingSettings", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap)) return soap->error; } if (soap_end_count(soap)) return soap->error; if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action) || soap_envelope_begin_out(soap) || soap_putheader(soap) || soap_body_begin_out(soap) || soap_put___timg__GetImagingSettings(soap, &soap_tmp___timg__GetImagingSettings, "-timg:GetImagingSettings", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!timg__GetImagingSettingsResponse) return soap_closesock(soap); timg__GetImagingSettingsResponse->soap_default(soap); if (soap_begin_recv(soap) || soap_envelope_begin_in(soap) || soap_recv_header(soap) || soap_body_begin_in(soap)) return soap_closesock(soap); timg__GetImagingSettingsResponse->soap_get(soap, "timg:GetImagingSettingsResponse", ""); if (soap->error) return soap_recv_fault(soap, 0); if (soap_body_end_in(soap) || soap_envelope_end_in(soap) || soap_end_recv(soap)) return soap_closesock(soap); return soap_closesock(soap);}
int ImagingBindingProxy::SetImagingSettings(const char *endpoint, const char *soap_action, _timg__SetImagingSettings *timg__SetImagingSettings, _timg__SetImagingSettingsResponse *timg__SetImagingSettingsResponse){ struct soap *soap = this; struct __timg__SetImagingSettings soap_tmp___timg__SetImagingSettings; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver20/imaging/wsdl/SetImagingSettings"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___timg__SetImagingSettings.timg__SetImagingSettings = timg__SetImagingSettings; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___timg__SetImagingSettings(soap, &soap_tmp___timg__SetImagingSettings); if (soap_begin_count(soap)) return soap->error; if (soap->mode & SOAP_IO_LENGTH) { if (soap_envelope_begin_out(soap) || soap_putheader(soap) || soap_body_begin_out(soap) || soap_put___timg__SetImagingSettings(soap, &soap_tmp___timg__SetImagingSettings, "-timg:SetImagingSettings", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap)) return soap->error; } if (soap_end_count(soap)) return soap->error; if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action) || soap_envelope_begin_out(soap) || soap_putheader(soap) || soap_body_begin_out(soap) || soap_put___timg__SetImagingSettings(soap, &soap_tmp___timg__SetImagingSettings, "-timg:SetImagingSettings", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!timg__SetImagingSettingsResponse) return soap_closesock(soap); timg__SetImagingSettingsResponse->soap_default(soap); if (soap_begin_recv(soap) || soap_envelope_begin_in(soap) || soap_recv_header(soap) || soap_body_begin_in(soap)) return soap_closesock(soap); timg__SetImagingSettingsResponse->soap_get(soap, "timg:SetImagingSettingsResponse", ""); if (soap->error) return soap_recv_fault(soap, 0); if (soap_body_end_in(soap) || soap_envelope_end_in(soap) || soap_end_recv(soap)) return soap_closesock(soap); return soap_closesock(soap);}
int ImagingBindingProxy::GetOptions(const char *endpoint, const char *soap_action, _timg__GetOptions *timg__GetOptions, _timg__GetOptionsResponse *timg__GetOptionsResponse){ struct soap *soap = this; struct __timg__GetOptions soap_tmp___timg__GetOptions; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver20/imaging/wsdl/GetOptions"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___timg__GetOptions.timg__GetOptions = timg__GetOptions; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___timg__GetOptions(soap, &soap_tmp___timg__GetOptions); if (soap_begin_count(soap)) return soap->error; if (soap->mode & SOAP_IO_LENGTH) { if (soap_envelope_begin_out(soap) || soap_putheader(soap) || soap_body_begin_out(soap) || soap_put___timg__GetOptions(soap, &soap_tmp___timg__GetOptions, "-timg:GetOptions", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap)) return soap->error; } if (soap_end_count(soap)) return soap->error; if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action) || soap_envelope_begin_out(soap) || soap_putheader(soap) || soap_body_begin_out(soap) || soap_put___timg__GetOptions(soap, &soap_tmp___timg__GetOptions, "-timg:GetOptions", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!timg__GetOptionsResponse) return soap_closesock(soap); timg__GetOptionsResponse->soap_default(soap); if (soap_begin_recv(soap) || soap_envelope_begin_in(soap) || soap_recv_header(soap) || soap_body_begin_in(soap)) return soap_closesock(soap); timg__GetOptionsResponse->soap_get(soap, "timg:GetOptionsResponse", ""); if (soap->error) return soap_recv_fault(soap, 0); if (soap_body_end_in(soap) || soap_envelope_end_in(soap) || soap_end_recv(soap)) return soap_closesock(soap); return soap_closesock(soap);}
int ImagingBindingProxy::Move(const char *endpoint, const char *soap_action, _timg__Move *timg__Move, _timg__MoveResponse *timg__MoveResponse){ struct soap *soap = this; struct __timg__Move soap_tmp___timg__Move; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver20/imaging/wsdl/Move"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___timg__Move.timg__Move = timg__Move; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___timg__Move(soap, &soap_tmp___timg__Move); if (soap_begin_count(soap)) return soap->error; if (soap->mode & SOAP_IO_LENGTH) { if (soap_envelope_begin_out(soap) || soap_putheader(soap) || soap_body_begin_out(soap) || soap_put___timg__Move(soap, &soap_tmp___timg__Move, "-timg:Move", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap)) return soap->error; } if (soap_end_count(soap)) return soap->error; if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action) || soap_envelope_begin_out(soap) || soap_putheader(soap) || soap_body_begin_out(soap) || soap_put___timg__Move(soap, &soap_tmp___timg__Move, "-timg:Move", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!timg__MoveResponse) return soap_closesock(soap); timg__MoveResponse->soap_default(soap); if (soap_begin_recv(soap) || soap_envelope_begin_in(soap) || soap_recv_header(soap) || soap_body_begin_in(soap)) return soap_closesock(soap); timg__MoveResponse->soap_get(soap, "timg:MoveResponse", ""); if (soap->error) return soap_recv_fault(soap, 0); if (soap_body_end_in(soap) || soap_envelope_end_in(soap) || soap_end_recv(soap)) return soap_closesock(soap); return soap_closesock(soap);}
int ImagingBindingProxy::Stop(const char *endpoint, const char *soap_action, _timg__Stop *timg__Stop, _timg__StopResponse *timg__StopResponse){ struct soap *soap = this; struct __timg__Stop soap_tmp___timg__Stop; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver20/imaging/wsdl/FocusStop"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___timg__Stop.timg__Stop = timg__Stop; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___timg__Stop(soap, &soap_tmp___timg__Stop); if (soap_begin_count(soap)) return soap->error; if (soap->mode & SOAP_IO_LENGTH) { if (soap_envelope_begin_out(soap) || soap_putheader(soap) || soap_body_begin_out(soap) || soap_put___timg__Stop(soap, &soap_tmp___timg__Stop, "-timg:Stop", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap)) return soap->error; } if (soap_end_count(soap)) return soap->error; if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action) || soap_envelope_begin_out(soap) || soap_putheader(soap) || soap_body_begin_out(soap) || soap_put___timg__Stop(soap, &soap_tmp___timg__Stop, "-timg:Stop", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!timg__StopResponse) return soap_closesock(soap); timg__StopResponse->soap_default(soap); if (soap_begin_recv(soap) || soap_envelope_begin_in(soap) || soap_recv_header(soap) || soap_body_begin_in(soap)) return soap_closesock(soap); timg__StopResponse->soap_get(soap, "timg:StopResponse", ""); if (soap->error) return soap_recv_fault(soap, 0); if (soap_body_end_in(soap) || soap_envelope_end_in(soap) || soap_end_recv(soap)) return soap_closesock(soap); return soap_closesock(soap);}
int ImagingBindingProxy::GetStatus(const char *endpoint, const char *soap_action, _timg__GetStatus *timg__GetStatus, _timg__GetStatusResponse *timg__GetStatusResponse){ struct soap *soap = this; struct __timg__GetStatus soap_tmp___timg__GetStatus; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver20/imaging/wsdl/GetStatus"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___timg__GetStatus.timg__GetStatus = timg__GetStatus; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___timg__GetStatus(soap, &soap_tmp___timg__GetStatus); if (soap_begin_count(soap)) return soap->error; if (soap->mode & SOAP_IO_LENGTH) { if (soap_envelope_begin_out(soap) || soap_putheader(soap) || soap_body_begin_out(soap) || soap_put___timg__GetStatus(soap, &soap_tmp___timg__GetStatus, "-timg:GetStatus", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap)) return soap->error; } if (soap_end_count(soap)) return soap->error; if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action) || soap_envelope_begin_out(soap) || soap_putheader(soap) || soap_body_begin_out(soap) || soap_put___timg__GetStatus(soap, &soap_tmp___timg__GetStatus, "-timg:GetStatus", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!timg__GetStatusResponse) return soap_closesock(soap); timg__GetStatusResponse->soap_default(soap); if (soap_begin_recv(soap) || soap_envelope_begin_in(soap) || soap_recv_header(soap) || soap_body_begin_in(soap)) return soap_closesock(soap); timg__GetStatusResponse->soap_get(soap, "timg:GetStatusResponse", ""); if (soap->error) return soap_recv_fault(soap, 0); if (soap_body_end_in(soap) || soap_envelope_end_in(soap) || soap_end_recv(soap)) return soap_closesock(soap); return soap_closesock(soap);}
int ImagingBindingProxy::GetMoveOptions(const char *endpoint, const char *soap_action, _timg__GetMoveOptions *timg__GetMoveOptions, _timg__GetMoveOptionsResponse *timg__GetMoveOptionsResponse){ struct soap *soap = this; struct __timg__GetMoveOptions soap_tmp___timg__GetMoveOptions; if (endpoint) soap_endpoint = endpoint; if (soap_action == NULL) soap_action = "http://www.onvif.org/ver20/imaging/wsdl/GetMoveOptions"; soap_begin(soap); soap->encodingStyle = NULL; soap_tmp___timg__GetMoveOptions.timg__GetMoveOptions = timg__GetMoveOptions; soap_set_version(soap, 2); /* SOAP1.2 */ soap_serializeheader(soap); soap_serialize___timg__GetMoveOptions(soap, &soap_tmp___timg__GetMoveOptions); if (soap_begin_count(soap)) return soap->error; if (soap->mode & SOAP_IO_LENGTH) { if (soap_envelope_begin_out(soap) || soap_putheader(soap) || soap_body_begin_out(soap) || soap_put___timg__GetMoveOptions(soap, &soap_tmp___timg__GetMoveOptions, "-timg:GetMoveOptions", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap)) return soap->error; } if (soap_end_count(soap)) return soap->error; if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action) || soap_envelope_begin_out(soap) || soap_putheader(soap) || soap_body_begin_out(soap) || soap_put___timg__GetMoveOptions(soap, &soap_tmp___timg__GetMoveOptions, "-timg:GetMoveOptions", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!timg__GetMoveOptionsResponse) return soap_closesock(soap); timg__GetMoveOptionsResponse->soap_default(soap); if (soap_begin_recv(soap) || soap_envelope_begin_in(soap) || soap_recv_header(soap) || soap_body_begin_in(soap)) return soap_closesock(soap); timg__GetMoveOptionsResponse->soap_get(soap, "timg:GetMoveOptionsResponse", ""); if (soap->error) return soap_recv_fault(soap, 0); if (soap_body_end_in(soap) || soap_envelope_end_in(soap) || soap_end_recv(soap)) return soap_closesock(soap); return soap_closesock(soap);}/* End of client proxy code */
|