Beruflich Dokumente
Kultur Dokumente
This software and related documentation are provided under a license agreement containing restrictions
on use and disclosure and are protected by intellectual property laws. Except as expressly permitted in
your license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast,
modify, license, transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any
means. Reverse engineering, disassembly, or decompilation of this software, unless required by law for
interoperability, is prohibited.
The information contained herein is subject to change without notice and is not warranted to be error-
free. If you find any errors, please report them to us in writing.
If this is software or related documentation that is delivered to the U.S. Government or anyone licensing
it on behalf of the U.S. Government, the following notice is applicable:
U.S. GOVERNMENT END USERS: Oracle programs, including any operating system, integrated software,
any programs installed on the hardware, and/or documentation, delivered to U.S. Government end users
are “commercial computer software” pursuant to the applicable Federal Acquisition Regulation and
agency-specific supplemental regulations. As such, use, duplication, disclosure, modification, and
adaptation of the programs, including any operating system, integrated software, any programs installed
on the hardware, and/or documentation, shall be subject to license terms and license restrictions
applicable to the programs. No other rights are granted to the U.S. Government.
This software or hardware is developed for general use in a variety of information management
applications. It is not developed or intended for use in any inherently dangerous applications, including
applications that may create a risk of personal injury. If you use this software or hardware in dangerous
applications, then you shall be responsible to take all appropriate fail-safe, backup, redundancy, and
other measures to ensure its safe use. Oracle Corporation and its affiliates disclaim any liability for any
damages caused by use of this software or hardware in dangerous applications.
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be
trademarks of their respective owners.
Intel and Intel Xeon are trademarks or registered trademarks of Intel Corporation. All SPARC trademarks
are used under license and are trademarks or registered trademarks of SPARC International, Inc. AMD,
Opteron, the AMD logo, and the AMD Opteron logo are trademarks or registered trademarks of Advanced
Micro Devices. UNIX is a registered trademark of The Open Group.
This software or hardware and documentation may provide access to or information about content,
products, and services from third parties. Oracle Corporation and its affiliates are not responsible for and
expressly disclaim all warranties of any kind with respect to third-party content, products, and services
unless otherwise set forth in an applicable agreement between you and Oracle. Oracle Corporation and
its affiliates will not be responsible for any loss, costs, or damages incurred due to your access to or use
of third-party content, products, or services, except as set forth in an applicable agreement between you
and Oracle.
Documentation Accessibility
For information about Oracle's commitment to accessibility, visit the Oracle Accessibility Program website
at http://www.oracle.com/pls/topic/lookup?ctx=acc&id=docacc.
Oracle customers that have purchased support have access to electronic support through My Oracle
Support. For information, visit http://www.oracle.com/pls/topic/lookup?ctx=acc&id=info or visit
http://www.oracle.com/pls/topic/lookup?ctx=acc&id=trs if you are hearing impaired.
Contents
Using Siebel REST API to Access Siebel Repository Resources JSON Examples 38
Querying for a Siebel CRM Repository Resource 38
Querying for a Siebel CRM Repository Resource with a Search Specification 38
Querying for a Siebel CRM Repository Resource with a Returned Field List 39
Inserting a Siebel CRM Repository Resource 39
Upserting a Siebel CRM Repository Resource 39
Deleting a Siebel CRM Repository Resource 40
Using Siebel REST API to Access Siebel Business Objects JSON Examples 40
Querying for a Siebel CRM Business Object 40
Querying for a Siebel CRM Business Object with a Search Specification 41
Querying for a Siebel CRM Business Object with a Returned Fields List 41
Inserting a Siebel CRM Business Object 42
Inserting a Siebel CRM Child Business Object 42
Inserting Multiple Siebel CRM Child Business Objects 43
Upserting a Siebel CRM Business Object 43
Upserting a Siebel CRM Child Business Object 44
Deleting a Siebel CRM Business Object 44
Using Siebel REST API to Access Siebel Business Services JSON Examples 45
Accessing a Siebel Business Service with Arguments in the Request Body 45
Acessing a Siebel Business Service with Arguments in the Request URI 45
Using Siebel REST API to Access Siebel Repository Data XML Examples 46
Querying for a Siebel CRM Repository Resource 46
Querying for a Siebel CRM Repository Resource with a Search Specification 47
Querying for a Siebel CRM Repository Resource that Returns Fields List 47
Inserting a Siebel CRM Repository Resource 47
Upserting a Siebel CRM Repository Resource 48
Deleting a Siebel CRM Repository Resource 48
Using Siebel REST API to Access Siebel CRM Business Objects XML Examples 49
Querying for a Siebel CRM Business Object 49
Querying for a Siebel CRM Business Object with a Search Specification 49
Querying for a Siebel CRM Business Object Resource that Returns Fields List 50
Inserting a Siebel CRM Parent Business Object 50
Upserting a Siebel CRM Parent Business Object 50
Deleting a Siebel CRM Parent Business Object 51
Using Siebel REST API to Access Siebel Business Services XML Examples 51
Using a Siebel CRM Business Service to Insert an Account 52
Using a Siebel CRM Business Service to Update an Account 52
Using a Siebel CRM Business Service to Delete an Account 53
Index
What’s New in Siebel REST API Guide, Siebel Innovation Pack 2017,
Rev. A
Table 1 lists the changes described in this version of the documentation to support this release of the
software.
Table 1. New Product Features in Siebel REST API Guide, Siebel Innovation Pack 2017, Rev. A
Topic Description
“About REST Outbound” on Updated topic. This topic provides information on how to
page 23 configure Siebel REST API for outbound communications.
“Creating an Outbound Web New topic. This topic provides information on how to create an
Service Based on an OpenAPI outbound Web Service based on an OpenAPI compliant JSON
Compliant JSON File” on page 34 file.
What’s New in Siebel REST API Guide, Siebel Innovation Pack 2017
Table 2 lists the changes described in this version of the documentation to support this release of the
software.
Table 2. New Product Features in Siebel REST API Guide, Siebel Innovation Pack 2017
Topic Description
“About Siebel CRM REST API Updated topic. Added information about the new REST API
Architecture” on page 10 architecture for Siebel Innovation Pack 2017, Rev. A.
“About URI Parameters” on Updated topic. Added the fields and searchspec parameters to
page 13 Table 3 on page 13.
“About REST Outbound” on New topic. This topic provides information on how to configure
page 23 Siebel REST API for outbound communications.
“Using Siebel Management New topic. This topic provides information on the REST
Console to Configure a Siebel parameters that can be configured when you configure the
Application Interface Profile” on Siebel Application Interface Profile.
page 26
“Using Siebel REST API to Access New topic. This topics provides XML examples that
Siebel Repository Data XML demonstrate how to use Siebel REST API to access repository
Examples” on page 46 data.
Table 2. New Product Features in Siebel REST API Guide, Siebel Innovation Pack 2017
Topic Description
“Using Siebel REST API to Access New topic. This topics provides XML examples that
Siebel CRM Business Objects XML demonstrate how to use Siebel REST API to access business
Examples” on page 49 object data.
“Using Siebel REST API to Access New topic. This topics provides XML examples that
Siebel Business Services XML demonstrate how to use Siebel REST API to access business
Examples” on page 51 service data.
This chapter provides an overview of the Siebel CRM Representational State Transfer (REST)
application programming interface (API). It includes the following topics:
The Siebel REST API is provided with the Siebel Application Interface installation. For more
information about installing Siebel Application Interface, see Siebel Installation Guide for Microsoft
Windows. The Siebel REST API is enabled by configuring and deploying a Siebel Application Interface
profile. The Siebel Application Interface profile can be deployed to multiple Siebel Application
Interface nodes.
The Siebel REST API exposes Siebel Business Objects, Siebel Business Services, and Siebel
Repository Objects. For more information about Siebel Business Objects, Siebel Business Services,
and Siebel Repository Objects, see Configuring Siebel Business Applications.
The following are the salient aspects of the Siebel REST API that are aligned with general best
practices of REST APIs:
http://Server Name:port/Siebel/v1.0/
■ Operations on Siebel CRM resources are mapped to semantically similar HTTP methods, such as
GET, PUT, POST, and DELETE.
■ Hypertext links to Siebel CRM Child Business Components in the case of the Data API resources
in the REST API response.
■ Support for Outbound to interact with other Cloud applications that communicate through REST.
Each Siebel Enterprise can have multiple Siebel Application Interface nodes and can have multiple
Siebel Servers but can have only one Gateway Server. Installations of Siebel Enterprise Server and
Siebel Application Interface modules include deployment of WAR files into the application container
and configuration of application container ports.
The Siebel application configurations are managed by the Siebel Management Console and stored in
the Siebel Gateway Server.
Figure 1 shows the high-level architecture of Siebel REST within the Siebel Application Interface.
■ Requests: Users send an application request to the Siebel Application Interface. Siebel
Application Interface requests include: UI, EAI, or REST. The appropriate application channel
accepts the request. Application channels include: UI Channel, EAI Channel, or REST Channel.
■ Siebel Application Interface: The Siebel Application Interface serves as the Web server for the
Siebel Business Applications. The Siebel Application Interface identifies requests for Siebel
application data coming from Web clients and flags these requests for routing to a Siebel Server.
When information is sent from the Siebel Server back to the Web client, the Siebel Application
Interface helps complete the composition of the Web page for forwarding to the client.
■ Siebel Management Console: The Siebel Management Console is a Web-based application that
allows users to configure various Siebel Application components and save the configurations in
the Siebel Gateway Server.
■ REST Channel: The REST channel is one of three application channels that provide an endpoint
responsible for receiving and processing user requests. The REST Channel is responsible for
serving the REST requests. Other application channels include the UI channel and EAI channel.
■ Siebel Server: Siebel Server functions as an application server and is composed of server
components.
■ Gateway Server: Siebel Gateway provides the dynamic address registry for Siebel Servers and
server components, and also for Siebel Application Interface. The Siebel Application Interface
configurations are also stored and managed in the Gateway Server.
■ Outbound Channel: The outbound channel forwards requests to external Web services.
For more information, see Siebel Installation Guide for the operating system you are using, Siebel
Deployment Planning Guide, and Siebel System Administration Guide.
■ A request URI. For more information about URI formats, see “About Siebel CRM REST API URI
Formats” on page 12.
■ The request URI contains the base URI signifying what category of Siebel resources to invoke.
Siebel resources include: Business Objects, Repository Objects, and Business Services.
■ The request URI contains the object type of the invoked Siebel CRM resource. For example,
Account Business Component under Account Business Object. For more information about
the supported Siebel CRM resources, “About Siebel CRM REST API Supported Resources” on
page 14.
■ The HTTP method that you use to perform a REST API operation (query, insert, upsert, or delete)
on the Siebel CRM Server. For more information about supported HTTP methods, see “About
Supported HTTP Methods” on page 15
■ Header information to define the parameters of the interaction with the Siebel CRM Server and
the information and format you want in the response. For more information about supported
HTTP headers, see “About Supported HTTP Header Fields” on page 16.
After the Siebel CRM Server processes the request, the server sends back a response in JSON or XML
format based on the requested content type. The response body contains the results of the REST API
call and also additional information based on what was specified in the request.
■ A HTTP status code that indicates whether the request was successful or failed. For more
information about HTTP status codes, see “About Standard HTTP Status Codes and Error Messages”
on page 18
■ If the request failed, then the response body includes additional information about the error. For
additional information about HTTP error status codes, see “About Standard HTTP Status Codes and
Error Messages” on page 18.
■ Hypertext links to Siebel CRM child resources, in the REST API response, such as links to Child
Business Components in the case of the Data API. For more information about links, see “About
Siebel CRM REST API Response Links” on page 18.
Siebel CRM REST API executes resource requests for each resource category using the following HTTP
URI formats:
■ Siebel CRM REST API basic URI for Siebel Business Objects:
https://Server Name:port/Siebel/v1.0/data/
■ Siebel CRM REST API basic URI for Siebel Business Services:
https://Server Name:port/Siebel/v1.0/service/
Where:
■ Server Name:port: Indicates the name of the server and port hosting the Siebel REST API
services.
■ version: Indicates the current version number, 1.0, of the REST API.
■ data: Indicates the requested resource is a Siebel Business Object. For more information about
Siebel Business Objects, see Configuring Siebel Business Applications.
■ service: Indicates the request resource is a Siebel Business Service. For more information about
Siebel Business Services, see Configuring Siebel Business Applications.
■ workspace: Indicates the request resource is Siebel Repository Data. For more information
about workspaces, see Using Siebel Tools. For more information about Siebel Repository Objects,
see Configuring Siebel Business Applications.
Parameter Description
PageSize Used only for the GET operation. The PageSize parameter is the integer that
tells the Siebel Server how many records to return. If you query for all the
Siebel contacts whose last name starts with the letter A and you do not
want to get too many records (for performance reasons), then you can
restrict the number of records returned. You restrict the number of records
returned by setting the PageSize parameter to a reasonable number. The
default value is 10. If you do not set a value for this paramater, then then
query will return only 10 records.
All records that match the search criteria are returned. For example,
PageSize=20 returns only twenty contact records, even if more exist in the
Siebel database. If fewer records exist that match that search criteria, then
all records are returned (but no more than twenty).
StartRowNum Used only for the GET operation. The StartRowNum parameter is used when
there is a need to start returning records at a specific row. For example,
StartRowNum=100 starts at row 100 of the record set. The first number in
a record set is zero, therefore, this request starts at record 99 (given you
start counting from one for the first record).
This parameter is useful for paging through a record set N records at a time.
For example, if there are 100 records in a record set, but you want to
retrieve only ten at a time, then enter StartRowNum=0 and PageSize=10
on the first call, then StartRowNum=10 on the next call, then
StartRowNum=20 on the next call, and so on.
Parameter Description
fields Used for only GET or Query operations to return a comma-separated list of
property names in the REST API response. The response contains only the
files given in this list irrespective of fields available in the source being
queried.
The syntax for using URI parameters is the parameter name followed by an equal sign (=) with the
value of the parameter, and each parameter is separated from other parameters by an ampersand
(&). For example, if you want to set the PageSize parameter to 100 and the StartRowNum parameter
to 0 (zero), then you enter: Pagesize=100&StartRowNum=0
The Siebel CRM REST API supports the following Siebel resources and collections:
■ Siebel Business Service methods that have been configured for Siebel REST API access for users
with a given Siebel Responsibility. For more information about configuring Siebel Business
Services, see “Configuring Business Service Methods for RESTful Access” on page 32.
■ Siebel Repository Object Types and Siebel Repository Object Instances. All repository objects
that are supported for access through workspaces are accessible through the Siebel Repository
REST API. Before you begin, a Workspace has to be created before performing any repository
operations and the name of the workspace has be mentioned in the REST API requests. To
determine if a repository object is workspace-enabled see the section on editing workspace-
enabled repository objects in Using Siebel Tools.
■ Siebel Business Component records. The Siebel Business Components under the following Siebel
Business Objects are available through the Siebel REST API:
■ Access Group
■ Account
■ Action
■ Asset Management
■ Campaign
■ Catalog
■ Contact
■ Correspondence
■ Employee
■ Expense
■ Fund
■ Household
■ Internal Product
■ List Mgmt
■ Offer
■ Opportunity
■ Order Entry
■ Payments
■ Position
■ Price List
■ Project
■ Proposal
■ Quote
■ Service Agreement
■ Service Request
■ Solution
■ Territory Management
■ Time Sheet
■ Usage Pattern Tracking
Siebel
HTTP Verb Operation Description
POST Insert The POST method creates a new Siebel CRM resource.
Siebel
HTTP Verb Operation Description
Table 5 contains the HTTP header fields supported by the Siebel REST API.
■ Basic, if the
Authentication type
configured in
siebsrvr.properties is
Basic or SSO
■ Bearer, if the
Authentication type
configured in
siebsrvr.properties is
OAuth
Table 6 contains the standard HTTP status codes used by the Siebel REST API.
404 Not Found The requested resource was not found because of
an invalid object name.
415 Unsupported Media The data format of the request body, specified in
Type the Content-Type header, is not supported by the
targeted resource.
The Siebel CRM REST API response can include the following types of links:
■ canonical link. The URL for the same resource as the top level resource. If you are already
viewing the resource as a top-level resource, then this URL is the same as self. If this resource
is not available as a top-level resource, then this link shows child resource context.
■ parent link. The URL for the parent resource details. This URL of the parent resource is returned
in the response only when retrieving details about a child resource.
■ child link. The URL for the child resource details. The URL returns the path to retrieve each child
collection for this record. The href attribute contains the child type. A response can return several
child links.
■ association link. The URL of a specific resource included in the response. There can be many
association links.
Each Siebel CRM REST API response link can include the following types of attributes:
■ rel. Indicates the relationship of the linked resource to the current resource that contains the list
of links. Values include: Self, Parent, Child, and Canonical.
■ href. Indicates the fully qualified location URL of the linked resource.
■ Basic authentication over SSL. This is User ID and Password based authentication. The Base64
encoded value of the User ID and Password must be included in the Authorization header.
■ OAuth user using OAuth 2.0. For more information about OAuth 2.0, see “About Configuring OAuth
2.0 for Authentication” on page 19.
Authentication parameters are configured in the Siebel Application Interface Profile. For information
about REST Inbound Authentication parameters, see “Configuring REST Inbound Authentication
Parameters” on page 26. For information about configuring the Siebel Application Interface Profile,
see Siebel Installation Guide for Microsoft Windows.
In general, the Siebel REST API layer contacts the OAuth server over a secure channel (for example,
HTTPS) to validate the access token received or obtain additional token information. The Siebel
Server only requires a USERID to establish a Siebel Server session since authentication takes place
outside of Siebel Server in either SSO or OAuth, and does not require a password.
The following prerequisites are required on the Siebel side before configuring OAuth for
authentication. You must install and set up the components, including OAuth components, to suit
your own business needs. Consult the supporting documentation of your chosen components (for
example, Oracle Access Manager and Oracle API Gateway) for more information.
■ The Siebel Object Manager must be configured for SSO when OAuth is enabled for authentication.
The related security adapter is also required. In SSO mode, when used with a custom security
adapter, the specified value is passed as the password parameter to a custom security adapter
if the value corresponds to the value of the TrustToken parameter defined for the custom security
adapter. For more information about configuring SSO, see Siebel Security Guide.
■ The Siebel REST API layer contacts the OAuth server over a secure channel to validate or get
token information. To enable HTTPS, the required certificates from the OAuth server must be
installed in the environment where the Siebel REST API is hosted.
■ The following parameters must be set in the Siebel Application Interface profile:
■ Authentication Type. The Authentication Type property must be set to OAuth to implement
OAuth authentication
■ Trust Token. The Trust Token value must be the same as the security adapter TrustToken
parameter value.
■ Authentication URL. The Authentication URL value is the URL of the OAuth Service Provider
end point for Access Token validation.
■ Secure Channel. Set this parameter only when you have already imported the
Authentication URL’s CA certificate into the Application Interface truststore. Deselect this
check box when the Authentication URL’s CA certificate is not available in the Application
Interface truststore. In this case, the Application Interface trusts all certificates while calling
the Authentication URL over HTTPS. Oracle does not recommend this.
While the customer authentication flows vary depending on your business needs, Oracle supports all
OAuth 2.0 authentication flows. This topic contains a few sample authentication flows. In all
authentication flows, the Siebel REST API layer extracts and validates the Access Token when the
authentication type value is OAuth. Customers must generate the authorization and access code. The
Siebel Server handles only the resource server initiated flow and any remaining flows must be
implemented by the customer.
The steps in client credentials grant authentication flow process shown in Figure 2 are:
1 The business client application makes a call to the Siebel Server to request some business
information by passing an access token. Since there is no end user intervention, the client is pre-
authorized to have access to the resource.
4 The client server sends a request to the resource server. The request includes the access token
in the HTTP header. Siebel Server looks for the USERID from the token to establish a Siebel
Server session.
5 The Siebel Server validates the access token with the OAuth server.
6 If the access token is authorized by the OAuth server, then access is granted to the Siebel
resource.
The steps in Web Server Authentication Flow process shown in Figure 3 are:
2 The request is redirected to the OAuth server (for example, Oracle Access Manager) for
authentication.
3 The OAuth server sends a login form to the user to grant access.
4 The user enters their credentials and the OAuth server determines whether to grant access.
6 If user consent is the required, the OAuth server sends a consent form to the user.
9 The client application requests an access token from the OAuth server.
12 The resource server sends a request to the OAuth server to validate the access token.
13 The OAuth server validates the access token.
14 The resource server sends a response with the requested information to the client application.
15 The client application sends the requested information to the user.
Siebel outbound REST functionality is built on SOAP Outbound functionality and allows Siebel CRM
to call any external endpoint that provides a valid Open API or SWAGGER compliant schema.
Siebel outbound REST functionality leverages Siebel Tools to import the REST contract and create
the required metadata, such as business services or integration objects. For more information about
Siebel Tools, see Using Siebel Tools.
■ Create a new outbound Web Service based on an OpenAPI compiant JSON file. For information
about creating an Outbound Web Service based on an OpenAPI compliant JSON file, see “Creating
an Outbound Web Service Based on an OpenAPI Compliant JSON File” on page 34.
■ Once you have successfully imported the schema in Siebel Tools, open the Siebel Application and
navigate to the Administration - Web Services screen and then to the Outbound REST Services
screen. Verify the newly imported artifacts are all present in the Outbound REST Services,
Service Params, and Operations applets. Make sure you configure the exact endpoint URL in the
Address column of the Service Params Applet.
■ Create a 64-bit Java Subsystem. For more information about creating a 64-bit Java Subsystem,
see Transports and Interfaces: Siebel Enterprise Application Integration.
■ Configure any new Siebel Business Services for RESTful access. For more information, see
“Configuring Business Service Methods for RESTful Access” on page 32.
■ Configure new Siebel Business Services by associating a responsibility with a business service to
control access to the business service and its methods. For more information, see Siebel Security
Guide.
■ Setting up the proxy for external endpoint access. For more information, see Integration Platform
Technologies: Siebel Enterprise Application Integration.
■ Configure external REST endpoints. For external REST endpoints, the following parameters must
be added in the Input PropertySet:
■ isExternalURL : true
Setting the isExternal parameter value to true removes the body keyword in the POST
request body.
■ isEnclosedArray: true
If the whole POST body has to be enclosed in any array , then set the isEnclosedArray
parameter to true.
■ methodValue : <value>
For path templating, add a value for the methodValue parameter. Path templating is the use
of curly braces ({}) to mark a section of a URL path as replaceable.
This chapter provides an overview of how to get started with using the Siebel CRM REST API. It
contains the following topics:
■ Using Siebel Management Console to Configure a Siebel Application Interface Profile on page 26
■ Creating an Outbound Web Service Based on an OpenAPI Compliant JSON File on page 34
Before you begin using the Siebel CRM REST API, you must perform the tasks described in this topic.
Many of these tasks are described in the Siebel Deployment Planning Guide.
For more information about performing a new Siebel Enterprise Server software installation, see
the Siebel Installation Guide for the operating system you are using.
For more information about installing Siebel Application Interface, see Siebel Installation Guide
for Microsoft Windows.
For more information about configuring a Siebel Application Interface profile, see Siebel
Installation Guide for Microsoft Windows.
For information about Siebel RESTful configuration parameters that must be configured when you
create the Siebel Application Interface Profile, see “Using Siebel Management Console to Configure
a Siebel Application Interface Profile” on page 26.
For more information about deploying a Siebel Application Interface profile, see Siebel
Installation Guide for Microsoft Windows.
Based on your sizing requirements, install and configure your application interface nodes. For
more information about configuring load balancing, see “Configuring the worker.properties File for
Load Balancing” on page 30.
Oracle recommends load balancing to distribute complex tasks among multiple Java Web
Containers. For more information about load balancing, see Siebel Deployment Planning Guide.
7 Configure business service methods for RESTful access. For more information about configuring
business service methods, see “Configuring Business Service Methods for RESTful Access” on
page 32.
8 Configure integration objects for REST API data access. For more information about configuring
integration objects, see “Configuring Integration Objects for REST API Data Access” on page 34.
This topic includes the Siebel RESTful configuration parameters that must be configured when you
create the Siebel Application Interface Profile. This topic includes the following:
Table 7 contains the REST inbound authentication parameters that you configure when you create a
Siebel Application Interface Profile. For more information about configuring a Siebel Application
Interface profile, see Siebel Installation Guide for Microsoft Windows.
Anonymous User Name Authentication > REST Specify the anonymous user
Inbound Authentication to use for anonymous REST
inbound requests.
Anonymous User Password Authentication > REST Specify the password for the
Inbound Authentication anonymous user for REST
inbound requests.
■ Basic Authentication
■ Single Sign-On
■ OAuth
Session Timeout (seconds) Authentication > REST Specify the session timeout,
Inbound Authentication in seconds, to use for REST
inbound authentication. This
is the timeout which a
connection will be kept open
for further requests from
same user.
Secure Channel Authentication > REST This option applies only for
Inbound Authentication. the OAuth authentication
type as follows:
REST Response Base URL REST Inbound Defaults Specify the base URL used to
generate URLs for resources
in REST responses.
Minimum Connections in Pool Size REST Inbound Defaults Specify the minimum number
(%) of connections in the pool
available to serve REST
requests, as a percentage of
the maximum. Default value:
25.
The Apache HTTPD mod_jk Web server module is used to load balance Apache Tomcat servers. The
load balancer.mod_jk is the connector used to connect Apache Tomcat with Web servers using an AJP
connector.
This topic describes the initial configuration of the workers.properties file for load balancing. For
more information about planning and managing load balancing for your deployment, see Siebel
Installation Guide for the operating system you are using, Siebel Deployment Planning Guide, and
Siebel System Administration Guide.
For more information about third-party load balancing options, see the Certifications tab on My
Oracle Support.
Oracle recommends for optimal usage of Siebel User Session Connections maintained on Apache
Tomcat.
http://tomcat.apache.org/
For detailed information about installing the HTTPd Server, see Apache Tomcat documentation.
a Using any text editor, open the httpd.conf file on the Web server.
b Locate the Listen section and add the HTTP port number:
Listen <port>
e To check if the Web server is running, open a Web browser and enter the following url:
http://hostip:<port>
http://httpd.apache.org/download.cgi
4 Save the mod_jk.so file then place it in the <HTTPDRootDir\> modules directory folder.
a Create the workers.properties file then place it in the <HTTPDRootDir\> directory folder.
b Create the mod_jk.log file then place it in the <HTTPDRootDir\> directory folder.
b Add an if statement to define the commands to be executed once the module is loaded as
follows:
#Declare the module for use with the <IfModule directive> element.
<IfModule jk_module>
JkWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log
JkLogStampFormat "[%b %d %Y - %H:%M:%S] "
JkRequestLogFormat "%w %V %T"
JkLogLevel trace
JkMount /* loadbalancer
JkMount /Jkmanager status
</IfModule>
7 Define the list of Tomcat workers that can accept requests by adding the following configuration
to the workers.properties file:
# Define workers
worker.list=loadbalancer,status
worker.javacontainer 1.socket_keepalive=1
worker.javacontainer1.socket_timeout=300
# Get statistics
worker.status.type=status
NOTE: For the worker.<workername> property, both Apache Tomcat workers must have a
unique name. For each node, the workername must be same as the JVMRoute name defined in
the Apache Tomcat server.xml file. For example, if tomcat 1 has javacontainer1 set as the value
for the JVMRoute name in the Apache Tomcat server.xml file for tomcat1, then the
worker.properties parameter must have a worker.javacontainer1 value.
http://hostip:<port>/siebel/v1.0/data/Account/Account/88-431RF
CAUTION: Oracle recommends that you do not add responsibilities to the EAI Siebel Adapter
Business Service. as it may lead to denial of general REST (repository or data) and SOAP Web
Services access to other users.
The REST Service API has more restrictive access for Siebel Business Services than other Siebel
Access Channels. Each Business Service and Business Service Method that is accessed through the
REST API needs to be explicitly configured for access.
NOTE: For the Siebel REST API, if a Business Service Method is not configured for access by a
particular responsibility, then it will not be accessible. This is different from SOAP or the User
Interface channels where an unconfigured Business Service is accessible to all.
2 Navigate to the Administration - Application screen, then the Business Service Access view, and
then the Access By Responsibility view.
5 Select the business service to which you want to control access, then click OK.
The selected business service appears in the Business Service list view.
7 Select a responsibility to associate with the business service and then click OK.
8 In the Business Service Method list, click New to specify the business service methods to which
the responsibility gains access.
The Business Service Method dialog box appears. This dialog box displays the list of business
service methods to which access is currently controlled.
9 If the business service method to which you want to allow the responsibility access appears in
the Business Service Method dialog box, select it, then click OK.
11 Select a business service method to associate with the responsibility and then click OK.
The selected business service method appears in the Business Service Method list view.
12 From the Broadest Visibility list, select the view mode to associate with the responsibility.
13 Step off the record to save changes.
14 Click Clear Cache.
15 Restart the Siebel Application Interface Apache Tomcat server by executing the following batch
scripts:
\applicationcontainer\bin\shutdown.bat
\applicationcontainer\bin\startup.bat
For UNIX:
\applicationcontainer\bin\shutdown.sh
\applicationcontainer\bin\startup.sh
For more information about integration objects, see Integration Platform Technologies: Siebel
Enterprise Application Integration.
2 From the File menu, choose New Object to display the New Object Wizards dialog box.
a Select the project where you want the objects to be held after they are created from the JSON
document.
b Specify the external JSON schema document that contains the Web service or Web services
definition that you want to import.
c Specify the log file where you want errors, warnings, and other information related to the import
process to be logged or accept the default.
4 Click Next.
5 Oracle reccommends that you do not select the Deploy the Integration Object(s) and the Proxy
Business Service(s).
6 Click Finish to complete the process of importing the external object definitions into the Siebel
repository.
■ A REST outbound proxy business service. This service acts as a client-side implementation of the
Web service and includes the operations and the arguments to the operations defined in the JSON
document.
■ Integration objects, representing input and output parameters of the service methods, if any of
the operations require a complex argument to be passed. If the service does not use complex
arguments, then no integration object definitions will be created.
Business Services, methods, arguments, and port information are shown in the Administration - Web
Services screen, REST Outbound Web Services view in the Siebel client.
Before importing the external schema, ensure that there are no objects in the Siebel Database with
the same name as that of the new Web Service, Port, Port Type and Operation or Methods.
For additional information about outbound web services, see Integration Platform Technologies:
Siebel Enterprise Application Integration.
This chapter describes the Siebel REST API requests and responses for REST API calls to access
Siebel CRM resources. It includes the following topics.
■ Using Siebel REST API to Access Siebel Repository Resources JSON Examples on page 38
■ Using Siebel REST API to Access Siebel Business Objects JSON Examples on page 40
■ Using Siebel REST API to Access Siebel Business Services JSON Examples on page 45
■ Using Siebel REST API to Access Siebel Repository Data XML Examples on page 46
■ Using Siebel REST API to Access Siebel CRM Business Objects XML Examples on page 49
■ Using Siebel REST API to Access Siebel Business Services XML Examples on page 51
Each REST API call in this chapter uses the following format:
■ URI. The location of the Siebel REST API resource on the Siebel Server. For more information
about Siebel REST API URL format, see “About Siebel CRM REST API URI Formats” on page 12.
■ HTTP Method. The HTTP method used to call the Siebel REST API to interact with the Siebel
Server. For more information about supported HTTP Methods, “About Supported HTTP
Methods” on page 15.
■ Content-Type. The part of the HTTP header that indicates the media type of the data that
is sent by the Siebel REST API HTTP methods. For more information about supported HTTP
headers, see “About Supported HTTP Header Fields” on page 16.
■ Request Body. The code example for the Siebel REST API request.
■ HTTP Code. The HTTP status code returned to indicate whether the request was successful
or if there was an error. For more information about supported HTTP codes, “About Standard
HTTP Status Codes and Error Messages” on page 18.
■ Content-Type. The part of the HTTP header that indicates the media type of the data that
is returned by the Siebel REST API HTTP methods. For more information about supported
HTTP headers, see “About Supported HTTP Header Fields” on page 16.
■ Response Body. The code example for the Siebel REST API response.
NOTE: Because of the length of REST responses, some REST responses have been omitted.
The following details are for a request query that returns control properties of the WriteRecord
Method in the SIS Account List Applet applet on the Siebel CRM Server:
■ Content-Type: application/json
■ Authorization: Basic
The following details are for a request query that returns properties of the SIS Account List Applet
applet based on search specification from the Siebel CRM Server:
■ Content-Type: application/json
■ Authorization: Basic
The following details are for a request query that returns field values only for the Name, ProjectName
and Comments fields of the SIS Account List Applet applet from the Siebel CRM Server:
■ Content-Type: application/json
■ Authorization: Basic
The following details are for a request to insert a new applet on the Siebel CRM Server:
■ Content-Type: application/json
■ Authorization: Basic
■ Request body:
{
"Name":"SIS Account List Applet_1",
"ProjectName":"Siebel Rest",
"UpgradeBehavior":"Preserve",
"Comments":"SIS Account List Applet: Added by Rest"
}
The following details are for a request to upsert a repository resource by updating the comments of
the applet and adding a BtnAutoSchedule control to it on the Siebel CRM Server:
■ Content-Type: application/json
■ Authorization: Basic
■ Request body:
{
"Name": "WriteRecord",
}
The following details are for a request to delete a repository resource on the Siebel CRM Server:
■ Content-Type: application/json
■ Authorization: Basic
The following details are for a request to query for an Account business object with an ID of 1LS-
9XKU on the Siebel CRM Server:
■ URL: http://ServerName:port/siebel/v1.0/data/Account/Account/1LS-9XKU
■ Content-Type: application/json
■ Authorization: Basic
The following details are for a request to query for a Contact business object with a search
specification parameter on the Siebel CRM Server:
■ URL: http://ServerName:port/siebel/v1.0/data/Account/Account/Account/1-32HG/Contact/
?searchspec=([First Name] LIKE 'J*' AND [Last Name] LIKE 'A*')
■ Content-Type: application/json
■ Authorization: Basic
The following details are for a request to query for an Account business object that return values only
for the Name, Location, and Account Status fields of an Account with an 1-32HG ID number on the
Siebel CRM Server:
■ URL: http://ServerName:port/siebel/v1.0/data/Account/Account/Account/1-
32HG?fields=Name, Location, Account Status
■ Content-Type: application/json
■ Authorization: Basic
The following details are for a request to create a new account on the Siebel CRM Server:
■ URL: http://ServerName:port/siebel/v1.0/data/Account/Account
■ Content-Type: application/json
■ Authorization: Basic
■ Request body:
{
"Name": "AccountExample",
"Primary Organization": "Millennium Institutional Finance Services IF ENU",
"Location": "HQ-Distribution",
"Description": "AccountData",
"Primary Organization Id": "1-1DG",
}
The following details are for a request to insert a Contact business object into an existing Account
business object on the Siebel CRM Server:
■ URL: http://ServerName:port/siebel/v1.0/data/Account/Account/88-431RF/Contact
■ Content-Type: application/json
■ Authorization: Basic
■ Request body:
{
"Employee Number":"1231",
"Employer Name":"BXM",
"Bill To First Name":"MAYANew",
"Bill To Last Name": "ABRAHAMNew",
"Primary Organization Id":"0-R9NH",
"Account Integration Id":"",
"Job Title":"",
"Person UId":"0CR-1MF5Z611",
"Primary Organization":"Default Organization",
"Personal Contact":"N"
}
The following details are for a request to insert multiple Contacts into an existing Account business
object on the Siebel CRM Server:
■ URL: http://ServerName:port/siebel/v1.0/data/Account/Account/Account/1-1/Contact
■ Content-Type: application/json
■ Authorization: Basic
■ Request body:
{
"Contact":[
{
"Primary Organization Id":"1-1DG",
"Primary Organization":"Default Organization",
"First Name":"Ken",
"Last Name": "Bass",
"Id":"12345"
},
{
"Primary Organization Id":"1-1DG",
"Primary Organization":"Default Organization",
"First Name":"test",
"Last Name": "test1",
"Id":"123456"
}
]
}
The following details are for a request to update the fields of an existing Account business object on
the Siebel CRM Server:
■ URL: http://ServerName:port/siebel/v1.0/data/Account/Account/88-431RF
■ Content-Type: application/json
■ Authorization: Basic
■ Request body:
{
"Name": "AccountExample",
"Primary Organization": "Millennium Institutional Finance Services IF ENU",
"Location": "HQ-Distribution",
"Description": "AccountDataUpdate",
"Primary Organization Id": "1-1DG"
}
The following details are for a request to update the fields of an Opportunity of a given Account child
business object on the Siebel CRM Server:
■ URL: http://ServerName:port/siebel/v1.0/data/Account/Account/88-431RF/Opportunity
■ Content-Type: application/json
■ Authorization: Basic
■ Request body:
{
"Id":"123456",
"Name":"NewOpp",
"Currency Code": "AUD",
"Primary Organization":"Default Organization"
}
The following details are for a request to delete an Account business object on the Siebel CRM Server:
■ URL: http://ServerName:port/siebel-rest/v1.0/data/Account/Account/88-43CGR
■ Content-Type: application/json
■ Authorization: Basic
■ Request body:
Before you can access the Siebel Business Services, you must configure the access and responsibility
values of the Siebel Business Service. For more information, see “Configuring Business Service
Methods for RESTful Access” on page 32.
The following details are for a request to call the CreateAccount Method on the Account Business
Service with business service arguments included in the request body. This request creates a REST
Test Business Service3 account on the Siebel CRM Server:
■ URI: http://ServerName:port/siebel/v1.0/service/Account/CreateAccount
■ Content-Type: application/json
■ Authorization: Basic
■ Request body:
{
"body":{
"Account IO":{
"IntObjectName":"Account IO",
"IntObjectFormat":"Siebel Hierarchical",
"ListOfAccount IO":{
"Account":{
"Name":"REST Test Business Service3"
}
}
}
}
}
The following details are for a request to call the QueryPage method of the AccountWS Business
Service with PageSize=10, StartRowNum=0 and ViewMode=All parameters included in the request
URI. This request returns the REST Test Business Service3 account in the format of the integration
Account_EMR object on the Siebel CRM Server:
■ URI: http://ServerName:port/siebel/v1.0/service/AccountWS/
QueryPage?PageSize=10&StartRowNum=0&ViewMode=All
■ Content-Type: application/json
■ Authorization: Basic
■ Request body:
{
"body":{
"SiebelMessage":{
"MessageId":"",
"MessageType":"Integration Object",
"IntObjectName":"Account_EMR",
"IntObjectFormat":"Siebel Hierarchical",
"ListOfAccount_EMR":{
"Account":{
"Name":"REST Test Business Service3"
}
}
}
}
}
The following details are for a request query for a parent repository resource on the Siebel CRM
Server that returns WriteRecord control properties in the SIS Account List Applet:
■ Content-Type: application/xml
■ Authorization: Basic
■ Request body:
The following details are for a request query for a repository resource on the Siebel CRM Server that
returns SIS Account List Applet properties based on a given search specification:
■ URI: http://slc05wbd.us.oracle.com:9001/siebel/v1.0/workspace/MyWorkspace/Applet/SIS
Account List Applet?searchspec=[Business Component] LIKE 'B*'
■ Content-Type: application/xml
■ Authorization: Basic
■ Request body:
The following details are for a request query for a repository resource on the Siebel CRM Server that
returns values for the Name, ProjectName, and Comments fields of the SIS Account List Applet
applet:
■ Content-Type: application/xml
■ Authorization: Basic
■ Request body:
The following details are for a request to insert a repository resource on the Siebel CRM Server:
■ Content-Type: application/xml
■ Authorization: Basic
■ Request body:
The following details are for a request to upsert comments and add a control to a repository resource
on the Siebel CRM Server:
■ Content-Type: application/xml
■ Authorization: Basic
■ Request body:
The following details are for a request to delete a repository resource on the Siebel CRM Server:
■ Content-Type: application/xml
■ Authorization: Basic
■ Request body:
The following details are for a request query for an Account Business Object resource on the Siebel
CRM Server:
■ URI: http://ServerName:port/siebel/v1.0/data/Account/Account/1LS-9XKU
■ Content-Type: application/xml
■ Authorization: Basic
■ Request body:
The following details are for a request query for a business object resource on the Siebel CRM Server:
■ URI: http://ServerName:port/siebel/v1.0/data/Account/Account/1-32HG/Contact/
?searchspec=([First Name] LIKE 'J*' AND [Last Name] LIKE 'A*')
■ Content-Type: application/xml
■ Authorization: Basic
■ Request body:
The following details are for a request query for a business object resource on the Siebel CRM Server
that returns field values for an Account Business Object:
■ URI: http://ServerName:port/siebel/v1.0/data/Account/Account/1-32HG?fields=Name,
Location, Account Status
■ Content-Type: application/xml
■ Authorization: Basic
■ Request body:
The following details are for a request to insert a parent business object resource on the Siebel CRM
Server:
■ URI: http://ServerName:port/siebel/v1.0/data/Account/Account
■ Content-Type: application/xml
■ Authorization: Basic
■ Request body:
The following details are for a request to upsert a parent business object resource on the Siebel CRM
Server:
■ URI: http://ServerName:port/siebel/v1.0/data/Account/Account
■ Content-Type: application/xml
■ Authorization: Basic
■ Request body:
The following details are for a delete request for a parent business object resource on the Siebel CRM
Server:
■ URI: http://ServerName:port/siebel/v1.0/data/Account/Account/88-43CGR
■ Content-Type: application/xml
■ Authorization: Basic
■ Request body:
The following details are for a request to use a business service resource to insert an Account on the
Siebel CRM Server:
■ Content-Type: application/xml
■ Authorization: Basic
■ Request body:
The following details are for a request to update a Main Phone field for an Account Business Service
on the Siebel CRM Server:
■ Content-Type: application/xml
■ Authorization: Basic
■ Request body:
The following details are for a request to delete an Account on the Siebel CRM Server:
■ Content-Type: application/xml
■ Authorization: Basic
■ Request body:
This chapter describes Siebel Representational State Transfer (RESTful) Services for Siebel Clinical
users and how to use them. It includes the following topics:
2 Navigate to the Administration - Application screen and then the Business Service view.
3 In the Business Service list, select the Clinical User Provisioning Service business service.
The selected business service method appears in the Business Service Method list view.
You can also use the Siebel REST API to invoke business services using Siebel server script
techniques. For more information, see Using Siebel Tools.
When you create or synchronize Siebel Clinical users, you can pass default position and responsibility
information in the Siebel REST API response by configuring the LS Clinical User Provisioning Service
Business method. For more information, see “Configuring Siebel Clinical Users” on page 55.
■ Content-Type: application/json
■ Authorization: Basic
■ Request body:
{
"body":
{
"Employee":
{
"First Name": "Cathy",
"Last Name": "Rogers",
"Login Name":"Cathy.Rogers",
"EMail Addr":"Cathy.Rogers@oracle.com"
}
"ListOfPosition":
{
"Position":
{
"Name":"Cathy.Rogers",
"Division":"Default Organization"
}
},
"ListOfEmployee_Responsibility":
{
"Employee_Responsibility":
{
"Responsibility":"Clinical Research Associate
}
}
}
}
The following are the details for the response to a successful request:
■ Content-Type: application/json
■ Content-Type: application/json
■ Authorization: Basic
■ Request body:
{
"body":
{
"Employee":
{
"Login Name": "Cathy.Rogers",
"Field 1": "Value 1",
"Field 2": "Value 2",
………..
}
}
}
The following are the details for the response to a successful request:
■ Content-Type: application/json
The following details are for a request to delete a Siebel clinical user on the Siebel CRM Server:
■ Content-Type: application/json
■ Authorization: Basic
■ Request body:
{
"body":
{
"Employee":
{
"Login Name":"Cathy.Rogers",
}
}
}
The following are the details for the response to a successful request:
■ Content-Type: application/json