You need to:
  1. Receive the incoming request, which may not be from a Qt client.
  2. Interpret the request, validate provided parameters, check permissions etc.
  3. Call the relevant method(s) in the server code to service the request.
  4. Send the result back to the client.


You are asking about steps 2 and 3. You can do these any way you like. Step 2 might be disassembling a SOAP, XML-RPC or some other request packet. Step 3 involves some sort of mapping mechanism. There is no magic expose-this-method-on-the-net language extension in C++.