Commit 73fcb952 authored by Gozutok, Recep's avatar Gozutok, Recep
Browse files

Upload New File

parent 153f57ea
/* soapcurrentTimeProxy.cpp
Generated by gSOAP 2.8.28 from currentTime.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 "soapcurrentTimeProxy.h"
currentTimeProxy::currentTimeProxy() : soap(SOAP_IO_DEFAULT)
{ currentTimeProxy_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
}
currentTimeProxy::currentTimeProxy(const currentTimeProxy& rhs)
{ soap_copy_context(this, &rhs);
this->soap_endpoint = rhs.soap_endpoint;
}
currentTimeProxy::currentTimeProxy(const struct soap &_soap) : soap(_soap)
{ }
currentTimeProxy::currentTimeProxy(const char *url) : soap(SOAP_IO_DEFAULT)
{ currentTimeProxy_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
soap_endpoint = url;
}
currentTimeProxy::currentTimeProxy(soap_mode iomode) : soap(iomode)
{ currentTimeProxy_init(iomode, iomode);
}
currentTimeProxy::currentTimeProxy(const char *url, soap_mode iomode) : soap(iomode)
{ currentTimeProxy_init(iomode, iomode);
soap_endpoint = url;
}
currentTimeProxy::currentTimeProxy(soap_mode imode, soap_mode omode) : soap(imode, omode)
{ currentTimeProxy_init(imode, omode);
}
currentTimeProxy::~currentTimeProxy()
{
this->destroy();
}
void currentTimeProxy::currentTimeProxy_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://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},
{"ns", "urn:currentTime", NULL, NULL},
{NULL, NULL, NULL, NULL}
};
soap_set_namespaces(this, namespaces);
}
#ifndef WITH_PURE_VIRTUAL
currentTimeProxy *currentTimeProxy::copy()
{ currentTimeProxy *dup = SOAP_NEW_COPY(currentTimeProxy(*(struct soap*)this));
return dup;
}
#endif
currentTimeProxy& currentTimeProxy::operator=(const currentTimeProxy& rhs)
{ soap_copy_context(this, &rhs);
this->soap_endpoint = rhs.soap_endpoint;
return *this;
}
void currentTimeProxy::destroy()
{ soap_destroy(this);
soap_end(this);
}
void currentTimeProxy::reset()
{ this->destroy();
soap_done(this);
soap_initialize(this);
currentTimeProxy_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
}
void currentTimeProxy::soap_noheader()
{ this->header = NULL;
}
const SOAP_ENV__Header *currentTimeProxy::soap_header()
{ return this->header;
}
const SOAP_ENV__Fault *currentTimeProxy::soap_fault()
{ return this->fault;
}
const char *currentTimeProxy::soap_fault_string()
{ return *soap_faultstring(this);
}
const char *currentTimeProxy::soap_fault_detail()
{ return *soap_faultdetail(this);
}
int currentTimeProxy::soap_close_socket()
{ return soap_closesock(this);
}
int currentTimeProxy::soap_force_close_socket()
{ return soap_force_closesock(this);
}
void currentTimeProxy::soap_print_fault(FILE *fd)
{ ::soap_print_fault(this, fd);
}
#ifndef WITH_LEAN
#ifndef WITH_COMPAT
void currentTimeProxy::soap_stream_fault(std::ostream& os)
{ ::soap_stream_fault(this, os);
}
#endif
char *currentTimeProxy::soap_sprint_fault(char *buf, size_t len)
{ return ::soap_sprint_fault(this, buf, len);
}
#endif
int currentTimeProxy::currentTime(const char *endpoint, const char *soap_action, time_t &response)
{ struct soap *soap = this;
struct ns__currentTime soap_tmp_ns__currentTime;
struct ns__currentTimeResponse *soap_tmp_ns__currentTimeResponse;
if (endpoint)
soap_endpoint = endpoint;
if (soap_endpoint == NULL)
soap_endpoint = "http://localhost:8080/";
soap_begin(soap);
soap->encodingStyle = NULL;
soap_serializeheader(soap);
soap_serialize_ns__currentTime(soap, &soap_tmp_ns__currentTime);
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_ns__currentTime(soap, &soap_tmp_ns__currentTime, "ns:currentTime", 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_ns__currentTime(soap, &soap_tmp_ns__currentTime, "ns:currentTime", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
if (!&response)
return soap_closesock(soap);
soap_default_dateTime(soap, &response);
if (soap_begin_recv(soap)
|| soap_envelope_begin_in(soap)
|| soap_recv_header(soap)
|| soap_body_begin_in(soap))
return soap_closesock(soap);
soap_tmp_ns__currentTimeResponse = soap_get_ns__currentTimeResponse(soap, NULL, "ns:currentTimeResponse", NULL);
if (!soap_tmp_ns__currentTimeResponse || 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);
response = soap_tmp_ns__currentTimeResponse->response;
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