I am working in ubuntu server 10.04
I am creating a test.h file which I want to contain 4 string values.
test.h
int ns__take(string name, string user, string eyes, string result); //the result will be a strcat //of name user and eyes
1.It is ok? Can i have string values in gsoap web service server?
2. In test.cpp can I write inside ns__take method result=strcat(name,user,eyes);?
3.With these string values how can I programatically open a file and write the values in that file?
Each time a client accesses the web service I would like to save the input parameters in a file
4. Can multiple clients access the webservice in the same time? Will this affect in a bad way the file where i want to write the input parameters?
Need some help! THX . I am new to gsoap wsdl web service.
EDIT:
HERE IS MY test.cpp
#include "soapH.h"
#include "tests.nsmap"
#include <math.h>
main()
{
soap_serve(soap_new());
}
int ns__take(struct soap *soap, std::string a, std::string b, std::string &result)
{
result=a+b;
//
..here i want to add the open file and write the values a,b.
do i need a synchronization if multiple clients acces in the same time the method?
how will that be?
//
return SOAP_OK;
}
I am compiling the tests.cgi using:
soapcpp2 test.h
> c++ -o tests.cgi test.cpp soapC.cpp soapServer.cpp -lgsoap++
result=name+user+eyesor some such,string, these arestd::stringclass object