An Ant script $JAVA_TOP/oracle/apps/fnd/isg/ant/isgDesigner.xml is used to execute the design-time activities for SOAP services such as generate, regenerate, deploy, undeploy, activate, retire, and reset services as well as to upgrade or postclone services from command line.
Please note that $JAVA_TOP/oracle/apps/fnd/isg/ant/isgDesigner.xml is a multipurpose script. It can also be used to run the diagnostic tests or download the configuration file from the instance. The configuration file is the present state of instance in the view of Oracle E-Business Suite Integrated SOA Gateway context. The same configuration file is sometimes referred as service descriptor file.
Note: When services are generated from command line, the settings selected from the Integration Repository user interface will take effect while generating the service artifacts. For example, if 'Asynchronous' interaction pattern is selected for a method contained in a PL/SQL interface, no matter if the service is generated from the UI or command line, only that selected single method has the associated artifact generated for asynchronous operation.
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>.
You can use the isgDesigner.xml script in either one of the following ways:
Execute the script without arguments
ant -f $JAVA_TOP/oracle/apps/fnd/isg/ant/isgDesigner.xml.
When prompted, enter the arguments.
Note: Do not enclose any input between double quotes.
Execute the script with arguments, along with the commands
ant -f $JAVA_TOP/oracle/apps/fnd/isg/ant/isgDesigner.xml -Dactions=<comma separated list of operations> -DserviceType=SOAP -DirepNames=<comma separated list of API Names> -Dverbose=<ON|OFF>
While passing actions and irepNames using this method, be aware of the following conditions:
If more than one actions or irepNames are passed as command line argument, enclose them between double quotes. For example,
-Dactions="method1, method2,.."
-DirepNames="ECRDTLD,FND_USER_PKG[{function1:SYNC}{function2:}...]"
If only one action or irepName is passed as command line argument, then there is no need to enclose between double quotes.
Execute the script by providing a descriptor file, along with the commands, as an input
ant -f $JAVA_TOP/oracle/apps/fnd/isg/ant/isgDesigner.xml -Dfile=<absolute path of service descriptor file> -Dverbose=<ON|OFF>
The argument values required for executing the design-time activities are provided in the file.
See Using the Script with an Input Descriptor File for SOAP Services.
Valid arguments for isgDesigner.xml are described as follows:
actions: Comma separated list of actions to be performed. Supported operations are: generate, deploy, undeploy, activate, retire, reset, upgrade, postclone.
generate: It will generate or regenerate the service.
deploy: It will deploy the generated service.
undeploy: It will undeploy the deployed service.
activate: It will activate the deployed service if it is in 'Retire' state.
retire: It will retire the deployed service if it is in 'Active' state.
reset: It will reset the Web service status to its initial state - 'Not Generated' and will also delete artifacts from the file system of Oracle SOA Suite server.
upgrade: It will upgrade a service from Oracle E-Business Suite Release 12.1.X to Release 12.2.
postclone: It will carry out postclone steps, such as redeploying the services, on the Release 12.2 cloned environment.
While passing the action names, ensure that they have been given in the order of their life cycle. For example:
Incorrect Usage: -Dactions="deploy,generate"
Correct usage: -Dactions="generate,deploy"
Actions 'upgrade' and 'postclone' should be called independently. This means if upgrade action is given, actions argument should look like -Dactions=upgrade. It is similar to the case with action 'postclone'. More information on how actions arguments are used is described in the following examples:
-Dactions="generate,deploy,retire,activate,undeploy,reset"
-Dactions=upgrade
-Dactions=postclone
Additionally, if action is 'upgrade' or 'postclone', only 'actions' and 'verbose' arguments will be used. However if you have given other arguments as well, only the three arguments mentioned above will be used.
serviceType: [SOAP|REST]: Choose the default value SOAP.
irepNames: Comma separated list of interface names.
Use either one of the following syntax for the interface name:
interface_name
interface_name[{function1:<interactionPattern>}{function2:<interactionPattern>}{function3...}]
Please note that the colon ":" after each function and before <interactionPattern> is mandatory.
<interactionPattern> is optional.
For example, if <interactionPattern> is not included such as interface_name[{function1:}], then the interaction pattern will be defaulted to SYNC.
If only interface_name is mentioned, then the old patterns will be generated. If the interface is a new API or has been reset, then all the functions will be generated with SYNC interaction pattern.
Supported interaction patterns are SYNC, ASYNC, and BOTH. For example:
interface_name[{function1:SYNC}]
interface_name[{function1:ASYNC}]
interface_name[{function1:BOTH}]
Passing an unsupported interaction pattern will result in an error.
Multiple interfaces can be separated by comma and passed as irepName using the following syntax::
interface_name1[{function1:}],interface_name2,interface_name3[{function1:ASYNC}]
For example, -DirepNames="ECRDTLD,FND_USER_PKG[{function1:SYNC}]"
file: Absolute path of the (service descriptor) XML file containing interfaces and actions to be performed on these interfaces.
For example, -Dfile=/u01/oracle/isg_service.xml
verbose: [ON|OFF] Default value is OFF.
For example, -Dverbose=OFF
Usage Examples
Sample command for actions other than 'upgrade' and 'postclone' (actions and interface names are being passed):
ant -f $JAVA_TOP/oracle/apps/fnd/isg/ant/isgDesigner.xml -Dactions="generate,deploy,undeploy" -DserviceType=SOAP -DirepNames="ECRDTLD,FND_USER_PKG"
Sample command for performing design time actions from XML file:
ant -f $JAVA_TOP/oracle/apps/fnd/isg/ant/isgDesigner.xml -Dfile=/u01/oracle/isg_service.xml
Sample command for action 'upgrade':
ant -f $JAVA_TOP/oracle/apps/fnd/isg/ant/isgDesigner.xml -Dactions=upgrade -Dverbose=OFF
Sample command for action 'postclone':
ant -f $JAVA_TOP/oracle/apps/fnd/isg/ant/isgDesigner.xml -Dactions=postclone -Dverbose=ON
Using the Script with An Input Descriptor File for SOAP Services
This section describes how to use a descriptor file with the required argument values to manage the design-time activities.
Example 1 - Generating and Deploying a PL/SQL Service with All Functions and Generating a SOAP Service for a Concurrent Program
The following descriptor file for a PL/SQL API FND_USER_PKG provides required argument values highlighted in bold text, such as <SOAP_ACTIONS>, <POLICY>, and <ALL_FUNCTIONS/>, indicating that this is to generate SOAP service operations for all the functions contained in the API with synchronous pattern, and then deploy them with SAML Token authentication type.
<INTERFACE> <NAME>FND_USER_PKG</NAME> <TYPE>PLSQL</TYPE> <REST_ACTIONS> ... </REST_ACTIONS> <SOAP_ACTIONS> <RESET/> <GENERATE> <!-- GENERATES ALL FUNCTIONS WITH DEFAULT ITERACTION PATTERN "SYNC" FOR PLSQL--> <ALL_FUNCTIONS/> </GENERATE> <!-- DEPLOYS WITH GIVEN POLICY "SAML" --> <DEPLOY> <POLICY>SAML</POLICY> </DEPLOY> <RETIRE/> <ACTIVATE/> </SOAP_ACTIONS> </INTERFACE>
The following descriptor file is used for a concurrent program called INTERFACE5 to generate a SOAP service. Two functions, FUNCTION1 and FUNCTION2, contained in this interface are generated with the default synchronous pattern.
<INTERFACE> <NAME>INTERFACE5</NAME> <TYPE>CONCURRENTPROGRAM</TYPE> <REST_ACTIONS> ... </REST_ACTIONS> <SOAP_ACTIONS> <RESET/> <GENERATE> <FUNCTIONS_LIST> <FUNCTION>FUNCTION1</FUNCTION> <FUNCTION>FUNCTION2</FUNCTION> </FUNCTIONS_LIST> </GENERATE> <DEPLOY/> <RETIRE/> <ACTIVATE/> </SOAP_ACTIONS> </INTERFACE>
PL/SQL APIs and concurrent programs can be exposed as both SOAP and REST services; therefore, the same descriptor file can include required argument values for REST service design-time activities as well. See: Using the Script with an Input Descriptor File for REST Services.
Example 2 - Generating SOAP Service Operations with Synchronous, Asynchronous, and Both Patterns
In this example, a PL/SQL interface called INTERFACE1 contains six functions or operations. The descriptor file indicates the required task is just to generate SOAP services operations with various interaction patterns.
Specifically, FUNCTION1 and FUNCTION2 contained in the interface are generated with both synchronous and asynchronous patterns (<FUNCTIONS_LIST pattern="BOTH">), FUNCTION3 and FUNCTION4 are generated with asynchronous pattern (<FUNCTIONS_LIST pattern="ASYNC">), and FUNCTION5 and FUNCTION6 are generated with synchronous pattern (<FUNCTIONS_LIST pattern="SYNC">).
<INTERFACE> <NAME>INTERFACE1</NAME> <TYPE>PLSQL</TYPE> <REST_ACTIONS> ... </REST_ACTIONS> <SOAP_ACTIONS> <RESET/> <GENERATE> <!-- GENERATES GIVEN FUNCTIONS WITH ITERACTION PATTERN "BOTH" FOR PLSQL--> <FUNCTIONS_LIST pattern="BOTH"> <FUNCTION>FUNCTION1</FUNCTION> <FUNCTION>FUNCTION2</FUNCTION> </FUNCTIONS_LIST> <!-- GENERATES GIVEN FUNCTIONS WITH ITERACTION PATTERN "ASYNC" FOR PLSQL--> <FUNCTIONS_LIST pattern="ASYNC"> <FUNCTION>FUNCTION3</FUNCTION> <FUNCTION>FUNCTION4</FUNCTION> </FUNCTIONS_LIST> <!-- GENERATES GIVEN FUNCTIONS WITH ITERACTION PATTERN "SYNC" FOR PLSQL--> <FUNCTIONS_LIST pattern="SYNC"> <FUNCTION>FUNCTION5</FUNCTION> <FUNCTION>FUNCTION6</FUNCTION> </GENERATE> <DEPLOY/> <RETIRE/> <ACTIVATE/> </SOAP_ACTIONS> </INTERFACE>
Example 3 - Generating a SOAP Service for Business Service Object Interface Type
A similar descriptor file can be used to generate a SOAP service for the business service object (BSO) interface type called INTERFACE6 when the <TYPE>SERVICEBEAN</TYPE> is used, shown as follows:
<INTERFACE> <NAME>INTERFACE6</NAME> <TYPE>SERVICEBEAN</TYPE> <SOAP_ACTIONS> <RESET/> <GENERATE> <FUNCTIONS_LIST> <FUNCTION>FUNCTION1</FUNCTION> <FUNCTION>FUNCTION2</FUNCTION> </FUNCTIONS_LIST> </GENERATE> <DEPLOY/> <RETIRE/> <ACTIVATE/> </SOAP_ACTIONS> </INTERFACE>
Example 4 - Generating a SOAP Service for XML Gateway Interface Type
The following example shows a descriptor file that is used to generate a SOAP service for the XML Gateway interface called INTERFACE7. In this example, all the functions contained in this interface are generated with SOAP service operations with the default synchronous pattern.
<INTERFACE> <NAME>INTERFACE7</NAME> <TYPE>XMLGATEWAY</TYPE> <SOAP_ACTIONS> <RESET/> <GENERATE> <ALL_FUNCTIONS/> </GENERATE> <DEPLOY/> <RETIRE/> <ACTIVATE/> </SOAP_ACTIONS> </INTERFACE>
In addition to performing design time activities, this $JAVA_TOP/oracle/apps/fnd/isg/ant/isgDesigner.xml script can be used for the following purposes:
To deploy a generic XML Gateway service for the current environment, invoke this script with target deployGenericXMLG
ant -f $JAVA_TOP/oracle/apps/fnd/isg/ant/isgDesigner.xml deployGenericXMLG
For more information on deploying generic XML Gateway services, see Installing Oracle E-Business Suite Integrated SOA Gateway, Release 12.2, My Oracle Support Knowledge Document 1311068.1 for details.
To know how to pass argument irepNames, invoke this script with target irepNamehelp
ant -f $JAVA_TOP/oracle/apps/fnd/isg/ant/isgDesigner.xml irepNamehelp
This prints the following information on console window:
Each interface name for the irepNames argument should be given in one of the following way:
interface_name[{function1:<interactionPattern1>}{function2:<interactionPattern2>}{function3...}]
interface_name
Usage Example: FND_USER_PKG [{TESTUSERNAME:SYNC}{CHANGE_USER_NAME:ASYNC}],FND_GLOBAL
Note: Patterns supported here are described in the following:
SYNC: This is for synchronous generation.
ASYNC: This is for asynchronous generation.
BOTH: This is for both synchronous and asynchronous generations.
interface_name[{function1:pattern1}{function2:pattern2}]
Function function1 of interface interface_name will be generated with pattern Pattern1.
Function function2 of interface interface_name will be generated with pattern Pattern2.
interface_name
All functions of the interface interface_name will be generated with old pattern. If the interface is a new API or has been reset, then all the functions will be generated with SYNC interaction pattern.
Oracle E-Business Suite Integrated SOA Gateway provides a suite of diagnostic tests to help determine specific causes or issues with installation steps. When a test suite is run, multiple tests would be executed on both Oracle E-Business Suite and Oracle SOA Suite environments for diagnosing issues on various categories.
To know how to run different diagnostic tests, invoke this script with diagnosticshelp
ant -f $JAVA_TOP/oracle/apps/fnd/isg/ant/isgDesigner.xml diagnosticshelp
Additionally, you can run different diagnostics through the backend script with different targets. For more information on how to run these diagnostic tests, see Oracle E-Business Suite Integrated SOA Gateway Diagnostic Tests.