WSDL web service Generation Guide for Oracle WebCenter Content 11g
Objective:
This document serves as a step-by-step guide to creating WSDL web service for Oracle WebCenter Content 11g OOTB and custom services.
Prerequisite: a. Please make sure the ‘WsdlGenerator’ component is installed and enabled on the content server. b. Please ensure that your account has the admin role on the content server to access the ‘Administration’ Menu.
Service used as an example: GET_DISPLAY_FIELDS
GET_DISPLAY_FIELDS Service Info*:
Service that returns information about custom metadata fields for different Content Server pages. This information can be used by front-end clients to render custom metadata fields.
The service requires an action which maps to a specific Content Server page. The service then returns metadata information for that page.
Enter WSDL Name (mandatory) and Description (obligatory). (Figure 4)
Click on ‘Add’
2. Create DataList (Optional):
We can consolidate all the data types/fields required by a ResultSet in a DataList. Data Lists are defined once but can be referenced multiple times with different WSDLs and services. Steps as follows:
On the ‘WSDL List**’ page, on top right, expand ‘Actions’ drop-down menu.
Click on ‘Data Lists’
On top right, expand ‘Actions’
Click on ‘Add Data List’
Enter Data List Name (mandatory) and Description (obligatory).
In the Data List Elements section, enter the ‘Name’ (mandatory), ‘Type’ (mandatory) and ‘IdcName’(obligatory).
Click on Update.
3. Create ‘Complex’ Types:
We need to create a ‘Complex’ for every ‘ResultSet’ included in the service response. (In this case: ‘DisplayFieldInfo’, ‘DisplayGroupInfo’, ‘xFieldName.options’ being the 3 ‘ResultSet’s’ returned by the service). Steps as follows:
On the ‘WSDL Information’ page, on top right, expand ‘Actions’ drop-down menu.
Enter WSDL ‘Name’ (mandatory) and ‘Type’ (mandatory, from the list of options: ‘resultset’, ‘container’). (Figure 7)
Click on ‘Add’.
4. Edit ‘Complex’ Types:
In the complex we can either add the response fields individually or we can just add the ‘Data List’ which is a collection of all the response parameters for a ‘ResultSet’. (Figure 8) Steps as follows:
On the ‘WSDL Information’ page, in the ‘Complex Types’ section, Click on ‘Edit’ for the required ‘Complex’ Type.
Add the response fields/metadata returned by service by entering the ‘Name’, ‘Type’ and ‘IdcName’ (obligatory). (Figure 9, 10, 11) OR
Add the ‘Data List’ name with the corresponding type which begins with ‘d:’, for instance: ‘d:CommonDocMetaFields’.
5. Create New Service:
On the ‘WSDL Information’ page, on top right, expand ‘Actions’ drop-down menu.
Simple step-by-step guide for creating web service WSDLs for WCC 11g OOTB
WSDL web service Generation Guide for Oracle WebCenter Content 11g
Objective:
This document serves as a step-by-step guide to creating WSDL web service for Oracle WebCenter Content 11g OOTB and custom services.
Prerequisite:
a. Please make sure the ‘WsdlGenerator’ component is installed and enabled on the content server.
b. Please ensure that your account has the admin role on the content server to access the ‘Administration’ Menu.
Service used as an example: GET_DISPLAY_FIELDS
GET_DISPLAY_FIELDS Service Info*:
Service that returns information about custom metadata fields for different Content Server pages. This information can be used by front-end clients to render custom metadata fields.
The service requires an action which maps to a specific Content Server page. The service then returns metadata information for that page.
The service also provides support to generate Dynamic Choice List (DCL) options and Dynamic Tree.
WSDL Generation Framework:
1. Create new WSDL:
2. Create DataList (Optional):
We can consolidate all the data types/fields required by a ResultSet in a DataList. Data Lists are defined once but can be referenced multiple times with different WSDLs and services.
Steps as follows:
3. Create ‘Complex’ Types:
We need to create a ‘Complex’ for every ‘ResultSet’ included in the service response. (In this case: ‘DisplayFieldInfo’, ‘DisplayGroupInfo’, ‘xFieldName.options’ being the 3 ‘ResultSet’s’ returned by the service).
Steps as follows:
4. Edit ‘Complex’ Types:
In the complex we can either add the response fields individually or we can just add the ‘Data List’ which is a collection of all the response parameters for a ‘ResultSet’. (Figure 8)
Steps as follows:
OR
5. Create New Service:
6. Update Request Parameters:
7. Update Response Parameters:
8. Generate WSDL:
.
.
.
.
.
.
Similarly, add 2 more ResultSets for the GET_DISPLAY_FIELDS as required by the service:
.
.
.
.
.
.
.
.
.
.
.
.
.
If you need further assistance please feel free to contact us directly.
Categories
Related Tags
About Us