Managing REST Service Life Cycle Activities Using An Ant Script

Similar to SOAP services, the administrator can use an Ant script $JAVA_TOP/oracle/apps/fnd/isg/ant/isgDesigner.xml to execute the design-time activities for REST services such as deploy and undeploy services from command line.

Usage of $JAVA_TOP/oracle/apps/fnd/isg/ant/isgDesigner.xml:

ant -f $JAVA_TOP/oracle/apps/fnd/isg/ant/isgDesigner.xml usage

Note: Script creates log file at the script location; hence, it is suggested to copy isgDesigner.xml to some <TEMP_DIRECTORY> and then use the script present in <TEMP_DIRECTORY>.

Usage Related to Design Activities

You can use the isgDesigner.xml script in either one of the following ways:

Argument Description

Valid arguments for isgDesigner.xml are described as follows:

Usage Examples

Using the Script with An Input Descriptor File for REST Services

This section describes how to use a descriptor file with the required argument values to manage the design-time activities for REST services.

Example 1 - Deploying All PL/SQL Functions and Concurrent Programs as REST Service Operations

Use the following descriptor file that provides required argument values highlighted in bold text, such as <REST_ACTIONS>, <ALIAS>USER</ALIAS>, and <ALL_FUNCTIONS/>, to deploy all functions contained in this PL/SQL API FND_USER_PKG as a REST service with POST HTTP method.

Please note by default PL/SQL APIs can be exposed as REST services only with POST HTTP method and synchronous interaction pattern. Therefore, the argument <ALL_FUNCTIONS/> works the same as the argument <ALL_FUNCTIONS pattern="SYNC"/>, <ALL_FUNCTIONS verb="POST"/>, or <ALL_FUNCTIONS pattern="SYNC" verb="POST"/> in the descriptor file.

<INTERFACE>
	<NAME>FND_USER_PKG</NAME>
	<TYPE>PLSQL</TYPE>
	<REST_ACTIONS>
			<DEPLOY>
		<ALIAS>USER</ALIAS>
				<!-- GENERATES ALL FUNCTIONS WITH DEFAULT VERB "POST" AND DEFAULT ITERACTION PATTERN "SYNC" FOR PLSQL-->
		<ALL_FUNCTIONS/>
			</DEPLOY>
			<UNDEPLOY/>
			</REST_ACTIONS>
			<SOAP_ACTIONS>
			...
			</SOAP_ACTIONS>
</INTERFACE>

Since PL/SQL APIs and concurrent programs can be exposed as both SOAP and REST services, the same descriptor file can include required argument values for SOAP service design-time activities as well. See: Using the Script with an Input Descriptor File for SOAP Services.

Example 2 - Deploying an Interface Type of Java Bean Services as REST Service Operations with Both POST and GET HTTP Methods

In the following example, a descriptor file is used to deploy an interface type of Java Bean Services called INTERFACE4 as a REST service with both POST and GET HTTP methods.

Specifically, the REST service alias name is provided in the argument <ALIAS>ALIAS4</ALIAS> and all service operations contained in the interface need to be deployed with both GET and POST HTTP methods which is indicated in the argument <FUNCTIONS_LIST pattern="SYNC" verb="GET,POST"/> of this descriptor file.

Please note that Java Bean Services and Application Module Services can be exposed as REST services only.

<INTERFACE>
	<NAME>INTERFACE4</NAME>
	<TYPE>JAVA</TYPE>
	<REST_ACTIONS>
			<DEPLOY>
		<ALIAS>ALIAS4</ALIAS>
				<!-- GENERATES ALL FUNCTIONS WITH VERB "GET,POST" AND ITERACTION PATTERN "SYNC" FOR POJO SERTVICES-->
		<ALL_FUNCTIONS pattern="SYNC" verb="GET,POST"/>
			</DEPLOY>
			<UNDEPLOY/>
			</REST_ACTIONS>
	</INTERFACE>

Other Usages

The $JAVA_TOP/oracle/apps/fnd/isg/ant/isgDesigner.xml script is a multipurpose script. You can also use it to run the diagnostic tests or download the configuration file from the instance.

To manage life cycle activities for SOAP services, see: Managing SOAP Service Life Cycle Activities Using An Ant Script.