![]() |
Start Here
Setup
Adapters
Studio
Server
Monitor
Mapping
Scripting
Samples
Index
|
iSeries PCML Task |
Plugin Adapters
Common
XML
HL7
Text
Database
Messaging
Mail
iSeries The PCML Task enables you to call iSeries (formerly AS/400) programs. The inputs and outputs of the iSeries program are specified using a Program Call Markup Language (PCML) document. PCML is an XML standard, which defines the structure of program and their parameters. Valid PCML documents specify the input and output parameters of one or more iSeries programs. When PCML documents are used with the JTOpen library's ProgramCallDocument class, it is possible to call iSeries programs quickly and easily. More importantly, the conversion of Unicode String data to the appropriate iSeries character format (or number format) is automatically handled. At runtime, the PCML Task accepts the input XML document that conforms to the input schema. The PCML document specified by the user is read in. The call is made to the specified iSeries program with the parameter values extracted from the input XML document. If the program call succeeded, the PCML Task gets the return values from the program call and constructs an output XML document that conforms to the task's output schema. If the program call failed, the task will set a failureModel, which conforms to the task's failure schema and throws an Exception; any task linked to the PCML Task's Failure port can then handle the failure.
|