Commit 259db23a authored by Gozutok, Recep's avatar Gozutok, Recep
Browse files

Upload New File

parent a1b60ebd
/* soapCentralSystemServiceSoapProxy.cpp
Generated by gSOAP 2.8.28 from soap.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://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(char *ns1__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->ns1__chargeBoxIdentity = ns1__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, ns1__AuthorizeRequest *ns1__authorizeRequest, ns1__AuthorizeResponse &ns1__authorizeResponse)
{ struct soap *soap = this;
struct __ns1__Authorize soap_tmp___ns1__Authorize;
if (endpoint)
soap_endpoint = endpoint;
if (soap_endpoint == NULL)
soap_endpoint = "http://130.149.159.42:9000/soap/CS";
if (soap_action == NULL)
soap_action = "/Authorize";
soap_tmp___ns1__Authorize.ns1__authorizeRequest = ns1__authorizeRequest;
soap_begin(soap);
soap->encodingStyle = NULL;
soap_serializeheader(soap);
soap_serialize___ns1__Authorize(soap, &soap_tmp___ns1__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___ns1__Authorize(soap, &soap_tmp___ns1__Authorize, "-ns1: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___ns1__Authorize(soap, &soap_tmp___ns1__Authorize, "-ns1:Authorize", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
if (!&ns1__authorizeResponse)
return soap_closesock(soap);
ns1__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);
ns1__authorizeResponse.soap_get(soap, "ns1: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, ns1__StartTransactionRequest *ns1__startTransactionRequest, ns1__StartTransactionResponse &ns1__startTransactionResponse)
{ struct soap *soap = this;
struct __ns1__StartTransaction soap_tmp___ns1__StartTransaction;
if (endpoint)
soap_endpoint = endpoint;
if (soap_endpoint == NULL)
soap_endpoint = "http://130.149.159.42:9000/soap/CS";
if (soap_action == NULL)
soap_action = "/StartTransaction";
soap_tmp___ns1__StartTransaction.ns1__startTransactionRequest = ns1__startTransactionRequest;
soap_begin(soap);
soap->encodingStyle = NULL;
soap_serializeheader(soap);
soap_serialize___ns1__StartTransaction(soap, &soap_tmp___ns1__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___ns1__StartTransaction(soap, &soap_tmp___ns1__StartTransaction, "-ns1: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___ns1__StartTransaction(soap, &soap_tmp___ns1__StartTransaction, "-ns1:StartTransaction", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
if (!&ns1__startTransactionResponse)
return soap_closesock(soap);
ns1__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);
ns1__startTransactionResponse.soap_get(soap, "ns1: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, ns1__StopTransactionRequest *ns1__stopTransactionRequest, ns1__StopTransactionResponse &ns1__stopTransactionResponse)
{ struct soap *soap = this;
struct __ns1__StopTransaction soap_tmp___ns1__StopTransaction;
if (endpoint)
soap_endpoint = endpoint;
if (soap_endpoint == NULL)
soap_endpoint = "http://130.149.159.42:9000/soap/CS";
if (soap_action == NULL)
soap_action = "/StopTransaction";
soap_tmp___ns1__StopTransaction.ns1__stopTransactionRequest = ns1__stopTransactionRequest;
soap_begin(soap);
soap->encodingStyle = NULL;
soap_serializeheader(soap);
soap_serialize___ns1__StopTransaction(soap, &soap_tmp___ns1__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___ns1__StopTransaction(soap, &soap_tmp___ns1__StopTransaction, "-ns1: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___ns1__StopTransaction(soap, &soap_tmp___ns1__StopTransaction, "-ns1:StopTransaction", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
if (!&ns1__stopTransactionResponse)
return soap_closesock(soap);
ns1__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);
ns1__stopTransactionResponse.soap_get(soap, "ns1: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, ns1__HeartbeatRequest *ns1__heartbeatRequest, ns1__HeartbeatResponse &ns1__heartbeatResponse)
{ struct soap *soap = this;
struct __ns1__Heartbeat soap_tmp___ns1__Heartbeat;
if (endpoint)
soap_endpoint = endpoint;
if (soap_endpoint == NULL)
soap_endpoint = "http://130.149.159.42:9000/soap/CS";
if (soap_action == NULL)
soap_action = "/Heartbeat";
soap_tmp___ns1__Heartbeat.ns1__heartbeatRequest = ns1__heartbeatRequest;
soap_begin(soap);
soap->encodingStyle = NULL;
soap_serializeheader(soap);
soap_serialize___ns1__Heartbeat(soap, &soap_tmp___ns1__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___ns1__Heartbeat(soap, &soap_tmp___ns1__Heartbeat, "-ns1: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___ns1__Heartbeat(soap, &soap_tmp___ns1__Heartbeat, "-ns1:Heartbeat", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
if (!&ns1__heartbeatResponse)
return soap_closesock(soap);
ns1__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);
ns1__heartbeatResponse.soap_get(soap, "ns1: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, ns1__MeterValuesRequest *ns1__meterValuesRequest, ns1__MeterValuesResponse &ns1__meterValuesResponse)
{ struct soap *soap = this;
struct __ns1__MeterValues soap_tmp___ns1__MeterValues;
if (endpoint)
soap_endpoint = endpoint;
if (soap_endpoint == NULL)
soap_endpoint = "http://130.149.159.42:9000/soap/CS";
if (soap_action == NULL)
soap_action = "/MeterValues";
soap_tmp___ns1__MeterValues.ns1__meterValuesRequest = ns1__meterValuesRequest;
soap_begin(soap);
soap->encodingStyle = NULL;
soap_serializeheader(soap);
soap_serialize___ns1__MeterValues(soap, &soap_tmp___ns1__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___ns1__MeterValues(soap, &soap_tmp___ns1__MeterValues, "-ns1: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___ns1__MeterValues(soap, &soap_tmp___ns1__MeterValues, "-ns1:MeterValues", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
if (!&ns1__meterValuesResponse)
return soap_closesock(soap);
ns1__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);
ns1__meterValuesResponse.soap_get(soap, "ns1: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, ns1__BootNotificationRequest *ns1__bootNotificationRequest, ns1__BootNotificationResponse &ns1__bootNotificationResponse)
{ struct soap *soap = this;
struct __ns1__BootNotification soap_tmp___ns1__BootNotification;
if (endpoint)
soap_endpoint = endpoint;
if (soap_endpoint == NULL)
soap_endpoint = "http://130.149.159.42:9000/soap/CS";
if (soap_action == NULL)
soap_action = "/BootNotification";
soap_tmp___ns1__BootNotification.ns1__bootNotificationRequest = ns1__bootNotificationRequest;
soap_begin(soap);
soap->encodingStyle = NULL;
soap_serializeheader(soap);
soap_serialize___ns1__BootNotification(soap, &soap_tmp___ns1__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___ns1__BootNotification(soap, &soap_tmp___ns1__BootNotification, "-ns1: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___ns1__BootNotification(soap, &soap_tmp___ns1__BootNotification, "-ns1:BootNotification", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
if (!&ns1__bootNotificationResponse)
return soap_closesock(soap);
ns1__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);
ns1__bootNotificationResponse.soap_get(soap, "ns1: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, ns1__StatusNotificationRequest *ns1__statusNotificationRequest, ns1__StatusNotificationResponse &ns1__statusNotificationResponse)
{ struct soap *soap = this;
struct __ns1__StatusNotification soap_tmp___ns1__StatusNotification;
if (endpoint)
soap_endpoint = endpoint;
if (soap_endpoint == NULL)
soap_endpoint = "http://130.149.159.42:9000/soap/CS";
if (soap_action == NULL)
soap_action = "/StatusNotification";
soap_tmp___ns1__StatusNotification.ns1__statusNotificationRequest = ns1__statusNotificationRequest;
soap_begin(soap);
soap->encodingStyle = NULL;
soap_serializeheader(soap);
soap_serialize___ns1__StatusNotification(soap, &soap_tmp___ns1__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___ns1__StatusNotification(soap, &soap_tmp___ns1__StatusNotification, "-ns1: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___ns1__StatusNotification(soap, &soap_tmp___ns1__StatusNotification, "-ns1:StatusNotification", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
if (!&ns1__statusNotificationResponse)
return soap_closesock(soap);
ns1__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);
ns1__statusNotificationResponse.soap_get(soap, "ns1: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, ns1__FirmwareStatusNotificationRequest *ns1__firmwareStatusNotificationRequest, ns1__FirmwareStatusNotificationResponse &ns1__firmwareStatusNotificationResponse)
{ struct soap *soap = this;
struct __ns1__FirmwareStatusNotification soap_tmp___ns1__FirmwareStatusNotification;
if (endpoint)
soap_endpoint = endpoint;
if (soap_endpoint == NULL)
soap_endpoint = "http://130.149.159.42:9000/soap/CS";
if (soap_action == NULL)
soap_action = "/FirmwareStatusNotification";
soap_tmp___ns1__FirmwareStatusNotification.ns1__firmwareStatusNotificationRequest = ns1__firmwareStatusNotificationRequest;
soap_begin(soap);
soap->encodingStyle = NULL;
soap_serializeheader(soap);
soap_serialize___ns1__FirmwareStatusNotification(soap, &soap_tmp___ns1__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___ns1__FirmwareStatusNotification(soap, &soap_tmp___ns1__FirmwareStatusNotification, "-ns1: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___ns1__FirmwareStatusNotification(soap, &soap_tmp___ns1__FirmwareStatusNotification, "-ns1:FirmwareStatusNotification", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
if (!&ns1__firmwareStatusNotificationResponse)
return soap_closesock(soap);
ns1__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);
ns1__firmwareStatusNotificationResponse.soap_get(soap, "ns1: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);
}