Adapter Development Kit 6.5 | webMethods Adapter Development Kit Documentation | webMethods Adapter Development Kit Installation and User’s Documentation | Using the Sample Adapter | Phase 3: Adding Adapter Services | Implementing the Adapter Service Template
 
Implementing the Adapter Service Template
 
Implementing the execute Method in the FunctionInvocation Class
Revised Code From Phases 1 and 2
To define an adapter service template, you extend the class com.wm.adk.cci.interaction.WmAdapterService. For the Sample Adapter, the subclass FunctionInvocation was added in the com.wm.adapter.wmSampleAdapter.service Java package. When you configure this service template, it will be able to execute the functions against the Sample Server.
The adapter includes a utility class, DocumentHelp, in the com.wm.adapter.wmSampleAdapter.util Java package. This utility facilitates the data structure conversion from a Sample Server document and the Integration Server IData, and helps to decipher the adapter service and notification signature metadata received from the Sample Server repository.
The bean properties declared in the FunctionInvocation class are as follows:
Property
Description
functionName
The service function name. For a list of the functions, see Banking Functions.
inputParameterNames
The fully qualified input parameter names, including all the record structures and array indicators.
inputFieldNames
The fully qualified suggested input parameter signature names, including all the record structures and array indicators.
Note:
If you set the Boolean flag to true in the createFieldMap method, the adapter user will have the option to overwrite the suggested names. In this implementation, the user cannot change the names.
inputFieldTypes
The input parameter data types, including all the array indicators.
outputParameterNames
The fully qualified output parameter names, including all the record structures and array indicators.
outputFieldNames
The fully qualified suggested output parameter signature names, including all the record structures and array indicators. You cannot change these names.
outputFieldTypes
The output parameter data types, including all the array indicators.
The resource domains declared in the FunctionInvocation class are as follows:
Resource Domain Name
Description
functionNames
Looks up the list of service function names. For a list of the functions, see Banking Functions.
inputParameterNames
Looks up the fully qualified input parameter names, including all the record structures and array indicators.
inputFieldTypes
Looks up the input parameter data types, including all the array indicators.
outputParameterNames
Looks up the fully qualified output parameter names, including all the record structures and array indicators.
outputFieldTypes
Looks up the output parameter data types, including all the array indicators.