My Oracle Support Banner

Non WSDL Based Restful Web Services Cannot Be Registered In OAG (Doc ID 2783286.1)

Last updated on NOVEMBER 30, 2021

Applies to:

Oracle API Gateway - Version to [Release 11gR1]
Information in this document applies to any platform.


On : version, OEG Policy Studio

There is no Service Manager tab in OAG Gateway where REST Services can be registered. Is there any other way to register a REST service?
In policy studio when "https://<HOSTNAME>/api/xml/fills" in Static Router was configured, the WSDL for the customized service handler is unable to be opened.

Steps performed:

  1. Registering SOA web service which will send request to the REST Service.
  2. Deleting the service handler, replacing it with Set Web Service Context (Specifying WSDL of the SOA Service).
  3. Static Routing. (Mentioning the HOST PORT of the REST Service)
  4. Connections Filter
  5. Deploy. The deployment is successful but not able to open the WSDL generated for the relative path mentioned.

Is it possible to register REST Service by any other way with Policy Studio?


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document
 Policy Creation
 Create a new Policy with “Get TimeZone Information from GEONAMES REST service” as name
  Add an "Extract REST Request Attributes" filter using the default values and set this as start point.
  In case a proxy is needed, set this up in the Settings tab
  Connect the two filters with a success path
  Save the next JSON Schema to a file named timezone.json:
  Go to the Resources node, select JSON Schemas and Add a new Schema
  Add the timezone.json created above
  Add a new JSON Schema Validation filter to the canvas
  Select the JSON Schema added previously
  Connect the last two filters with a success path
  Add a JSON Path filter with the next attribute list to get the attributes (Extract JSON attributes):
  Connect the last two filters with a success path
  Add a Set Message to Echo the JSON Attributes as follows and set the content type as text/xml:
  Connect the last two filters with a success path
  Create a relative path for the policy
  Deploy the configuration
  Test the Geonames Timezone REST service using theWeb Browser
  If an incorrect username is used, we can get the following response
  Now test it using the OAG interface created
  Using an invalid username

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.