Calling Natural Objects

Each generated Natural client will have the following parameter interface:

PARAMETER                             
 01 CALL-PARMS                         
   02 BROKER-ID (A32)                  
   02 SERVER-NAME (A80)                
   02 SERVER-CLASS (A80)               
   02 SERVER-SERVICE (A80)             
 01 #METHOD (A32)                      
 PARAMETER                             
 ...[your service parameters]...

Start of instruction setTo invoke the service locally

  • Do not supply values for the fields in the CALL-PARMS structure.

Start of instruction setTo invoke the service via EntireX

  • Supply the values for your Dispatch server in the CALL-PARMS structure (in SERVER-NAME).

    The default values in the CALL-PARMS structure are:

    • SERVER-NAME=DISPATCH

    • SERVICE-CLASS=BUSINESS

    • SERVER-SERVICE=MAIN

Tip:
You can also use the CSXCSQI supplied sample routine in the SYSCSTX library to automatically configure the CALL-PARMS interface when your client is invoked. For more information, refer to the source for CSXCSQI.