Syntax diagram for web service job types

Purpose

If you set JOBTYPE to (/web service), you can run an existing web service:

This section provides detailed information about the syntax diagram for the web service job type.

Format


1  JOBREC?  JOBPWD (
2.1! NO
2.1 YES
2.1 AGENT
1 )  JOBTYPE (
2.1 /web service
1 )?  JOBUSR (  user name )  OPNAME (  operation name )
1+ 
1  PARMid (  parameter )
1  ...
2  URL (  web service URL )
2?  WSNAME (  workstation name )

Parameters

JOBPWD(YES|NO|AGENT)
Specifies if the user name entered in JOBUSR or set by using the job-submit exit EQQUX001 is associated with a password.

If you set JOBPWD to YES, HCL Workload Automation for Z searches for the user password in the USRPSW keyword of the USRREC statement (for details, see Customization and Tuning).

If you set JOBPWD to AGENT, this means that the password is resolved locally on the agent. The password must have been defined on the agent by means of the param command. This feature is available independently of the operating system of the workstation.

Typically, the password is required for users who schedule jobs to run on Windows workstations. Set JOBPWD to NO if the user works with UNIX workstations and if no password is required.

JOBTYPE(/xajob/access method name|/j2ee/jms|/web service|/file transfer|/database|/java)
To run a web service job, specify /web service. For information about the other types of job, see the specific section for each job type. This keyword is required.
/web service
Set this value to submit a web service job.
JOBUSR(user name)
The user name for accessing the web service, if required.
If the user schedules jobs to run on Windows workstations, ensure that a user password is also defined (see the JOBPWD keyword).
  • If you are defining a Windows domain user, use the following format:
    JOBUSR(domainName\user1)
  • If you are defining a Windows user in the username@internet_domain format, use the following format:
    JOBUSR('administrator@mywindom.com')

To specify the user name, you can also use the job-submit exit EQQUX001. This user name overrides the value specified for JOBUSR. In turn, the value specified for JOBUSR overrides the value specified for USRNAM in the USRREC statement.

OPNAME(operation name)
The name of the operation to run. This keyword is required.
PARMid(parameter)
The parameter to be used when running the script or command. You can specify a series of PARMid keywords, where id is a unique numeric value, including null and zero.
URL(web service URL)
The URL of the web service to be called. This keyword is required.
WSNAME(workstation_name)
The name of the workstation from which user name and password must be retrieved. User name and password can be specified in the statement, using the JOBUSR and JOBPWD keywords, or can be associated to a workstation with the USRREC statement. With the WSNAME keyword, you can specify a workstation where the user name and password are stored, which is different from the workstation where the job runs.

Examples

The following is an example of a JOBREC statement to call a web service that calculates the sum of the specified parameters:
//JOBREC                                                                
	JOBTYPE(/web service)                                                
	PARM1(10)                                                            
	PARM2(20)                                                            
	JOBUSR(administrator)                                                
	JOBPWD(YES)                                                          
	OPNAME(getSum)                                                       
	URL(http://manchester.testlab.uk.service.com:9467/Sum/services/Sum/wsdl/Sum.wsdl)
//END JOBREC