Web Services, Java and Messaging Job
The following tables describes the Web Services, Java and Messaging job type attributes.
Web Services Job
Control-M for Web Services enables you to schedule standard Web services, servlets and RESTful Web services.
The following table describes the Web Services job type attributes.
Attribute |
Description |
---|---|
Connection Profile |
Determines the authorization credentials that are used to connect Control-M to Web Services. Rules:
No special characters can be included with the name definition. Variable Names:
For more information about creating a local connection profile for this job, see Creating a Control-M for Web Services connection profile. |
URL/WSDL |
Defines a URL or fully qualified filename pointing to the WSDL of the web service. Rules:
Variable Names
|
Service |
Defines a service provided by the company or business. Rules:
Variable Name: %%WS-SERVICE |
Method (REST) |
Determines the one of the following HTTP methods used when executing the REST job:
Rules:
Variable Name: %%WS-SERVICE |
Path |
Defines a path available for the method specified in the Method field. Rules:
Variable Name: %%WS-OPERATION |
Operation |
Defines an operation available for the service specified in the service field. Rules:
Variable Name: %%WS-OPERATION |
Use parameters from input file |
Enables you to invoke the target web service with predefined SOAP message from the specified input file. Rules:
Variable Name: %%WS-INPUTPUTFILE |
Edit SOAP Request/Edit Body Request |
Enables you to generate your own SOAP request for REST web services. WS-SOAPREQUEST-Pxxx-STR Represents part of the SOAP request string. xxx in Pxxx represents the xxxth part of the SOAP request string divided in numerical order. |
Add SOAP Header from file |
Adds a predefined SOAP Header to the invocation of the target web service SOAP message, taken from a file specified in the Header File field. Rules:
Variable Name: %%WS-SOAPHEADERFILE |
Input parameters |
Defines values for each selected parameter. Rules:
Variable Name: %%WS-PARMS-P00n-NAME Where n refers to the nth parameter of the corresponding method. For example, if there were two parameters for a particular method, the first parameter would use P001(%%WS-PARMS-P001-NAME), and the second parameter would use P002 (%%WS-PARMS-P002-NAME). |
HTTP Code |
Enables you to enter the different Job output data based on the HTTP return status code. Variable Name: %%WS-OUTPARMS-Pxxx-HTTPCODE |
Array Size |
Defines a number of items in an input parameter array applicable to the Input parameters of the web services invocation when necessary. Rules:
Variable Name: %%WS-ARRAYSIZE |
Output parameters |
Defines the outcome of selected output parameters. Rules:
Variable Name: %%WS-PARMS-P001-VALUE P001 represents the number of the parameter for the chosen method. For example, if there were two parameters for a particular method, the second parameter would use P002 instead of P001 (%%WS-PARMS-P002-VALUE) |
Exclude Job Output |
Excludes information about Job output from the Output at the end of a Job execution. Variable Name: %%WS-SYSOUTSKIP |
No Output Banner |
Defines whether an Output banner is written to the Output at the end of a Job execution. Variable Name: %%WS-NOSYSOUTBANNER Jobs only end Not OK when an exception occurs from the Java method. If this happens, the job end status is set to Not OK and the exception is printed into the output. If a system.exit() command is executed, Control-M for Java converts the call into an exception. This means that the job ends Not OK, and the detailed exception is displayed in the Output. In all other cases, jobs end OK. |
Override URL Endpoint |
Defines the URL endpoint at the Job definition level. Upon Job submission Control-M for Web Services uses Job definition's Endpoint URL rather than the URL. Case sensitive. Variable Name: %%WS-URLENDPOINT |
Preemptive authentication |
Enables you to enter the HTTP Basic Authentication information in the format of <user>@<realm> that matches the information in HTTP Basic Authentication field in the Control-M for Web Services Connection Profile Management (CCM). Variable Name: %%BPI-PREAUTH |
Override CONTENT-TYPE |
Defines a preferred HTTP header Content-Type to be used to execute the Job. Case sensitive Variable Name: %%WS-CONTENTTYPE |
Override connection timeout (sec) |
Limits the connection time when waiting for the web service to respond before disconnecting. Variable Name: %%WS-CONNECTIONTIMEOUT |
Java Job
Control-M for Java enables you to schedule a Java class or a J2EE Enterprise Java Beans (EJBs) running on a J2EE application server (such as IBM WebSphere, BEA WebLogic, JBoss, and SAP NetWeaver).
The following table describes the Java job type attributes.
Attribute |
Description |
---|---|
Connection Profile |
Determines the authorization credentials that are used to connect Control-M to Java. Rules:
For more information about creating a local connection profile for this job, see Creating a Control-M for Java connection profile. |
Object |
Defines Enterprise Java Bean or Java Class according to which the Method parameter value is specified. Rules:
Variable Name: %%JAVA-JAVA |
Method |
Determines the method to be invoked to the specified Java Application class. Rules:
Variable Name: %%JAVA-METHOD |
Type |
Defines the type of the parameter for the chosen method. Rules:
Variable Name: %%JAVA-TYPE |
Value |
Defines the parameter value for the chosen method. Rules:
Variable Name: %%JAVA-PARMS-P001-VALUE P001 represents the number of the parameter for the chosen method. For example, if there were two parameters for a particular method, the second parameter would use P002 instead of P001 (%%JAVA-PARMS-P002-VALUE).%%JAVA-METHOD |
Name |
Defines the name of the parameter for the chosen method. Rules:
Variable Name: %%JAVA-PARMS-P001-VALUE P001 represents the number of the parameter for the chosen method. For example, if there were two parameters for a particular method, the second parameter would use P002 instead of P001 (%%JAVA-PARMS-P002-VALUE).%%JAVA-METHOD |
Exclude Job Output |
Excludes information about job output from the Output at the end of a job execution. |
No Output Banner |
Determines whether an output banner is written to the Output at the end of a job execution. |
Messaging Job
Control-M for Messaging enables you to send or receive a JMS or IBM WebSphereMQ Series message to the message queue of another application.
The following table describes the Messaging job type attributes.
Attribute |
Description |
---|---|
Connection Profile |
Determines the authorization credentials that are used to connect Control-M to Messaging. Rules:
For more information about creating a local connection profile for this job, see Creating a Control-M for Messaging connection profile. |
Action Type |
Determines the action that the job performs, as follows:
|
Use predefined message |
Defines the content of the message as the previously defined text or binary file as the content of the message. Rules:
Variable Name: %%MSG-USEPREDEFINEDMSG |
Use free text message |
Defines the content of the free text message. Rule: Any alphanumeric and special characters. The period character (.) is not permitted. Certain special characters are internally represented by more than one character. For example, ampersand (&) is represented internally by three characters. Variable Name: %%MSG-USEFREETEXT |
Advanced Messaging Settings |
Enables you to change predefined message settings, as described in Advanced Message Settings. |
Job Output Assignment |
Enables you to save reply message into a chosen variable. Rules:
|
Job Output |
Determines the content of the job output, with options as follows:
|
Advanced Message Settings
The following table describes the Advanced Message Settings attributes.
Attribute |
Description |
---|---|
Outgoing Message |
Defines the outgoing message. |
Destination Queue/Topic |
Defines the names of the message queues where the outgoing messages are sent, with options as follows:
Rules:
Separate message queues with the comma. If the primary queue cannot be reached, the job uses the secondary queue. Variable Name: %%MSG-DESTINATIONQUEUE |
Priority |
Determines the level for prioritizing the messages that are to be routed to the Destination queue/Topic, with options as follows:
Variable Name: %%MSG-PRIORITY |
Expiration Time (sec) |
Defines the amount of time (in seconds) until the outgoing message expires, with options as follows:
Invalid Characters: Blank spaces. Variable Name: %%MSG-OUTGOINGMSGEXPTIME |
Reply Message |
Defines the reply message. |
Wait for Reply |
Defines the waiting for messages in the reply message queue, with options as follows:
Rules:
Separate message queues with the comma. If the primary queue cannot be reached, the job uses the secondary queue. Variable Name: %%MSG-WAITREPLY |
Reply Queue/Topic |
Defines the message queue where replies are sent, with options as follows:
Rules:
Separate message queues with the comma. If the primary queue cannot be reached, the job uses the secondary queue. Variable Name: %%MSG-REPLYQUEUE |
Time to Wait (sec) |
Defines the amount of time (in seconds) to wait for incoming messages in the reply message queue, with options as follows:
Invalid Characters: Blank spaces. Variable Name: %%MSG-TIMETOWAIT |
Message Properties |
For JMS Accounts only. Defines the outgoing message string properties. Specify a new key and corresponding value. |
Property Name |
Defines the property key name to be added to an outgoing message. Rules:
Variable Name: %%MSG-PARMS-P00n-NAME Where n refers to the nth property. For example, if you want to define two properties, the first property would be %%MSG-PARMS-P001-NAME, and the second property would be %%MSG-PARMS-P002-NAME |
Property Value |
Defines the property value corresponding to the Property Name parameters. Rules:
Variable Name: %%MSG-PARMS-P00n-VALUE Where n refers to the nth property value. For example, if you want to specify two property values, the first value would be %%MSG-PARMS-P001-VALUE, and the second value would be %%MSG-PARMS-P002-VALUE. |