12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058 |
- /* soapcwmpService.cpp
- Generated by gSOAP 2.8.83 for trapi.h
- gSOAP XML Web services tools
- Copyright (C) 2000-2018, 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 "soapcwmpService.h"
- cwmpService::cwmpService() {
- this->soap = soap_new();
- this->soap_own = true;
- cwmpService_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
- }
- cwmpService::cwmpService(const cwmpService &rhs) {
- this->soap = rhs.soap;
- this->soap_own = false;
- }
- cwmpService::cwmpService(struct soap *_soap) {
- this->soap = _soap;
- this->soap_own = false;
- cwmpService_init(_soap->imode, _soap->omode);
- }
- cwmpService::cwmpService(soap_mode iomode) {
- this->soap = soap_new();
- this->soap_own = true;
- cwmpService_init(iomode, iomode);
- }
- cwmpService::cwmpService(soap_mode imode, soap_mode omode) {
- this->soap = soap_new();
- this->soap_own = true;
- cwmpService_init(imode, omode);
- }
- cwmpService::~cwmpService() {
- if (this->soap_own) {
- this->destroy();
- soap_free(this->soap);
- }
- }
- void cwmpService::cwmpService_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://schemas.xmlsoap.org/soap/envelope/", "http://www.w3.org/*/soap-envelope", NULL},
- {"SOAP-ENC", "http://schemas.xmlsoap.org/soap/encoding/", "http://www.w3.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},
- {"cwmp", "urn:dslforum-org:cwmp-1-2", NULL, NULL},
- {NULL, NULL, NULL, NULL}
- };
- soap_set_namespaces(this->soap, namespaces);
- }
- void cwmpService::destroy() {
- soap_destroy(this->soap);
- soap_end(this->soap);
- }
- void cwmpService::reset() {
- this->destroy();
- soap_done(this->soap);
- soap_initialize(this->soap);
- cwmpService_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
- }
- #ifndef WITH_PURE_VIRTUAL
- cwmpService *cwmpService::copy() {
- cwmpService *dup = SOAP_NEW_UNMANAGED(cwmpService);
- if (dup) {
- soap_done(dup->soap);
- soap_copy_context(dup->soap, this->soap);
- }
- return dup;
- }
- #endif
- cwmpService &cwmpService::operator=(const cwmpService &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 cwmpService::soap_close_socket() {
- return soap_closesock(this->soap);
- }
- int cwmpService::soap_force_close_socket() {
- return soap_force_closesock(this->soap);
- }
- int cwmpService::soap_senderfault(const char *string, const char *detailXML) {
- return ::soap_sender_fault(this->soap, string, detailXML);
- }
- int cwmpService::soap_senderfault(const char *subcodeQName, const char *string, const char *detailXML) {
- return ::soap_sender_fault_subcode(this->soap, subcodeQName, string, detailXML);
- }
- int cwmpService::soap_receiverfault(const char *string, const char *detailXML) {
- return ::soap_receiver_fault(this->soap, string, detailXML);
- }
- int cwmpService::soap_receiverfault(const char *subcodeQName, const char *string, const char *detailXML) {
- return ::soap_receiver_fault_subcode(this->soap, subcodeQName, string, detailXML);
- }
- void cwmpService::soap_print_fault(FILE *fd) {
- ::soap_print_fault(this->soap, fd);
- }
- #ifndef WITH_LEAN
- #ifndef WITH_COMPAT
- void cwmpService::soap_stream_fault(std::ostream &os) {
- ::soap_stream_fault(this->soap, os);
- }
- #endif
- char *cwmpService::soap_sprint_fault(char *buf, size_t len) {
- return ::soap_sprint_fault(this->soap, buf, len);
- }
- #endif
- void cwmpService::soap_noheader() {
- this->soap->header = NULL;
- }
- void cwmpService::soap_header(struct _cwmp__SupportedCWMPVersions *cwmp__SupportedCWMPVersions,
- struct _cwmp__UseCWMPVersion *cwmp__UseCWMPVersion,
- struct _cwmp__SessionTimeout *cwmp__SessionTimeout, struct _cwmp__ID *cwmp__ID,
- struct _cwmp__HoldRequests *cwmp__HoldRequests) {
- ::soap_header(this->soap);
- this->soap->header->cwmp__SupportedCWMPVersions = cwmp__SupportedCWMPVersions;
- this->soap->header->cwmp__UseCWMPVersion = cwmp__UseCWMPVersion;
- this->soap->header->cwmp__SessionTimeout = cwmp__SessionTimeout;
- this->soap->header->cwmp__ID = cwmp__ID;
- this->soap->header->cwmp__HoldRequests = cwmp__HoldRequests;
- }
- ::SOAP_ENV__Header *cwmpService::soap_header() {
- return this->soap->header;
- }
- #ifndef WITH_NOIO
- int cwmpService::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 cwmpService::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 cwmpService::bind(const char *host, int port, int backlog) {
- return soap_bind(this->soap, host, port, backlog);
- }
- SOAP_SOCKET cwmpService::accept() {
- return soap_accept(this->soap);
- }
- #if defined(WITH_OPENSSL) || defined(WITH_GNUTLS)
- int cwmpService::ssl_accept()
- { return soap_ssl_accept(this->soap);
- }
- #endif
- #endif
- int cwmpService::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
- auto result1 = soap_begin_serve(this->soap);
- // std::cerr<<"Serv result1: "<<result1<<std::endl;
- if (result1 != 0 && result1 == 20000) {
- 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___cwmp__GetParameterNames(struct soap *, cwmpService *);
- static int serve___cwmp__GetParameterValues(struct soap *, cwmpService *);
- static int serve___cwmp__GetParameterValuesResponse(struct soap *, cwmpService *);
- static int serve___cwmp__SetParameterValues(struct soap *, cwmpService *);
- static int serve___cwmp__GetParameterAttributes(struct soap *, cwmpService *);
- static int serve___cwmp__SetParameterAttributes(struct soap *, cwmpService *);
- static int serve___cwmp__Download(struct soap *, cwmpService *);
- static int serve___cwmp__Upload(struct soap *, cwmpService *);
- static int serve___cwmp__AddObject(struct soap *, cwmpService *);
- static int serve___cwmp__DeleteObject(struct soap *, cwmpService *);
- static int serve___cwmp__GetRPCMethods(struct soap *, cwmpService *);
- static int serve___cwmp__Inform(struct soap *, cwmpService *);
- static int serve___cwmp__Reboot(struct soap *, cwmpService *);
- static int serve___cwmp__FactoryReset(struct soap *, cwmpService *);
- int cwmpService::dispatch() {
- return dispatch(this->soap);
- }
- int cwmpService::dispatch(struct soap *soap) {
- int _check = 0;
- cwmpService_init(soap->imode, soap->omode);
- if (soap->error == 20400) {
- _check = 1;
- soap->error = 0;
- }
- if (_check == 1) {
- _check = 0;
- soap->error = 0;
- return CheckQueue(soap, this);
- }
- soap_peek_element(soap);
- std::cerr << "Method : " << soap->tag << std::endl;
- if (!soap_match_tag(soap, soap->tag, "cwmp:GetParameterNames"))
- return serve___cwmp__GetParameterNames(soap, this);
- if (!soap_match_tag(soap, soap->tag, "cwmp:GetParameterValues"))
- return serve___cwmp__GetParameterValues(soap, this);
- if (!soap_match_tag(soap, soap->tag, "cwmp:GetParameterValuesResponse"))
- return serve___cwmp__GetParameterValuesResponse(soap, this);
- if (!soap_match_tag(soap, soap->tag, "cwmp:SetParameterValues"))
- return serve___cwmp__SetParameterValues(soap, this);
- if (!soap_match_tag(soap, soap->tag, "cwmp:GetParameterAttributes"))
- return serve___cwmp__GetParameterAttributes(soap, this);
- if (!soap_match_tag(soap, soap->tag, "cwmp:SetParameterAttributes"))
- return serve___cwmp__SetParameterAttributes(soap, this);
- if (!soap_match_tag(soap, soap->tag, "cwmp:Download"))
- return serve___cwmp__Download(soap, this);
- if (!soap_match_tag(soap, soap->tag, "cwmp:Upload"))
- return serve___cwmp__Upload(soap, this);
- if (!soap_match_tag(soap, soap->tag, "cwmp:AddObject"))
- return serve___cwmp__AddObject(soap, this);
- if (!soap_match_tag(soap, soap->tag, "cwmp:DeleteObject"))
- return serve___cwmp__DeleteObject(soap, this);
- if (!soap_match_tag(soap, soap->tag, "cwmp:GetRPCMethods"))
- return serve___cwmp__GetRPCMethods(soap, this);
- if (!soap_match_tag(soap, soap->tag, "cwmp:Inform"))
- return serve___cwmp__Inform(soap, this);
- if (!soap_match_tag(soap, soap->tag, "cwmp:RebootResponse"))
- return CustomeRebootResonse(soap, this);
- if (!soap_match_tag(soap, soap->tag, "cwmp:Reboot"))
- return serve___cwmp__Reboot(soap, this);
- if (!soap_match_tag(soap, soap->tag, "cwmp:FactoryReset"))
- return serve___cwmp__FactoryReset(soap, this);
- if (!soap_match_tag(soap, soap->tag, "cwmp:DownloadResponse"))
- return cwmpService::CustomeDownloadResponse(soap, this);
- std::cerr << "Method Not Implemented: " << soap->tag << std::endl;
- return soap->error = SOAP_NO_METHOD;
- }
- static int serve___cwmp__GetParameterNames(struct soap *soap, cwmpService *service) {
- struct __cwmp__GetParameterNames soap_tmp___cwmp__GetParameterNames;
- struct _cwmp__GetParameterNamesResponse cwmp__GetParameterNamesResponse;
- soap_default__cwmp__GetParameterNamesResponse(soap, &cwmp__GetParameterNamesResponse);
- soap_default___cwmp__GetParameterNames(soap, &soap_tmp___cwmp__GetParameterNames);
- if (!soap_get___cwmp__GetParameterNames(soap, &soap_tmp___cwmp__GetParameterNames, "-cwmp:GetParameterNames", 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->GetParameterNames(soap_tmp___cwmp__GetParameterNames.cwmp__GetParameterNames,
- &cwmp__GetParameterNamesResponse);
- if (soap->error)
- return soap->error;
- soap->encodingStyle = ""; /* use SOAP encoding style */
- soap_serializeheader(soap);
- soap_serialize__cwmp__GetParameterNamesResponse(soap, &cwmp__GetParameterNamesResponse);
- 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__cwmp__GetParameterNamesResponse(soap, &cwmp__GetParameterNamesResponse,
- "cwmp:GetParameterNamesResponse", "")
- || 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)
- || soap_put__cwmp__GetParameterNamesResponse(soap, &cwmp__GetParameterNamesResponse,
- "cwmp:GetParameterNamesResponse", "")
- || soap_body_end_out(soap)
- || soap_envelope_end_out(soap)
- || soap_end_send(soap))
- return soap->error;
- return soap_closesock(soap);
- }
- static int serve___cwmp__GetParameterValues(struct soap *soap, cwmpService *service) {
- struct __cwmp__GetParameterValues soap_tmp___cwmp__GetParameterValues;
- struct _cwmp__GetParameterValuesResponse cwmp__GetParameterValuesResponse;
- soap_default__cwmp__GetParameterValuesResponse(soap, &cwmp__GetParameterValuesResponse);
- soap_default___cwmp__GetParameterValues(soap, &soap_tmp___cwmp__GetParameterValues);
- if (!soap_get___cwmp__GetParameterValues(soap, &soap_tmp___cwmp__GetParameterValues, "-cwmp:GetParameterValues",
- 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->GetParameterValues(soap_tmp___cwmp__GetParameterValues.cwmp__GetParameterValues,
- &cwmp__GetParameterValuesResponse);
- if (soap->error)
- return soap->error;
- soap->encodingStyle = ""; /* use SOAP encoding style */
- soap_serializeheader(soap);
- soap_serialize__cwmp__GetParameterValuesResponse(soap, &cwmp__GetParameterValuesResponse);
- 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__cwmp__GetParameterValuesResponse(soap, &cwmp__GetParameterValuesResponse,
- "cwmp:GetParameterValuesResponse", "")
- || 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)
- || soap_put__cwmp__GetParameterValuesResponse(soap, &cwmp__GetParameterValuesResponse,
- "cwmp:GetParameterValuesResponse", "")
- || soap_body_end_out(soap)
- || soap_envelope_end_out(soap)
- || soap_end_send(soap))
- return soap->error;
- return soap_closesock(soap);
- }
- static int serve___cwmp__GetParameterValuesResponse(struct soap *soap, cwmpService *service) {
- struct __cwmp__GetParameterValuesResponse soap_tmp___cwmp__GetParameterValuesResponse;
- soap_default___cwmp__GetParameterValuesResponse(soap, &soap_tmp___cwmp__GetParameterValuesResponse);
- if (!soap_get___cwmp__GetParameterValuesResponse(soap, &soap_tmp___cwmp__GetParameterValuesResponse,
- "-cwmp:GetParameterValuesResponse", 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->GetParameterValuesResponse(
- soap_tmp___cwmp__GetParameterValuesResponse.cwmp__GetParameterValuesResponse);
- if (soap->error)
- return soap->error;
- return soap_closesock(soap);
- }
- static int serve___cwmp__SetParameterValues(struct soap *soap, cwmpService *service) {
- struct __cwmp__SetParameterValues soap_tmp___cwmp__SetParameterValues;
- struct _cwmp__SetParameterValuesResponse cwmp__SetParameterValuesResponse;
- soap_default__cwmp__SetParameterValuesResponse(soap, &cwmp__SetParameterValuesResponse);
- soap_default___cwmp__SetParameterValues(soap, &soap_tmp___cwmp__SetParameterValues);
- if (!soap_get___cwmp__SetParameterValues(soap, &soap_tmp___cwmp__SetParameterValues, "-cwmp:SetParameterValues",
- 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->SetParameterValues(soap_tmp___cwmp__SetParameterValues.cwmp__SetParameterValues,
- &cwmp__SetParameterValuesResponse);
- if (soap->error)
- return soap->error;
- soap->encodingStyle = ""; /* use SOAP encoding style */
- soap_serializeheader(soap);
- soap_serialize__cwmp__SetParameterValuesResponse(soap, &cwmp__SetParameterValuesResponse);
- 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__cwmp__SetParameterValuesResponse(soap, &cwmp__SetParameterValuesResponse,
- "cwmp:SetParameterValuesResponse", "")
- || 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)
- || soap_put__cwmp__SetParameterValuesResponse(soap, &cwmp__SetParameterValuesResponse,
- "cwmp:SetParameterValuesResponse", "")
- || soap_body_end_out(soap)
- || soap_envelope_end_out(soap)
- || soap_end_send(soap))
- return soap->error;
- return soap_closesock(soap);
- }
- static int serve___cwmp__GetParameterAttributes(struct soap *soap, cwmpService *service) {
- struct __cwmp__GetParameterAttributes soap_tmp___cwmp__GetParameterAttributes;
- struct _cwmp__GetParameterAttributesResponse cwmp__GetParameterAttributesResponse;
- soap_default__cwmp__GetParameterAttributesResponse(soap, &cwmp__GetParameterAttributesResponse);
- soap_default___cwmp__GetParameterAttributes(soap, &soap_tmp___cwmp__GetParameterAttributes);
- if (!soap_get___cwmp__GetParameterAttributes(soap, &soap_tmp___cwmp__GetParameterAttributes,
- "-cwmp:GetParameterAttributes", 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->GetParameterAttributes(soap_tmp___cwmp__GetParameterAttributes.cwmp__GetParameterAttributes,
- &cwmp__GetParameterAttributesResponse);
- if (soap->error)
- return soap->error;
- soap->encodingStyle = ""; /* use SOAP encoding style */
- soap_serializeheader(soap);
- soap_serialize__cwmp__GetParameterAttributesResponse(soap, &cwmp__GetParameterAttributesResponse);
- 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__cwmp__GetParameterAttributesResponse(soap, &cwmp__GetParameterAttributesResponse,
- "cwmp:GetParameterAttributesResponse", "")
- || 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)
- || soap_put__cwmp__GetParameterAttributesResponse(soap, &cwmp__GetParameterAttributesResponse,
- "cwmp:GetParameterAttributesResponse", "")
- || soap_body_end_out(soap)
- || soap_envelope_end_out(soap)
- || soap_end_send(soap))
- return soap->error;
- return soap_closesock(soap);
- }
- static int serve___cwmp__SetParameterAttributes(struct soap *soap, cwmpService *service) {
- struct __cwmp__SetParameterAttributes soap_tmp___cwmp__SetParameterAttributes;
- struct _cwmp__SetParameterAttributesResponse cwmp__SetParameterAttributesResponse;
- soap_default__cwmp__SetParameterAttributesResponse(soap, &cwmp__SetParameterAttributesResponse);
- soap_default___cwmp__SetParameterAttributes(soap, &soap_tmp___cwmp__SetParameterAttributes);
- if (!soap_get___cwmp__SetParameterAttributes(soap, &soap_tmp___cwmp__SetParameterAttributes,
- "-cwmp:SetParameterAttributes", 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->SetParameterAttributes(soap_tmp___cwmp__SetParameterAttributes.cwmp__SetParameterAttributes,
- &cwmp__SetParameterAttributesResponse);
- if (soap->error)
- return soap->error;
- soap->encodingStyle = ""; /* use SOAP encoding style */
- soap_serializeheader(soap);
- soap_serialize__cwmp__SetParameterAttributesResponse(soap, &cwmp__SetParameterAttributesResponse);
- 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__cwmp__SetParameterAttributesResponse(soap, &cwmp__SetParameterAttributesResponse,
- "cwmp:SetParameterAttributesResponse", "")
- || 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)
- || soap_put__cwmp__SetParameterAttributesResponse(soap, &cwmp__SetParameterAttributesResponse,
- "cwmp:SetParameterAttributesResponse", "")
- || soap_body_end_out(soap)
- || soap_envelope_end_out(soap)
- || soap_end_send(soap))
- return soap->error;
- return soap_closesock(soap);
- }
- static int serve___cwmp__Download(struct soap *soap, cwmpService *service) {
- struct __cwmp__Download soap_tmp___cwmp__Download;
- struct _cwmp__DownloadResponse cwmp__DownloadResponse;
- soap_default__cwmp__DownloadResponse(soap, &cwmp__DownloadResponse);
- soap_default___cwmp__Download(soap, &soap_tmp___cwmp__Download);
- if (!soap_get___cwmp__Download(soap, &soap_tmp___cwmp__Download, "-cwmp:Download", 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->Download(soap_tmp___cwmp__Download.cwmp__Download, &cwmp__DownloadResponse);
- if (soap->error)
- return soap->error;
- soap->encodingStyle = ""; /* use SOAP encoding style */
- soap_serializeheader(soap);
- soap_serialize__cwmp__DownloadResponse(soap, &cwmp__DownloadResponse);
- 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__cwmp__DownloadResponse(soap, &cwmp__DownloadResponse, "cwmp:DownloadResponse", "")
- || 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)
- || soap_put__cwmp__DownloadResponse(soap, &cwmp__DownloadResponse, "cwmp:DownloadResponse", "")
- || soap_body_end_out(soap)
- || soap_envelope_end_out(soap)
- || soap_end_send(soap))
- return soap->error;
- return soap_closesock(soap);
- }
- static int serve___cwmp__Upload(struct soap *soap, cwmpService *service) {
- struct __cwmp__Upload soap_tmp___cwmp__Upload;
- struct _cwmp__UploadResponse cwmp__UploadResponse;
- soap_default__cwmp__UploadResponse(soap, &cwmp__UploadResponse);
- soap_default___cwmp__Upload(soap, &soap_tmp___cwmp__Upload);
- if (!soap_get___cwmp__Upload(soap, &soap_tmp___cwmp__Upload, "-cwmp:Upload", 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->Upload(soap_tmp___cwmp__Upload.cwmp__Upload, &cwmp__UploadResponse);
- if (soap->error)
- return soap->error;
- soap->encodingStyle = ""; /* use SOAP encoding style */
- soap_serializeheader(soap);
- soap_serialize__cwmp__UploadResponse(soap, &cwmp__UploadResponse);
- 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__cwmp__UploadResponse(soap, &cwmp__UploadResponse, "cwmp:UploadResponse", "")
- || 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)
- || soap_put__cwmp__UploadResponse(soap, &cwmp__UploadResponse, "cwmp:UploadResponse", "")
- || soap_body_end_out(soap)
- || soap_envelope_end_out(soap)
- || soap_end_send(soap))
- return soap->error;
- return soap_closesock(soap);
- }
- static int serve___cwmp__AddObject(struct soap *soap, cwmpService *service) {
- struct __cwmp__AddObject soap_tmp___cwmp__AddObject;
- struct _cwmp__AddObjectResponse cwmp__AddObjectResponse;
- soap_default__cwmp__AddObjectResponse(soap, &cwmp__AddObjectResponse);
- soap_default___cwmp__AddObject(soap, &soap_tmp___cwmp__AddObject);
- if (!soap_get___cwmp__AddObject(soap, &soap_tmp___cwmp__AddObject, "-cwmp:AddObject", 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->AddObject(soap_tmp___cwmp__AddObject.cwmp__AddObject, &cwmp__AddObjectResponse);
- if (soap->error)
- return soap->error;
- soap->encodingStyle = ""; /* use SOAP encoding style */
- soap_serializeheader(soap);
- soap_serialize__cwmp__AddObjectResponse(soap, &cwmp__AddObjectResponse);
- 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__cwmp__AddObjectResponse(soap, &cwmp__AddObjectResponse, "cwmp:AddObjectResponse", "")
- || 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)
- || soap_put__cwmp__AddObjectResponse(soap, &cwmp__AddObjectResponse, "cwmp:AddObjectResponse", "")
- || soap_body_end_out(soap)
- || soap_envelope_end_out(soap)
- || soap_end_send(soap))
- return soap->error;
- return soap_closesock(soap);
- }
- static int serve___cwmp__DeleteObject(struct soap *soap, cwmpService *service) {
- struct __cwmp__DeleteObject soap_tmp___cwmp__DeleteObject;
- struct _cwmp__DeleteObjectResponse cwmp__DeleteObjectResponse;
- soap_default__cwmp__DeleteObjectResponse(soap, &cwmp__DeleteObjectResponse);
- soap_default___cwmp__DeleteObject(soap, &soap_tmp___cwmp__DeleteObject);
- if (!soap_get___cwmp__DeleteObject(soap, &soap_tmp___cwmp__DeleteObject, "-cwmp:DeleteObject", 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->DeleteObject(soap_tmp___cwmp__DeleteObject.cwmp__DeleteObject, &cwmp__DeleteObjectResponse);
- if (soap->error)
- return soap->error;
- soap->encodingStyle = ""; /* use SOAP encoding style */
- soap_serializeheader(soap);
- soap_serialize__cwmp__DeleteObjectResponse(soap, &cwmp__DeleteObjectResponse);
- 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__cwmp__DeleteObjectResponse(soap, &cwmp__DeleteObjectResponse, "cwmp:DeleteObjectResponse", "")
- || 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)
- || soap_put__cwmp__DeleteObjectResponse(soap, &cwmp__DeleteObjectResponse, "cwmp:DeleteObjectResponse", "")
- || soap_body_end_out(soap)
- || soap_envelope_end_out(soap)
- || soap_end_send(soap))
- return soap->error;
- return soap_closesock(soap);
- }
- static int serve___cwmp__GetRPCMethods(struct soap *soap, cwmpService *service) {
- struct __cwmp__GetRPCMethods soap_tmp___cwmp__GetRPCMethods;
- struct _cwmp__GetRPCMethodsResponse cwmp__GetRPCMethodsResponse;
- soap_default__cwmp__GetRPCMethodsResponse(soap, &cwmp__GetRPCMethodsResponse);
- soap_default___cwmp__GetRPCMethods(soap, &soap_tmp___cwmp__GetRPCMethods);
- if (!soap_get___cwmp__GetRPCMethods(soap, &soap_tmp___cwmp__GetRPCMethods, "-cwmp:GetRPCMethods", 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->GetRPCMethods(soap_tmp___cwmp__GetRPCMethods.cwmp__GetRPCMethods,
- &cwmp__GetRPCMethodsResponse);
- if (soap->error)
- return soap->error;
- soap->encodingStyle = ""; /* use SOAP encoding style */
- soap_serializeheader(soap);
- soap_serialize__cwmp__GetRPCMethodsResponse(soap, &cwmp__GetRPCMethodsResponse);
- 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__cwmp__GetRPCMethodsResponse(soap, &cwmp__GetRPCMethodsResponse, "cwmp:GetRPCMethodsResponse", "")
- || 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)
- || soap_put__cwmp__GetRPCMethodsResponse(soap, &cwmp__GetRPCMethodsResponse, "cwmp:GetRPCMethodsResponse", "")
- || soap_body_end_out(soap)
- || soap_envelope_end_out(soap)
- || soap_end_send(soap))
- return soap->error;
- return soap_closesock(soap);
- }
- static int serve___cwmp__Inform(struct soap *soap, cwmpService *service) {
- struct __cwmp__Inform soap_tmp___cwmp__Inform;
- struct _cwmp__InformResponse cwmp__InformResponse;
- soap_default__cwmp__InformResponse(soap, &cwmp__InformResponse);
- soap_default___cwmp__Inform(soap, &soap_tmp___cwmp__Inform);
- if (!soap_get___cwmp__Inform(soap, &soap_tmp___cwmp__Inform, "-cwmp:Inform", 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->Inform(soap_tmp___cwmp__Inform.cwmp__Inform, &cwmp__InformResponse);
- if (soap->error)
- return soap->error;
- soap->encodingStyle = ""; /* use SOAP encoding style */
- soap_serializeheader(soap);
- soap_serialize__cwmp__InformResponse(soap, &cwmp__InformResponse);
- 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__cwmp__InformResponse(soap, &cwmp__InformResponse, "cwmp:InformResponse", "")
- || 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)
- || soap_put__cwmp__InformResponse(soap, &cwmp__InformResponse, "cwmp:InformResponse", "")
- || soap_body_end_out(soap)
- || soap_envelope_end_out(soap)
- || soap_end_send(soap))
- return soap->error;
- return soap_closesock(soap);
- }
- static int serve___cwmp__Reboot(struct soap *soap, cwmpService *service) {
- struct __cwmp__Reboot soap_tmp___cwmp__Reboot;
- struct _cwmp__RebootResponse cwmp__RebootResponse;
- struct __cwmp__Reboot cwmp__reboot;
- soap_default__cwmp__RebootResponse(soap, &cwmp__RebootResponse);
- soap_default___cwmp__Reboot(soap, &soap_tmp___cwmp__Reboot);
- soap_default___cwmp__Reboot(soap, &cwmp__reboot);
- soap->error = service->Reboot(soap_tmp___cwmp__Reboot.cwmp__Reboot, &cwmp__RebootResponse);
- if (!soap_get___cwmp__Reboot(soap, &soap_tmp___cwmp__Reboot, "-cwmp:Reboot", 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->Reboot(soap_tmp___cwmp__Reboot.cwmp__Reboot, &cwmp__RebootResponse);
- if (soap->error)
- return soap->error;
- soap->encodingStyle = ""; /* use SOAP encoding style */
- soap_serializeheader(soap);
- soap_serialize__cwmp__RebootResponse(soap, &cwmp__RebootResponse);
- 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__cwmp__RebootResponse(soap, &cwmp__RebootResponse, "cwmp:RebootResponse", "")
- || 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)
- || soap_put__cwmp__RebootResponse(soap, &cwmp__RebootResponse, "cwmp:RebootResponse", "")
- || soap_body_end_out(soap)
- || soap_envelope_end_out(soap)
- || soap_end_send(soap))
- return soap->error;
- return soap_closesock(soap);
- }
- static int serve___cwmp__FactoryReset(struct soap *soap, cwmpService *service) {
- struct __cwmp__FactoryReset soap_tmp___cwmp__FactoryReset;
- struct _cwmp__FactoryResetResponse cwmp__FactoryResetResponse;
- soap_default__cwmp__FactoryResetResponse(soap, &cwmp__FactoryResetResponse);
- soap_default___cwmp__FactoryReset(soap, &soap_tmp___cwmp__FactoryReset);
- if (!soap_get___cwmp__FactoryReset(soap, &soap_tmp___cwmp__FactoryReset, "-cwmp:FactoryReset", NULL))
- return soap->error;
- // std::cerr<<"Factory Reset Called in serve___cwmp__FactoryReset."<<std::endl;
- if (soap_body_end_in(soap)
- || soap_envelope_end_in(soap)
- || soap_end_recv(soap))
- return soap->error;
- soap->error = service->FactoryReset(soap_tmp___cwmp__FactoryReset.cwmp__FactoryReset, &cwmp__FactoryResetResponse);
- if (soap->error)
- return soap->error;
- soap->encodingStyle = ""; /* use SOAP encoding style */
- soap_serializeheader(soap);
- soap_serialize__cwmp__FactoryResetResponse(soap, &cwmp__FactoryResetResponse);
- 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__cwmp__FactoryResetResponse(soap, &cwmp__FactoryResetResponse, "cwmp:FactoryResetResponse", "")
- || 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)
- || soap_put__cwmp__FactoryResetResponse(soap, &cwmp__FactoryResetResponse, "cwmp:FactoryResetResponse", "")
- || 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 */
- int cwmpService::CustomeFactoryReset(struct soap *pSoap, cwmpService *pService) {
- struct _cwmp__FactoryReset cwmp__FactoryReset;
- struct __cwmp__FactoryReset soap_tmp___cwmp__FactoryReset;
- struct _cwmp__FactoryResetResponse cwmp__FactoryResetResponse;
- soap_default__cwmp__FactoryResetResponse(soap, &cwmp__FactoryResetResponse);
- soap_default___cwmp__FactoryReset(soap, &soap_tmp___cwmp__FactoryReset);
- // if (soap_body_end_in(soap)
- // || soap_envelope_end_in(soap)
- // || soap_end_recv(soap))
- // return soap->error;
- soap->error = pService->FactoryReset(soap_tmp___cwmp__FactoryReset.cwmp__FactoryReset, &cwmp__FactoryResetResponse);
- if (soap->error)
- return soap->error;
- soap->encodingStyle = ""; /* use SOAP encoding style */
- soap_serializeheader(soap);
- soap_serialize__cwmp__FactoryReset(soap, &cwmp__FactoryReset);
- 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__cwmp__FactoryReset(soap, &cwmp__FactoryReset, "cwmp:FactoryReset", "")
- || 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)
- || soap_put__cwmp__FactoryReset(soap, &cwmp__FactoryReset, "cwmp:FactoryReset", "")
- || soap_body_end_out(soap)
- || soap_envelope_end_out(soap)
- || soap_end_send(soap))
- return soap->error;
- return soap_closesock(soap);
- }
- int cwmpService::CustomeReboot(struct soap *pSoap, cwmpService *pService) {
- soap->error = 0;
- struct _cwmp__Reboot cwmp__reboot;
- cwmp__reboot.CommandKey = "reboot";
- if ((soap->mode & SOAP_IO_LENGTH)) {
- if (soap_envelope_begin_out(soap)
- || soap_putheader(soap)
- || soap_body_begin_out(soap)
- || soap_put__cwmp__Reboot(soap, &cwmp__reboot, "cwmp:Reboot", "")
- || 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)
- || soap_put__cwmp__Reboot(soap, &cwmp__reboot, "cwmp:Reboot", "")
- || soap_body_end_out(soap)
- || soap_envelope_end_out(soap)
- || soap_end_send(soap))
- return soap->error;
- return soap_closesock(soap);
- }
- int cwmpService::CustomeRebootResonse(struct soap *pSoap, cwmpService *pService) {
- std::cerr << "Recieve Reboot Response in Service.cpp" << std::endl;
- return soap_closesock(soap);
- }
- int cwmpService::CustomeDownload(struct soap *pSoap, cwmpService *pService, int DelaySeconds,
- char *FileType,
- char *URL, char *Username, char *Password, int FileSize,
- char *TargetFileName, char *SuccessURL, char *FailureURL) {
- soap->error = 0;
- std::cerr << "Upgrade Request recieved with parameters: " << std::endl;
- struct _cwmp__Download cwmp__download;
- cwmp__download.CommandKey = "";
- cwmp__download.DelaySeconds = DelaySeconds;
- cwmp__download.FileType = FileType;
- cwmp__download.URL = URL;
- cwmp__download.Username = Username;
- cwmp__download.Password = Password;
- cwmp__download.FileSize = FileSize;
- cwmp__download.TargetFileName = NULL;
- cwmp__download.SuccessURL = SuccessURL;
- cwmp__download.FailureURL = FailureURL;
- if ((soap->mode & SOAP_IO_LENGTH)) {
- if (soap_envelope_begin_out(soap)
- || soap_putheader(soap)
- || soap_body_begin_out(soap)
- || soap_put__cwmp__Download(soap, &cwmp__download, "cwmp:Download", "")
- || 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)
- || soap_put__cwmp__Download(soap, &cwmp__download, "cwmp:Download", "")
- || soap_body_end_out(soap)
- || soap_envelope_end_out(soap)
- || soap_end_send(soap))
- return soap->error;
- return soap_closesock(soap);
- }
- int cwmpService::CustomeDownloadResponse(struct soap *pSoap, cwmpService *pService) {
- std::cerr << "Upgrade Response recieved." << std::endl;
- soap->error = 0;
- // struct _cwmp__DownloadResponse cwmp__downloadResponse;
- // if ((soap->mode & SOAP_IO_LENGTH)) {
- // if (soap_envelope_begin_out(soap)
- // || soap_putheader(soap)
- // || soap_body_begin_out(soap)
- // || soap_put__cwmp__DownloadResponse(soap, &cwmp__downloadResponse, "cwmp:DownloadResponse", "")
- // || 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)
- // || soap_put__cwmp__DownloadResponse(soap, &cwmp__downloadResponse, "cwmp:DownloadResponse", "")
- // || soap_body_end_out(soap)
- // || soap_envelope_end_out(soap)
- // || soap_end_send(soap))
- // return soap->error;
- soap->keep_alive = 0;
- return soap_closesock(soap);
- }
|