Web Services, Java, and Messaging Jobs
The following topics describe job attributes that work with Web Services, Java, and Messaging Jobs:
Web Services Job
Control-M for Web Services enables you to schedule standard web services, servlets, and RESTful web services.
A web service is XML-based software that enables electronic devices to communicate via intranet or the internet. Servlets are small, Java-based programs that run on web servers, can access databases in response to user input, and add dynamic content to web sites. RESTful web services conform to the Representational State Transfer (REST) software architectural model and are used to create APIs for web-based applications.
The following table describes the Web Services job attributes.
Attribute |
Description |
---|---|
Connection Profile |
Determines the authorization credentials that are used to connect Control-M to Web Services. Rules:
Special characters cannot 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, which is an XML-based notation that describes the web service. Rules:
Variable Names
|
Service |
Defines a service provided by the company or business. Rules:
Variable Name: %%WS-SERVICE |
Method (REST) |
Determines which of the following HTTP methods are used to execute the REST job:
Rules:
Variable Name: %%WS-SERVICE |
Path |
Defines a path available for the method specified in the Method (REST) 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 |
Defines an input file name and path, which enables you to invoke the target web service with a predefined SOAP message. Rules:
Variable Name: %%WS-INPUTPUTFILE |
Edit SOAP Request/Edit Body Request |
Enables you to generate your own SOAP request for REST web services, in the following format: 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 |
Defines the filename and path of a predefined SOAP Header, which is added to the invocation of the target web service SOAP message. Rules:
Variable Name: %%WS-SOAPHEADERFILE |
Input Parameters |
Defines the values for each selected parameter. Rules:
Variable Name: %%WS-PARMS-P00n-NAME 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 |
Override URL Endpoint |
Defines the URL endpoint at the job definition level. Upon job submission, Control-M for Web Services uses the job definition endpoint URL rather than the URL. Rule: 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. Rule: 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 |
Web Services REST Job
Web Services REST jobs enable you to design and execute single REST API calls.
The following table describes the Web Services REST job attributes.
Attribute |
Description |
---|---|
Connection Profile |
Determines the authorization credentials that are used to connect Control-M to Web Services REST. Rules
|
Endpoint URL |
Defines the endpoint base URL, which is the common resource prefix that the API uses to navigate. https://batch.eu-west-2.amazonaws.com |
Method |
Determines one of the following HTTP methods that is used to execute the REST job:
Rules:
Variable Name: %%WS-SERVICE |
URL Request Path |
Defines the URL request path. /v1/submitjob |
Request Definition |
Determines one of the following requests to perform:
|
Body |
Defines the request body, which is the data in the resource that the API creates or edits, in JSON format. For no body, type {}. |
URL Parameters |
(Optional) Defines URL parameter key names and values. Key: Filter Value: Untitled Workflow |
HTTP Headers |
(Optional) Defines HTTP header key names and values.
If you created a connection profile that authenticates with OAuth2, as described in Web Services REST Connection Profile Parameters, you must define the following HTTP header key name and value:
|
Output Parameters |
(Optional) Defines the following output parameters:
Rules:
|
Connection Timeout |
Determines the number of seconds to wait after Control-M initiates a connection request to Web Services before a timeout occurs. Default: 50 |
Append Request |
Determines whether to append the API request to the output A tab in the job properties pane of the Monitoring domain where the job output appears that indicates whether a job ended OK, and is used, for example, with jobs that check file location.. |
Append Response |
Determines whether to append the API response to the output. |
Web Services SOAP Job
Web Services SOAP jobs enable you to design and execute single SOAP API calls.
The following table describes the Web Services SOAP job attributes.
Attribute |
Description |
---|---|
Connection Profile |
Determines the authorization credentials that are used to connect Control-M to Web Services SOAP. Rules
|
Endpoint URL |
Defines the endpoint base URL, which is the common resource prefix that the API uses to navigate. https://batch.eu-west-2.amazonaws.com |
SOAP Action |
Defines a single SOAP action (operation), which you must take from the WSDL file. In the WSDL file, copy the SOAP action http://tempuri.org/SOAP.Demo.AddInteger from the body of the following operation and paste it in the SOAP Request field: Copy
|
Request Definition |
Determines one of the following requests to perform:
|
SOAP Request |
Defines the SOAP request. Copy
|
HTTP Headers |
(Optional) Defines HTTP header key names and values.
|
Output Parameters |
(Optional) Defines the following output parameters:
Rules:
|
Connection Timeout |
Determines the number of seconds to wait after Control-M initiates a connection request to Web Services before a timeout occurs. Default: 50 |
Append Request |
Determines whether to append the API request to the output A tab in the job properties pane of the Monitoring domain where the job output appears that indicates whether a job ended OK, and is used, for example, with jobs that check file location.. |
Append Response |
Determines whether to append the API response to the output. |
Java Job
Control-M for Java enables you to schedule a Java class or a J2EE Enterprise Java Beans (EJB) that runs on a J2EE application server, such as IBM WebSphere, BEA WebLogic, JBoss, and SAP NetWeaver.
The following table describes the Java job 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 attribute 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 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. |