// dial_ws_base_imp.cxx // Here we define the gsoap service functions for namespace base. #include #include "dial_ws/GsoapRegistry.h" #include "dial_ws/DialWs.h" #include "../gsoap/dial_ws_baseH.h" using std::string; using std::ostream; using std::cout; using std::endl; using std::ofstream; using dial::DialWs; extern SOAP_NMAC struct Namespace dial_ws_base_namespaces[]; //********************************************************************** // Helper functions. //********************************************************************** namespace { // Initialization. int init() { return 0; } int init_http() { return 0; } // Registration. int dial_ws_base_reg = dial::GsoapRegistry::insert( "base", init, dial_ws_base_serve, dial_ws_base_namespaces); int dial_ws_base_reg_http = dial::GsoapRegistry::insert( "base_http", init_http, dial_ws_base_serve, dial_ws_base_namespaces); } //********************************************************************** // SOAP functions for Scheduler. //********************************************************************** // Validity. int dial__is_valid(soap*, bool& valid) { DialWs::lout() << ">>>Received validity request" << endl; valid = true; return SOAP_OK; } //********************************************************************** // Terminate service. int dial__terminate(soap*, int& result) { DialWs::terminate() = true; result = 0; DialWs::lout() << ">>>Received service termination request" << endl; return SOAP_OK; } //**********************************************************************