Service stubs enable you to simulate the behavior of an actual
service for a wide variety testing or integration purposes.
Service stub overview
Service stubs are simulations
of an actual service, which can be used to functionally replace the
service in a test environment. A stub server replaces the actual application
server.
Creating a service stub
You can use a WSDL (Web Service Description Language) specification
file to generate a service stub that can simulate the behavior of
the original service and uses the exact same interface.
Editing a service stub
Service stubs are generated with a single default response
for each operation in the WSDL specification. You can edit the service
stub to change the default responses or to add conditional responses
that can simulate the actual service.
Deploying service stubs
You deploy and run service stubs on a stub server, which
is a small application server dedicated to running service stubs.
The client application, or test, addresses the stub server instead
of the actual application of the original service.
Recording service stub activity in a log file
With service stub logging, you can monitor the interactions
between an application and the stub server. When the option is enabled,
one log file is created for each deployed stub. The log files are
presented as a formatted HTML report.
Setting log level for service stubs
While recording a service test, you can set the level of
the log details that you want to collect for debugging purposes.