Configuring REST Bindings
Specify various details after adding the REST binding type to the composite service or reference using TIBCO Business Studio.
Prerequisites
Install all four profiles of ActiveMatrix Service Grid or ActiveMatrix Service Bus.
You add a REST binding to the composite service or reference from the TIBCO Business Studio Composite Editor.
Procedure
- Import an existing project or create a new project in TIBCO ActiveMatrix Business Studio. See the TIBCO ActiveMatrix documentation set.
- Add a REST binding from the canvas view or the properties view.
- Select the service or reference and display its properties.
-
For a promoted service, specify the following details in the right pane of the Properties View.
Option Description Name Name of the REST binding. HTTP Connector HTTP Connector and Context Root together define the URL that is used at runtime. You define and name the HTTP Connector at design time. At runtime, you need to create a resource of type HTTP Connector and assign it the name you used at design time.
Context Root HTTP Connector and Context Root together define the URL that is used at runtime. Media Type Select Standard JSON, Badgerfish JSON, or XML from the pull-down menu to specify the media type for the request or the response message. Exclude namespaces from response Excludes namespaces from the response message. This option is displayed only when Media Type is set to Badgerfish JSON.
-
For a promoted reference, specify the following details in the right pane of the Properties View.
Option Description Name Name of the REST binding. Description Short description of the REST binding. Media Type (read-only field). The media type can be set from the REST resource configuration file. Rest resource configuration file Location of the REST resource configuration file. A resource configuration file is not set by default. To create a resource configuration file, click the -not set- link or click the picker icon and then click Create New. When you click on Finish in this wizard, a new resource configuration file (.rrc) is created with default media type (JSON) and resource base URI.HTTP Client Select the HTTP client. Enable pass through mode Enables the pass through mode. In the pass through mode, a fixed WSDL is configured on the REST binding. In the pass through mode, ActiveMatrix Binding Type for REST behaves like the HTTP Binding Type.
Copyright © 2022. Cloud Software Group, Inc. All Rights Reserved.