ProLinga-Soap Project |
---|
Soap Service — Classes used to implement SOAP service functionality.
#include <prolinga/Soap.hpp> class PlSoapService { public:PlSoapService (); ~PlSoapService ();int soapServiceStart (char *server_host,int server_port,int num_threads,int server_comp,char *log_file,int log_level); ... }; typedef PlSoapService *PlSoapServicePtr; class PlSoapProcess { public:PlSoapProcess (); ~PlSoapProcess ();xmlDocPtr getRequest (void );void putResponse (xmlDocPtr docResponse); ... }; typedef PlSoapProcess *PlSoapProcessPtr;
int PlSoapService::soapServiceStart (char *server_hostint server_port,int num_threads,int server_comp,char *log_file,int log_level);
This function is called to start the Soap service. The service will wait and listen for
for any requests coming in. Function PlSoapLink
will get called
for the processing of such a request. Within that function class
Keep in mind that the function PlSoapService::soapServiceStart
will start
an infinite for-loop, so code placed after this function will not be executed. If however you need to
execute code after shutting down the service, you can start this function in a forked process.
| the name or IP number the machine will bind to. Default is localhost. |
| the TCP port number the machine will bind to. Default is 8001. |
| the number of threads you want to run with. Default is 5. |
| the level of compression of request/response files before sending (0-9, 9=best).No Default. |
| the path and name of the log file. Default is /usr/tmp/prolingaSoap.log. |
| the level of logging (0-5).No Default. |
Returns : | error status in case the service falls over. |
xmlDocPtr PlSoapProcess::getRequest (void );
This function returns the current request.
Returns : | the current request as libxml2 document. Do NOT try to free/de-allocate the request, since it can make the system unstable. Internal class functions take care of this. |
<< Part I. ProLinga-Soap C++ API | Soap Client >> |