Hi!
If you do not mind a stronger coupling between server and client, then you may use RPC.
If you want a looser coupling and more flexibility, with the risk of some overhead due to marshalling and unmarshalling of XML or JSON data, then I would use a web service.
Note that with web services, there still are some choices:
- RESTful web service.
Suitable if there is a resource-oriented approach. For instance, a client can PUT a task resource to create a new task, receiving a task id.
The client can, after having obtained a task id, check the status of the task by performing a GET to the task resource supplying the id.
Etc.
-
SOAP web service.
More operation-oriented than RESTful web service. Has the advantage of automatic client artifact generation in, for instance Java and .NET.
- XML/JSON web service.
Raw XML or JSON over HTTP or some other protocol.
Hope there is anything you can use!
Best wishes!