After you call a server program, you can use ProgramCallDocument.getValue
methods to retrieve the Java™ objects
that represent program parameter values.
Additionally, the following generateXPCML methods enable
ProgramCallDocument to return the results of a program call as XPCML:
- generateXPCML(String fileName): Generates results in XPCML for
the entire XPCML source file that you used to construct the ProgramCallDocument
object. Stores the XPCML in a file with the specified file name.
- generateXPCML(String pgmName, String fileName): Generates results
in XPCML for only the specified program and its parameters. Stores
the XPCML in a file with the specified file name.
- generateXPCML(java.io.OutputStream outputStream): Generates results
in XPCML for the entire XPCML source file. Stores the XPCML in the
specified OutputStream object.
- generateXPCML(String pgmName, java.io.OutputStream outputStream):
Generates results in XPCML for only the specified program and its
parameters. Stores the XPCML in the specified OutputStream object.
For more information about the ProgramCallDocument class,
see the ProgramCallDocument Javadoc information.
The following
example shows how you can construct an XPCML ProgramCallDocument,
call an IBM® i program, and retrieve the results of the program call as XPCML.
Example: Retrieving program call results as XPCML