Commit 7d99321b authored by Gozutok, Recep's avatar Gozutok, Recep
Browse files

Upload New File

parent e578f3ef
/* soapreserveProxy.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 "soapreserveProxy.h"
reserveProxy::reserveProxy() : soap(SOAP_IO_DEFAULT)
{ reserveProxy_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
}
reserveProxy::reserveProxy(const reserveProxy& rhs)
{ soap_copy_context(this, &rhs);
this->soap_endpoint = rhs.soap_endpoint;
}
reserveProxy::reserveProxy(const struct soap &_soap) : soap(_soap)
{ }
reserveProxy::reserveProxy(const char *url) : soap(SOAP_IO_DEFAULT)
{ reserveProxy_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
soap_endpoint = url;
}
reserveProxy::reserveProxy(soap_mode iomode) : soap(iomode)
{ reserveProxy_init(iomode, iomode);
}
reserveProxy::reserveProxy(const char *url, soap_mode iomode) : soap(iomode)
{ reserveProxy_init(iomode, iomode);
soap_endpoint = url;
}
reserveProxy::reserveProxy(soap_mode imode, soap_mode omode) : soap(imode, omode)
{ reserveProxy_init(imode, omode);
}
reserveProxy::~reserveProxy()
{
this->destroy();
}
void reserveProxy::reserveProxy_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
reserveProxy *reserveProxy::copy()
{ reserveProxy *dup = SOAP_NEW_COPY(reserveProxy(*(struct soap*)this));
return dup;
}
#endif
reserveProxy& reserveProxy::operator=(const reserveProxy& rhs)
{ soap_copy_context(this, &rhs);
this->soap_endpoint = rhs.soap_endpoint;
return *this;
}
void reserveProxy::destroy()
{ soap_destroy(this);
soap_end(this);
}
void reserveProxy::reset()
{ this->destroy();
soap_done(this);
soap_initialize(this);
reserveProxy_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
}
void reserveProxy::soap_noheader()
{ this->header = NULL;
}
void reserveProxy::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 *reserveProxy::soap_header()
{ return this->header;
}
const SOAP_ENV__Fault *reserveProxy::soap_fault()
{ return this->fault;
}
const char *reserveProxy::soap_fault_string()
{ return *soap_faultstring(this);
}
const char *reserveProxy::soap_fault_detail()
{ return *soap_faultdetail(this);
}
int reserveProxy::soap_close_socket()
{ return soap_closesock(this);
}
int reserveProxy::soap_force_close_socket()
{ return soap_force_closesock(this);
}
void reserveProxy::soap_print_fault(FILE *fd)
{ ::soap_print_fault(this, fd);
}
#ifndef WITH_LEAN
#ifndef WITH_COMPAT
void reserveProxy::soap_stream_fault(std::ostream& os)
{ ::soap_stream_fault(this, os);
}
#endif
char *reserveProxy::soap_sprint_fault(char *buf, size_t len)
{ return ::soap_sprint_fault(this, buf, len);
}
#endif
int reserveProxy::ReserveNow(const char *endpoint, const char *soap_action, ns1__ReserveNowRequest *ns1__reserveNowRequest, ns1__ReserveNowResponse &ns1__reserveNowResponse)
{ struct soap *soap = this;
struct __ns1__ReserveNow soap_tmp___ns1__ReserveNow;
if (endpoint)
soap_endpoint = endpoint;
if (soap_endpoint == NULL)
soap_endpoint = "http://localhost:8080/";
if (soap_action == NULL)
soap_action = "";
soap_tmp___ns1__ReserveNow.ns1__reserveNowRequest = ns1__reserveNowRequest;
soap_begin(soap);
soap->encodingStyle = NULL;
soap_serializeheader(soap);
soap_serialize___ns1__ReserveNow(soap, &soap_tmp___ns1__ReserveNow);
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__ReserveNow(soap, &soap_tmp___ns1__ReserveNow, "-ns1:ReserveNow", 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__ReserveNow(soap, &soap_tmp___ns1__ReserveNow, "-ns1:ReserveNow", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
if (!&ns1__reserveNowResponse)
return soap_closesock(soap);
ns1__reserveNowResponse.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__reserveNowResponse.soap_get(soap, "ns1:reserveNowResponse", 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);
}
/* End of client proxy code */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment