The Service Implementation
The GreetingPortType service operations are implemented by the service implementation class GreetingPortTypeImp.
To implement the server, you may either implement the methods of this class or derive your own class from GreetingPortTypeBase. In this example, we will use the provided implementation GreetingPortTypeImp located at <installdir>\examples\HelloWorld.
#include <rwsf/webservice/Fault.h> //1
#include <rwsf/core/NamedObject.h>
#include "GreetingPortTypeImp.h"
RWSF_DEFINE_MESSAGE_HANDLER(GreetingPortTypeImp) //2
std::string
GreetingPortTypeImp::sayHello(rwsf::CallInfo& callInfo,
const std::string& hellorequest_in)
{
return std::string("Hello " + hellorequest_in); //3
}
The section
Compiling and Running the Application explains how to compile and run the example program.