PreviousNext
Help > XML Easycom > Request XML stream > Bind tag
Bind tag

 This tag binds service programs to the current job. Exported procedure from service program become accessible for calls.

Bind tag can be expanded with the following elements.

 

<bind   type="file type"

        file="Library/File"

</bind>

 

Attribute

Value

Description

Type=

*SRVPGM

Sets the type of object to bind to the current server job.

Only *SRVPGM is allowed.

 

File=

Service Program

Name of the service program to bind to the current server job.
Name is given in the form "Library/File".
If library is omitted, special value *LIBL is used.

 

 

When the application has to call procedure from service programs, service programs need to be bound to the current job to make their exported procedure accessible.

 

For each service program, <bind> tag has to be executed only once for the XmlEasycom server job life. The service program remains bound to the job.

 

Example:

<?xml version="1.0" encoding="ISO-8859-1" ?>

<Easycom>

  <bind>

    <file type="*SRVPGM" name="RPGPRC01"/>

  </bind>

</Easycom>