Service Adapters Responsibility

Topics: General Discussion Forum
Feb 22, 2007 at 2:30 PM
Edited Feb 22, 2007 at 2:31 PM
Can anyone describe a responsibilty of service adapters in RI?

In the RI, services implementation classes contain only a simple call to service adapter, without any additional processing.

What consideration were taken to provide service adapters along with service implementation classes?
Feb 23, 2007 at 4:38 PM
As I understand, service adapters will perform the validation of input messages and the translation between the Contracts objects (Message and Data) and the Business Entities. So these artifacts will provide these operations and therefore let the service implementation act as a simple interface for the service consumer. However, you may also add other addition logic before returning the response to the client or after passing control to the adapters like inspecting the incoming/outgoing message for custom headers or other stuff alike. Additionally you may have reusability between adapters whenever they are designed to share logic/interfaces among different service operations.

Charly