Common Information on REST Web Services

If a selected interface can be exposed as a REST service, you can find the REST Web Service tab included in the interface details page. It can be an interface type of PL/SQL, Concurrent Program, Java Bean Services, or Application Module Services.

An integration administrator can click Deploy to deploy selected operations contained in the API as REST service operations. Once the REST service has been successfully deployed, the REST Service Status field is changed from 'Not Deployed' to 'Deployed'.

The following fields are common in the REST Web Service tab:

Field Description
Service Alias Each REST service should be associated with a unique alias name. Before deploying a REST service, the administrator must enter this field which will be used in service endpoint, WADL, XSDs, and namespaces.
Please note the following guidelines when specifying the service alias:
  • Use simple and meaningful name to represent the service, such as "person", "employee", and so on.

  • Do not use "rest", "soap", and "webservices" as the alias.

  • Do not start with number and special character, such as #, $, %, _, - and more.

  • Do not end with special character.

  • Characters such as ., _, and - are allowed in service alias.

REST Service Status This field indicates different state of a REST service during service life cycle.
  • Not Deployed: This indicates that the selected interface is not deployed.

    Click Deploy to deploy the REST service. The REST Web Service Status is changed from 'Not Deployed' to 'Deployed'.

  • Deployed: This indicates that the selected interface is deployed to an Oracle E-Business Suite managed server.

    Once a REST service has been successfully deployed, the administrator can undeploy the service by clicking Undeploy. This action undeploys the REST service from the Oracle E-Business Suite managed server back to Oracle Integration Repository, and at the same time it clears up the existing service artifact. The REST Service Status field is changed from 'Deployed' to 'Not Deployed'.


In addition to 'Not Deployed' and 'Deployed' service states, more intermediate service statuses can be shown while the service is in the process of performing an action issued by the administrator and transforming to a different state. The following list describes intermediate service status information:
  • Deploying: This indicates that the selected interface is in the middle of the process of deploying the service. After this process is complete, 'Deployed' is displayed in the REST Service Status field.

  • Undeploying: This indicates that the selected interface is in the middle of the process of undeploying and removing the associated service artifact. After this process is complete, 'Not Deployed' is displayed in the REST Service Status field.

View WADL This link is displayed after the selected interface has an associated REST service deployed. Click this link letting you review WADL description for the deployed REST service.
This field appears only when the REST service has been successfully deployed with 'Deployed' status.
See: Reviewing Web Service WADL Source.
Verb The Verb value indicates how the REST service is implemented using an HTTP method.
If the selected interface is a PL/SQL API or Concurrent Program, then this field is displayed when the REST service has the Deployed status.
Please note that POST is the only supported HTTP method for PL/SQL APIs and Concurrent Programs.
REST Service Security To secure REST service content, all REST services are secured by either one of the following security methods:
  • HTTP Basic Authentication: This authentication type is for an HTTP client application to provide username and password when making a REST request that is typically over HTTPS.

    See: HTTP Basic Authentication.

  • Token Based Authentication: This security authenticates a user using a security token obtained by invoking the security Login service. When a user tries to log on to a server, a token (such as Oracle E-Business Suite session ID) may be sent as cookie in HTTP header. This authentication method can be used in multiple consecutive REST invocations. See: Token Based Authentication.

Service Operations table This table displays the list of procedures or functions contained in the selected interface that can be exposed as REST service operations.
For more information on each field in the table, see Service Operations Table.

Service Operations Table

The Service Operations table displays each method (or procedure or function) contained in the selected interface, and whether it is exposed as a service operation. Users who have the Integration Administrator role can perform administrative tasks including deploying or undeploying services with desired service operations as well as creating or revoking security grants.

The following table describes each field in the Service Operations table:

Field Description
Select Users who have the Integration Administrator role can select one or more methods from the table before deploying the service.
Display Name This is the interface name used externally.
Internal Name This is the interface name used internally.
Included Operations (PL/SQL APIs and Concurrent Programs Only) This column is displayed when the selected PL/SQL API or Concurrent Program has been exposed as a REST service. A "check" icon is displayed in this column for the method or operation that has been exposed as a REST service operation.

Note: Since each concurrent program contains only one method, there is no need to select a desired method before deploying it as a REST service. The method contained in the concurrent program will be automatically deployed as a REST service operation with POST HTTP method by default.

GET
(Java Bean Services and Application Module Services Only)
This GET HTTP method column is displayed when the selected interface is an interface type of Java Bean Services or Application Module Services.
This GET check box is preselected if a Java or an Application Module method is annotated with the GET HTTP method. The administrator can uncheck the preselected GET check box for the Java or Application Module method if it will not be published with the GET method. However, if the GET method is not annotated, unlike the POST method, the GET check box becomes inactive or disabled for further selection.
POST
(Java Bean Services and Application Module Services Only)
This HTTP method column is displayed when the selected interface is an interface type of Java Bean Services or Application Module Services.
Similar to the GET method for Java Bean Services and Application Module Services, this POST check box is preselected if a Java or an Application Module method is annotated with the POST HTTP method. The administrator can uncheck the preselected check box before deploying the service if the Java or Application Module method will not be published with the POST method.
If the POST HTTP method is not annotated, the POST check box remains active or enabled by default. This allows the administrator to select the POST check box if needed for the Java or Application Module method as a REST service operation before service deployment.
Grant If the access permission of an operation has been granted to a specific user, user groups, or all users, then the Grant icon is displayed for the operation. Only users who have the Integration Administrator role and the Integration Developer role can find the Grant icon and view the grant details.

Performing Administrative Activities for REST Web Services

REST services have a simplified service development life cycle. Users who have the Integration Administrator role can perform the following administrative tasks in the interface details page:

Note: For information about different user roles and their associated privileges to administer and view REST services, see Accessing Oracle Integration Repository.