The figure illustrates a Web service call-in. A request for a type of database service arrives at the application server and the service endpoint specifies the type of service requested. The JAX-RPC processing servlet references the SOAP libraries and XML parser to decode the request. The servlet passes the request to the classes that correspond to the exposed database operations. The database passes the response to the JAX-RPC processing servlet which references the SOAP libraries and XML parser to encode it. A SOAP response formed in accordance with the WSDL is returned to the client. The steps listed in the text below more fully describe this figure.