What is the basic structure of an enterprise service?
An enterprise service is composed of two things: the service interface and the service implementation . The interface is a structure defined by a WSDL file and code that sends and receives messages to and from applications and other services that wish to consume the service, and the implementation contains the functionality and performs the actual work.
The interface itself is composed of service operations, or the specific ways a service is invoked. Each service operation has an interface and implementation that understand information received by the service, perform any transformation that takes place, manage any persistent state that is changed, and prepare any information sent back to the caller. Also present is a piece of metadata—the service documentation—that explains the functionality and other inner workings of the service implementation.
It's important to understand that each piece of functionality contained within the service requires a service operation to expose that piece for consumption by a service call from an application. For extremely simple services, only one service operation may be present. But most have at least several operations. Enterprise services are always a gateway to functionality that is provided by an existing system called a service provider, which may exist in the form of an exposed enterprise application or which might be built from scratch. Figure 4-10 shows the relationship between service ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access