uCosminexus Service Platform, First Step Guide User's Guide and Operator's Guide

[Contents][Glossary][Index][Back][Next]

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

Item Value to be set Description
Service component type Web Service Specify 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 name HelloServiceAdapter Specify the name of the service adapter to be defined.
WSDL file HelloService.wsdl Specify the WSDL file to be used.
For the Hello service adapter, use HelloService.wsdl (WSDL for the Hello service).
Port specification Hello Specify the port of the Hello service adapter.
Service ID HelAdp Specify the ID of the Hello service adapter.
Client definition file c4webcl.properties Specify 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