5.3 Defining service adapters

In this section, define a service adapter by using the HelloServiceAdapter sample program, which calls a service adapter from the service requester.

You need to define a service adapter according to the service component to be called. The following table shows the values that you need to set when using the HelloServiceAdapter sample program to define a service adapter.

Table 5-1 Values that need to be set when using the HelloServiceAdapter sample program to define a service adapter

ItemValue to be setDescription
Service component typeWeb ServiceSpecify the type of service adapter that is set according to the type of service component to be called. Because the service component type of this sample program is a Web Service, specify Web Service.
Service nameHelloServiceAdapterSpecify the name of the service adapter to be defined.
WSDL fileHelloService.wsdlSpecify the WSDL file to be used.
For the Hello service adapter, use HelloService.wsdl (WSDL for the Hello service).
Port specificationHelloSpecify the port of the Hello service adapter.
Service IDHelAdpSpecify the ID of the Hello service adapter.
Client definition filec4webcl.propertiesSpecify the client definition file.
The client definition file controls the client-side behavior. The name of this file is fixed to c4webcl.properties.
The client definition file of this sample program contains the following entry:

c4web.logger.log_file_prefix=HelloService

This entry sets HelloService as the prefix of the trace file and application log.
Note:
For details about the location of each file, see A.1 Configuration of the HelloServiceAdapter sample program.

Organization of this section
5.3.1 Creating a service adapter
5.3.2 Validating and packaging a service adapter
5.3.3 Defining deployment of a service adapter