The Generated Sample Implementation
The generated sample implementation provides a simple implementation for the service. 
The generated sample header, DayOfWeekPortTypeImp.h, shows the basic structure of a class derived from the server implementation base class. The code below shows the implementation declaration from the file:
 
#include "DayOfWeekExample/DayOfWeekPortTypeBase.h"               //1
{
class DAYOFWEEKPORTTYPESERVICESAMPLE_DECLSPEC
         DayOfWeekPortTypeImp :  public DayOfWeekPortTypeBase     //2
public:
  virtual std::string getDayOfWeek(rwsf::CallInfo& callInfo,      //3
                                 const std::string& date_in);
};
Now let’s look at the generated sample implementation (named DayOfWeekPortTypeImp.cpp).
 
#include "DayOfWeekPortTypeImp.h"                               //1
 
RWSF_DEFINE_MESSAGE_HANDLER(DayOfWeekPortTypeImp)               //2
 
std::string DayOfWeekPortTypeImp::getDayOfWeek(rwsf::CallInfo& callInfo,const
   std::string& date_in)
{
  typedef std::string returnType;
 
  throw rwsf::ServerFault("Sorry: the service was invoked but the "
               "requested operation \"getDayOfWeek\" has "
               "not been implemented. An implementation "
               "must be written.");                             //3
  return returnType(); // (never executed)                      //4 
}