Commit ba6fe0cb authored by Gozutok, Recep's avatar Gozutok, Recep
Browse files

Upload New File

parent e6224e9f
/* soapCentralSystemServiceSoapProxy.cpp
Generated by gSOAP 2.8.28 from Service.h
gSOAP XML Web services tools
Copyright (C) 2000-2016, 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 "soapCentralSystemServiceSoapProxy.h"
CentralSystemServiceSoapProxy::CentralSystemServiceSoapProxy() : soap(SOAP_IO_DEFAULT)
{ CentralSystemServiceSoapProxy_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
}
CentralSystemServiceSoapProxy::CentralSystemServiceSoapProxy(const CentralSystemServiceSoapProxy& rhs)
{ soap_copy_context(this, &rhs);
this->soap_endpoint = rhs.soap_endpoint;
}
CentralSystemServiceSoapProxy::CentralSystemServiceSoapProxy(const struct soap &_soap) : soap(_soap)
{ }
CentralSystemServiceSoapProxy::CentralSystemServiceSoapProxy(const char *url) : soap(SOAP_IO_DEFAULT)
{ CentralSystemServiceSoapProxy_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
soap_endpoint = url;
}
CentralSystemServiceSoapProxy::CentralSystemServiceSoapProxy(soap_mode iomode) : soap(iomode)
{ CentralSystemServiceSoapProxy_init(iomode, iomode);
}
CentralSystemServiceSoapProxy::CentralSystemServiceSoapProxy(const char *url, soap_mode iomode) : soap(iomode)
{ CentralSystemServiceSoapProxy_init(iomode, iomode);
soap_endpoint = url;
}
CentralSystemServiceSoapProxy::CentralSystemServiceSoapProxy(soap_mode imode, soap_mode omode) : soap(imode, omode)
{ CentralSystemServiceSoapProxy_init(imode, omode);
}
CentralSystemServiceSoapProxy::~CentralSystemServiceSoapProxy()
{
this->destroy();
}
void CentralSystemServiceSoapProxy::CentralSystemServiceSoapProxy_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},
{"ns1", "urn:reserve", NULL, NULL},
{"ns2", "urn://Ocpp/Cs/2012/06/", 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},
{NULL, NULL, NULL, NULL}
};
soap_set_namespaces(this, namespaces);
}
#ifndef WITH_PURE_VIRTUAL
CentralSystemServiceSoapProxy *CentralSystemServiceSoapProxy::copy()
{ CentralSystemServiceSoapProxy *dup = SOAP_NEW_COPY(CentralSystemServiceSoapProxy(*(struct soap*)this));
return dup;
}
#endif
CentralSystemServiceSoapProxy& CentralSystemServiceSoapProxy::operator=(const CentralSystemServiceSoapProxy& rhs)
{ soap_copy_context(this, &rhs);
this->soap_endpoint = rhs.soap_endpoint;
return *this;
}
void CentralSystemServiceSoapProxy::destroy()
{ soap_destroy(this);
soap_end(this);
}
void CentralSystemServiceSoapProxy::reset()
{ this->destroy();
soap_done(this);
soap_initialize(this);
CentralSystemServiceSoapProxy_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
}
void CentralSystemServiceSoapProxy::soap_noheader()
{ this->header = NULL;
}
void CentralSystemServiceSoapProxy::soap_header(std::string *ns2__chargeBoxIdentity, 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->ns2__chargeBoxIdentity = ns2__chargeBoxIdentity;
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 *CentralSystemServiceSoapProxy::soap_header()
{ return this->header;
}
const SOAP_ENV__Fault *CentralSystemServiceSoapProxy::soap_fault()
{ return this->fault;
}
const char *CentralSystemServiceSoapProxy::soap_fault_string()
{ return *soap_faultstring(this);
}
const char *CentralSystemServiceSoapProxy::soap_fault_detail()
{ return *soap_faultdetail(this);
}
int CentralSystemServiceSoapProxy::soap_close_socket()
{ return soap_closesock(this);
}
int CentralSystemServiceSoapProxy::soap_force_close_socket()
{ return soap_force_closesock(this);
}
void CentralSystemServiceSoapProxy::soap_print_fault(FILE *fd)
{ ::soap_print_fault(this, fd);
}
#ifndef WITH_LEAN
#ifndef WITH_COMPAT
void CentralSystemServiceSoapProxy::soap_stream_fault(std::ostream& os)
{ ::soap_stream_fault(this, os);
}
#endif
char *CentralSystemServiceSoapProxy::soap_sprint_fault(char *buf, size_t len)
{ return ::soap_sprint_fault(this, buf, len);
}
#endif
int CentralSystemServiceSoapProxy::Authorize(const char *endpoint, const char *soap_action, ns2__AuthorizeRequest *ns2__authorizeRequest, ns2__AuthorizeResponse &ns2__authorizeResponse)
{ struct soap *soap = this;
struct __ns2__Authorize soap_tmp___ns2__Authorize;
if (endpoint)
soap_endpoint = endpoint;
if (soap_endpoint == NULL)
soap_endpoint = "http://localhost/Ocpp/CentralSystemService/";
if (soap_action == NULL)
soap_action = "/Authorize";
soap_tmp___ns2__Authorize.ns2__authorizeRequest = ns2__authorizeRequest;
soap_begin(soap);
soap->encodingStyle = NULL;
soap_serializeheader(soap);
soap_serialize___ns2__Authorize(soap, &soap_tmp___ns2__Authorize);
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___ns2__Authorize(soap, &soap_tmp___ns2__Authorize, "-ns2:Authorize", 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___ns2__Authorize(soap, &soap_tmp___ns2__Authorize, "-ns2:Authorize", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
if (!&ns2__authorizeResponse)
return soap_closesock(soap);
ns2__authorizeResponse.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);
ns2__authorizeResponse.soap_get(soap, "ns2:authorizeResponse", NULL);
if (soap->error)
return soap_recv_fault(soap, 0);
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap_closesock(soap);
return soap_closesock(soap);
}
int CentralSystemServiceSoapProxy::StartTransaction(const char *endpoint, const char *soap_action, ns2__StartTransactionRequest *ns2__startTransactionRequest, ns2__StartTransactionResponse &ns2__startTransactionResponse)
{ struct soap *soap = this;
struct __ns2__StartTransaction soap_tmp___ns2__StartTransaction;
if (endpoint)
soap_endpoint = endpoint;
if (soap_endpoint == NULL)
soap_endpoint = "http://localhost/Ocpp/CentralSystemService/";
if (soap_action == NULL)
soap_action = "/StartTransaction";
soap_tmp___ns2__StartTransaction.ns2__startTransactionRequest = ns2__startTransactionRequest;
soap_begin(soap);
soap->encodingStyle = NULL;
soap_serializeheader(soap);
soap_serialize___ns2__StartTransaction(soap, &soap_tmp___ns2__StartTransaction);
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___ns2__StartTransaction(soap, &soap_tmp___ns2__StartTransaction, "-ns2:StartTransaction", 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___ns2__StartTransaction(soap, &soap_tmp___ns2__StartTransaction, "-ns2:StartTransaction", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
if (!&ns2__startTransactionResponse)
return soap_closesock(soap);
ns2__startTransactionResponse.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);
ns2__startTransactionResponse.soap_get(soap, "ns2:startTransactionResponse", NULL);
if (soap->error)
return soap_recv_fault(soap, 0);
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap_closesock(soap);
return soap_closesock(soap);
}
int CentralSystemServiceSoapProxy::StopTransaction(const char *endpoint, const char *soap_action, ns2__StopTransactionRequest *ns2__stopTransactionRequest, ns2__StopTransactionResponse &ns2__stopTransactionResponse)
{ struct soap *soap = this;
struct __ns2__StopTransaction soap_tmp___ns2__StopTransaction;
if (endpoint)
soap_endpoint = endpoint;
if (soap_endpoint == NULL)
soap_endpoint = "http://localhost/Ocpp/CentralSystemService/";
if (soap_action == NULL)
soap_action = "/StopTransaction";
soap_tmp___ns2__StopTransaction.ns2__stopTransactionRequest = ns2__stopTransactionRequest;
soap_begin(soap);
soap->encodingStyle = NULL;
soap_serializeheader(soap);
soap_serialize___ns2__StopTransaction(soap, &soap_tmp___ns2__StopTransaction);
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___ns2__StopTransaction(soap, &soap_tmp___ns2__StopTransaction, "-ns2:StopTransaction", 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___ns2__StopTransaction(soap, &soap_tmp___ns2__StopTransaction, "-ns2:StopTransaction", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
if (!&ns2__stopTransactionResponse)
return soap_closesock(soap);
ns2__stopTransactionResponse.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);
ns2__stopTransactionResponse.soap_get(soap, "ns2:stopTransactionResponse", NULL);
if (soap->error)
return soap_recv_fault(soap, 0);
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap_closesock(soap);
return soap_closesock(soap);
}
int CentralSystemServiceSoapProxy::Heartbeat(const char *endpoint, const char *soap_action, ns2__HeartbeatRequest *ns2__heartbeatRequest, ns2__HeartbeatResponse &ns2__heartbeatResponse)
{ struct soap *soap = this;
struct __ns2__Heartbeat soap_tmp___ns2__Heartbeat;
if (endpoint)
soap_endpoint = endpoint;
if (soap_endpoint == NULL)
soap_endpoint = "http://localhost/Ocpp/CentralSystemService/";
if (soap_action == NULL)
soap_action = "/Heartbeat";
soap_tmp___ns2__Heartbeat.ns2__heartbeatRequest = ns2__heartbeatRequest;
soap_begin(soap);
soap->encodingStyle = NULL;
soap_serializeheader(soap);
soap_serialize___ns2__Heartbeat(soap, &soap_tmp___ns2__Heartbeat);
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___ns2__Heartbeat(soap, &soap_tmp___ns2__Heartbeat, "-ns2:Heartbeat", 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___ns2__Heartbeat(soap, &soap_tmp___ns2__Heartbeat, "-ns2:Heartbeat", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
if (!&ns2__heartbeatResponse)
return soap_closesock(soap);
ns2__heartbeatResponse.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);
ns2__heartbeatResponse.soap_get(soap, "ns2:heartbeatResponse", NULL);
if (soap->error)
return soap_recv_fault(soap, 0);
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap_closesock(soap);
return soap_closesock(soap);
}
int CentralSystemServiceSoapProxy::MeterValues(const char *endpoint, const char *soap_action, ns2__MeterValuesRequest *ns2__meterValuesRequest, ns2__MeterValuesResponse &ns2__meterValuesResponse)
{ struct soap *soap = this;
struct __ns2__MeterValues soap_tmp___ns2__MeterValues;
if (endpoint)
soap_endpoint = endpoint;
if (soap_endpoint == NULL)
soap_endpoint = "http://localhost/Ocpp/CentralSystemService/";
if (soap_action == NULL)
soap_action = "/MeterValues";
soap_tmp___ns2__MeterValues.ns2__meterValuesRequest = ns2__meterValuesRequest;
soap_begin(soap);
soap->encodingStyle = NULL;
soap_serializeheader(soap);
soap_serialize___ns2__MeterValues(soap, &soap_tmp___ns2__MeterValues);
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___ns2__MeterValues(soap, &soap_tmp___ns2__MeterValues, "-ns2:MeterValues", 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___ns2__MeterValues(soap, &soap_tmp___ns2__MeterValues, "-ns2:MeterValues", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
if (!&ns2__meterValuesResponse)
return soap_closesock(soap);
ns2__meterValuesResponse.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);
ns2__meterValuesResponse.soap_get(soap, "ns2:meterValuesResponse", NULL);
if (soap->error)
return soap_recv_fault(soap, 0);
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap_closesock(soap);
return soap_closesock(soap);
}
int CentralSystemServiceSoapProxy::BootNotification(const char *endpoint, const char *soap_action, ns2__BootNotificationRequest *ns2__bootNotificationRequest, ns2__BootNotificationResponse &ns2__bootNotificationResponse)
{ struct soap *soap = this;
struct __ns2__BootNotification soap_tmp___ns2__BootNotification;
if (endpoint)
soap_endpoint = endpoint;
if (soap_endpoint == NULL)
soap_endpoint = "http://localhost/Ocpp/CentralSystemService/";
if (soap_action == NULL)
soap_action = "/BootNotification";
soap_tmp___ns2__BootNotification.ns2__bootNotificationRequest = ns2__bootNotificationRequest;
soap_begin(soap);
soap->encodingStyle = NULL;
soap_serializeheader(soap);
soap_serialize___ns2__BootNotification(soap, &soap_tmp___ns2__BootNotification);
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___ns2__BootNotification(soap, &soap_tmp___ns2__BootNotification, "-ns2:BootNotification", 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___ns2__BootNotification(soap, &soap_tmp___ns2__BootNotification, "-ns2:BootNotification", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
if (!&ns2__bootNotificationResponse)
return soap_closesock(soap);
ns2__bootNotificationResponse.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);
ns2__bootNotificationResponse.soap_get(soap, "ns2:bootNotificationResponse", NULL);
if (soap->error)
return soap_recv_fault(soap, 0);
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap_closesock(soap);
return soap_closesock(soap);
}
int CentralSystemServiceSoapProxy::StatusNotification(const char *endpoint, const char *soap_action, ns2__StatusNotificationRequest *ns2__statusNotificationRequest, ns2__StatusNotificationResponse &ns2__statusNotificationResponse)
{ struct soap *soap = this;
struct __ns2__StatusNotification soap_tmp___ns2__StatusNotification;
if (endpoint)
soap_endpoint = endpoint;
if (soap_endpoint == NULL)
soap_endpoint = "http://localhost/Ocpp/CentralSystemService/";
if (soap_action == NULL)
soap_action = "/StatusNotification";
soap_tmp___ns2__StatusNotification.ns2__statusNotificationRequest = ns2__statusNotificationRequest;
soap_begin(soap);
soap->encodingStyle = NULL;
soap_serializeheader(soap);
soap_serialize___ns2__StatusNotification(soap, &soap_tmp___ns2__StatusNotification);
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___ns2__StatusNotification(soap, &soap_tmp___ns2__StatusNotification, "-ns2:StatusNotification", 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___ns2__StatusNotification(soap, &soap_tmp___ns2__StatusNotification, "-ns2:StatusNotification", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
if (!&ns2__statusNotificationResponse)
return soap_closesock(soap);
ns2__statusNotificationResponse.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);
ns2__statusNotificationResponse.soap_get(soap, "ns2:statusNotificationResponse", NULL);
if (soap->error)
return soap_recv_fault(soap, 0);
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap_closesock(soap);
return soap_closesock(soap);
}
int CentralSystemServiceSoapProxy::FirmwareStatusNotification(const char *endpoint, const char *soap_action, ns2__FirmwareStatusNotificationRequest *ns2__firmwareStatusNotificationRequest, ns2__FirmwareStatusNotificationResponse &ns2__firmwareStatusNotificationResponse)
{ struct soap *soap = this;
struct __ns2__FirmwareStatusNotification soap_tmp___ns2__FirmwareStatusNotification;
if (endpoint)
soap_endpoint = endpoint;
if (soap_endpoint == NULL)
soap_endpoint = "http://localhost/Ocpp/CentralSystemService/";
if (soap_action == NULL)
soap_action = "/FirmwareStatusNotification";
soap_tmp___ns2__FirmwareStatusNotification.ns2__firmwareStatusNotificationRequest = ns2__firmwareStatusNotificationRequest;
soap_begin(soap);
soap->encodingStyle = NULL;
soap_serializeheader(soap);
soap_serialize___ns2__FirmwareStatusNotification(soap, &soap_tmp___ns2__FirmwareStatusNotification);
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___ns2__FirmwareStatusNotification(soap, &soap_tmp___ns2__FirmwareStatusNotification, "-ns2:FirmwareStatusNotification", 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___ns2__FirmwareStatusNotification(soap, &soap_tmp___ns2__FirmwareStatusNotification, "-ns2:FirmwareStatusNotification", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
if (!&ns2__firmwareStatusNotificationResponse)
return soap_closesock(soap);
ns2__firmwareStatusNotificationResponse.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);
ns2__firmwareStatusNotificationResponse.soap_get(soap, "ns2:firmwareStatusNotificationResponse", NULL);
if (soap->error)
return soap_recv_fault(soap, 0);
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap_closesock(soap);
return soap_closesock(soap);
}