Commit 93191a35 authored by Gozutok, Recep's avatar Gozutok, Recep
Browse files

Upload New File

parent 565dcb86
#include "soapcurrentTimeService.h" // include the proxy declarations
#include "currentTime.nsmap" // include the XML namespace mappings
int main()
{
// create server and serve one CGI-based request:
currentTimeService server;
//server.serve();
std::cout << "Starting Server ..." << std::endl;
while (server.run(8080) != SOAP_TCP_ERROR)
server.soap_stream_fault(std::cerr);
std::cout << "Destroying Server... " << std::endl;
server.destroy();
}
int currentTimeService::currentTime(time_t& response)
{
response = time(0);
return SOAP_OK;
}
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